2025-12-02 6:55 AM
When generating code im getting two erros:
In timer_if.c:
in LoraMac.c:
I've been trying to look for some answers but i couldn't really find something useful.
If someone can help i'd really appreciate it.
Regards.
2025-12-02 11:16 AM
Hello @Doug3 and welcome to the Community,
I recommend you refer to the ready-to-use LoRaWAN End-Node example which is available within STM32CubeWL firmware package: STM32CubeWL/Projects/NUCLEO-WL55JC/Applications/LoRaWAN at main · STMicroelectronics/STM32CubeWL · GitHub
Then, import and adapt the example using STM32CubeMX and STM32CubeIDE, following the guides for configuration and customization: How to import STM32CubeWL repository projects onto... - STMicroelectronics Community
The following wiki page contains information such as, application examples, document references, and tips related to STM32 LoRaWAN: Introduction to LoRaWAN® - stm32mcu
2025-12-02 12:09 PM
Hello @Doug3
For the first error on the timer_if.c, it seems that you have create the user constant RTC_N_PREDIV_S as RTC_PRER_PREDIV_S so, the code can’t find this user constant (RTC_N_PREDIV_S). Make sure it is correctly declared.
For the second error on the LoraMac.c, this is a known issue on the STM32CubeWL, temporary solution is to select the LoRaWAN Link Layer V1.0.4 and not the LoRaWAN Link Layer V1.0.3.
Best Regards.
II