Skip to main content
Visitor II
December 2, 2025
Solved

STM32WLE5CCU6 LoRaWan error

  • December 2, 2025
  • 2 replies
  • 472 views

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.

Best answer by Imen.D

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

 

 

2 replies

Imen.DBest answer
ST Technical Moderator
December 2, 2025

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

 

 

In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question. Thanks
Issamos
Super User
December 2, 2025

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