2025-04-08 5:00 AM - last edited on 2025-05-20 3:38 AM by Andrew Neil
Hi team, I am facing an issue while upgrading the LoRaWAN MAC version from 1.0.3 to 1.0.4. I have tried different methods to resolve it.
1. First, I downloaded the LoRaWAN MAC version 1.3 from STM32CubeMX. Then, I created an end device for LoRaWAN version 1.0.3 in the TTN server. I connected my end device to the TTN server using the credentials I created for it, and it is working well. The data is being successfully sent from the end device to the TTN server.
2. I enabled LoRa MAC version 1.0.4 in the source code that came with the download of LoRaWAN MAC version 1.0.3. Next, I created an end device for LoRaWAN version 1.0.4 on the TTN server. However, when I tried to connect my end device to the TTN server using the created credentials, it failed to connect. and shows DevNonce is too small error in TTN server.
3. I downloaded the latest LoRaWAN MAC version 1.0.4 from STM32CubeMX, which was released in January 2025. I then ported all the changes from LoRaWAN MAC version 1.0.4 to the existing working code, which is based on version 1.0.3. However, it is still not working showing DevNonce is too small error in TTN server.
Is there a problem or bug in the recently released LoRaWAN MAC version 1.0.4?
controller i used: Stm32Wle5cc controller.
2025-05-20 3:29 AM
Hello @kRaje.1
The error message "DevNonce is too small" happens when using LoRaWAN MAC version 1.0.4 or 1.1, it's recommended to use LoRaWAN MAC version 1.0.3 on your EndNode and TTN settings.
Best Regards.
STTwo-32
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
2025-05-20 3:37 AM
https://community.st.com/t5/stm32-mcus-products/devnonce-is-too-small/m-p/795192#M277447
https://community.st.com/t5/stm32-mcus-wireless/devnonce-is-too-small/m-p/612970#M17027
See also:
https://www.thethingsnetwork.org/forum/t/devnonce-is-too-small-what-to-do/46330