kriswiner / CMWX1ZZABZ

Collection of sketches using the Arduino core for Murata's CMWX1ZZABZ (STM32L082 and SX1276)
94 stars 30 forks source link

Hang on LoRaWAN.joinOTAA(appEui, appKey, devEui); #20

Closed jacky4566 closed 5 years ago

jacky4566 commented 5 years ago

Hi guys,

Just getting started with this core and im having a problem with the LoRaWANtest.ino for the grasshopper.

When i put in my keys and run the example it will hang on join. I have verified this with LED blinks.

Where in the code should i start digging to diagnose this? OR what am i missing?

Note that I am not actually using a grasshopper but the ST dev board. B-L072Z-LRWAN1. I have reconfigured the board to operate in standalone mode so it should work the same as a grasshopper.

kriswiner commented 5 years ago

" I am not actually using a grasshopper but the ST dev board. B-L072Z-LRWAN1"

Why not use the dev board variant?

" it should work the same as a grasshopper"

Nope...

On Thu, Jul 18, 2019 at 5:23 PM jacky4566 notifications@github.com wrote:

Hi guys,

Just getting started with this core and im having a problem with the LoRaWANtest.ino for the grasshopper.

When i put in my keys and run the example it will hang on join. I have verified this with LED blinks.

Where in the code should i start digging to diagnose this? OR what am i missing?

Note that I am not actually using a grasshopper but the ST dev board. B-L072Z-LRWAN1. I have reconfigured the board to operate in standalone mode so it should work the same as a grasshopper.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/kriswiner/CMWX1ZZABZ/issues/20?email_source=notifications&email_token=ABTDLKRKZTQGF4S46NWRAKTQAECQDA5CNFSM4IFA7PPKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HAEUV2Q, or mute the thread https://github.com/notifications/unsubscribe-auth/ABTDLKSHOEWLJ4LFOHK44G3QAECQDANCNFSM4IFA7PPA .

jacky4566 commented 5 years ago

Its what I was given to work with. The B-L072Z and the grasshopper both use the CMWX1ZZABZ module and have similar wiring so they should functionally work the same. PA8 is tied high for USB on this core. TCXO_OUT is tied to OSC_IN as per the grasshopper drawing.

VDD_TCXO is tied high on this board instead of OSC_OUT on the grasshopper. Could that be it?

I can get the MCU to function properly, serial, temps, etc. But comms with the SX chip just halt.

kriswiner commented 5 years ago

If you are using the L0 Arduino core from grumpyoldpizza just select the proper board variant for your board; it is not Grasshopper.

Otherwise it will not work.

On Thu, Jul 18, 2019 at 6:15 PM jacky4566 notifications@github.com wrote:

Its what I was given to work with. The B-L072Z and the grasshopper both use the CMWX1ZZABZ module and have similar wiring so they should functionally work the same. PA8 is tied high for USB on this core. TCXO_OUT is tied to OSC_IN as per the grasshopper drawing.

VDD_TCXO is tied high on this board instead of OSC_OUT on the grasshopper. Could that be it?

I can get the MCU to function properly, serial, temps, etc. But comms with the SX chip just halt.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/kriswiner/CMWX1ZZABZ/issues/20?email_source=notifications&email_token=ABTDLKWUL3RIAVSJWIDO4NDQAEIUPA5CNFSM4IFA7PPKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD2KIWNQ#issuecomment-513051446, or mute the thread https://github.com/notifications/unsubscribe-auth/ABTDLKQUXKV6VOP7H3S5YDLQAEIUPANCNFSM4IFA7PPA .

jacky4566 commented 5 years ago

I have resolved the issue.

kriswiner commented 5 years ago

How?

On Fri, Jul 19, 2019 at 7:24 AM jacky4566 notifications@github.com wrote:

I have resolved the issue.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/kriswiner/CMWX1ZZABZ/issues/20?email_source=notifications&email_token=ABTDLKXU2JWLFYCO3XQNW33QAHFCBA5CNFSM4IFA7PPKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD2LY36I#issuecomment-513248761, or mute the thread https://github.com/notifications/unsubscribe-auth/ABTDLKULA6MSOZO55XOCTP3QAHFCBANCNFSM4IFA7PPA .