STM32WL LoRaWAN send data error after restore the context data from NVM
Hi, I am using the NUCLEO-WL55JC1 to send/recv the data via LoRaWAN.
The sample code AT_Slave in SDK 1.3.0 worked well when I tested at region AS923.
However, I started to test at the region EU868, the device worked until I reset the device.
The device restore lora parameters from NVM but it return error when I send data.
My flow is:
- Factory reset to clear data in NVM (AT+RFS)
- Set region EU868 (AT+BAND=5)
- Join with OTAA (AT+JOIN=1), I can get the join request on the TTI backend
- Send data (AT+SEND=5:0:11223344) , I can see the data on TTI backend.
- Store context data to NVM (AT+CS)
- System reset or reboot (ATZ), the device shows NVM DATA RESTORED.
- Join fail (it blocks without any notification like TX on freq 868100000 Hz at DR 0)
I tried to disable the force_join, the join returned OK but the AT+SEND return ERROR immediately.
Then I changed to the region AS923, my flow worked weill.
I traced into the driver LmHandler/LoRaMAC layer, the LoRaMacMcpsRequest returned error status LORAMAC_STATUS_NO_CHANNEL_FOUND.
---
The stack version
APPLICATION_VERSION: V1.3.0
MW_LORAWAN_VERSION: V2.5.0
MW_RADIO_VERSION: V1.3.0
L2_SPEC_VERSION: V1.0.4
RP_SPEC_VERSION: V2-1.0.1
Is there any function I missed in my flow? or missing something when the device stores data to NVM?
