cancel
Showing results for 
Search instead for 
Did you mean: 

STM32WLE5CCU6 LoRaWan error

Doug3
Associate

When generating code im getting two erros:
In timer_if.c:

Doug3_0-1764687215938.png


in LoraMac.c:

Doug3_1-1764687270391.png

 

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.

2 REPLIES 2
Imen.D
ST Employee

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

 

 

When your question is answered, please close this topic by clicking "Accept as Solution".
Thanks
Imen
Issamos
Lead II

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