cancel
Showing results for 
Search instead for 
Did you mean: 

Cannot Compile When using example ioc

TheNeg0t1ator
Associate II

Hello, first time poster.
I recently got a few NUCLEO-WL55JC2's for a research project.
but other than the standard examples, I am unable to compile a project that I either made using my own ioc, or the one in 
C:\Users\%username%\STM32Cube\Repository\STM32Cube_FW_WL_V1.3.1\Projects\NUCLEO-WL55JC\Applications\LoRaWAN\LoRaWAN_End_Node

When I use either of these, this is the error message I get in CubeIDE, when hitting build.

 

../Core/Inc/platform.h:45:10: fatal error: stm32wlxx_nucleo_radio.h: No such file or directory
   45 | #include "stm32wlxx_nucleo_radio.h"
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
arm-none-eabi-gcc "../Middlewares/Third_Party/LoRaWAN/Mac/Region/RegionBaseUS.c" -mcpu=cortex-m4 -std=gnu11 -g3 -DDEBUG -DCORE_CM4 -DUSE_HAL_DRIVER -DSTM32WL55xx -c -I../Core/Inc -I../LoRaWAN/App -I../LoRaWAN/Target -I../Drivers/STM32WLxx_HAL_Driver/Inc -I../Drivers/STM32WLxx_HAL_Driver/Inc/Legacy -I../Utilities/trace/adv_trace -I../Utilities/misc -I../Utilities/sequencer -I../Utilities/timer -I../Utilities/lpm/tiny_lpm -I../Middlewares/Third_Party/LoRaWAN/LmHandler/Packages -I../Drivers/CMSIS/Device/ST/STM32WLxx/Include -I../Middlewares/Third_Party/LoRaWAN/Crypto -I../Middlewares/Third_Party/LoRaWAN/Mac/Region -I../Middlewares/Third_Party/LoRaWAN/Mac -I../Middlewares/Third_Party/LoRaWAN/LmHandler -I../Middlewares/Third_Party/LoRaWAN/Utilities -I../Middlewares/Third_Party/SubGHz_Phy -I../Middlewares/Third_Party/SubGHz_Phy/stm32_radio_driver -I../Drivers/CMSIS/Include -O0 -ffunction-sections -fdata-sections -Wall -fstack-usage -fcyclomatic-complexity -MMD -MP -MF"Middlewares/Third_Party/LoRaWAN/Mac/Region/RegionBaseUS.d" -MT"Middlewares/Third_Party/LoRaWAN/Mac/Region/RegionBaseUS.o" --specs=nano.specs -mfloat-abi=soft -mthumb -o "Middlewares/Third_Party/LoRaWAN/Mac/Region/RegionBaseUS.o"
arm-none-eabi-gcc "../Middlewares/Third_Party/LoRaWAN/Mac/Region/RegionCN470.c" -mcpu=cortex-m4 -std=gnu11 -g3 -DDEBUG -DCORE_CM4 -DUSE_HAL_DRIVER -DSTM32WL55xx -c -I../Core/Inc -I../LoRaWAN/App -I../LoRaWAN/Target -I../Drivers/STM32WLxx_HAL_Driver/Inc -I../Drivers/STM32WLxx_HAL_Driver/Inc/Legacy -I../Utilities/trace/adv_trace -I../Utilities/misc -I../Utilities/sequencer -I../Utilities/timer -I../Utilities/lpm/tiny_lpm -I../Middlewares/Third_Party/LoRaWAN/LmHandler/Packages -I../Drivers/CMSIS/Device/ST/STM32WLxx/Include -I../Middlewares/Third_Party/LoRaWAN/Crypto -I../Middlewares/Third_Party/LoRaWAN/Mac/Region -I../Middlewares/Third_Party/LoRaWAN/Mac -I../Middlewares/Third_Party/LoRaWAN/LmHandler -I../Middlewares/Third_Party/LoRaWAN/Utilities -I../Middlewares/Third_Party/SubGHz_Phy -I../Middlewares/Third_Party/SubGHz_Phy/stm32_radio_driver -I../Drivers/CMSIS/Include -O0 -ffunction-sections -fdata-sections -Wall -fstack-usage -fcyclomatic-complexity -MMD -MP -MF"Middlewares/Third_Party/LoRaWAN/Mac/Region/RegionCN470.d" -MT"Middlewares/Third_Party/LoRaWAN/Mac/Region/RegionCN470.o" --specs=nano.specs -mfloat-abi=soft -mthumb -o "Middlewares/Third_Party/LoRaWAN/Mac/Region/RegionCN470.o"
make: *** [Middlewares/Third_Party/SubGHz_Phy/stm32_radio_driver/subdir.mk:25: Middlewares/Third_Party/SubGHz_Phy/stm32_radio_driver/radio_driver.o] Error 1
make: *** Waiting for unfinished jobs....
In file included from ../LoRaWAN/Target/radio_conf.h:30,
                 from ../Middlewares/Third_Party/SubGHz_Phy/stm32_radio_driver/radio_driver.h:45,
                 from ../Middlewares/Third_Party/SubGHz_Phy/stm32_radio_driver/wl_lr_fhss.h:44,
                 from ../Middlewares/Third_Party/SubGHz_Phy/stm32_radio_driver/radio.c:36:
../Core/Inc/platform.h:45:10: fatal error: stm32wlxx_nucleo_radio.h: No such file or directory
   45 | #include "stm32wlxx_nucleo_radio.h"
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
In file included from ../LoRaWAN/Target/radio_conf.h:30,
                 from ../Middlewares/Third_Party/SubGHz_Phy/stm32_radio_driver/radio_fw.c:23:
../Core/Inc/platform.h:45:10: fatal error: stm32wlxx_nucleo_radio.h: No such file or directory
   45 | #include "stm32wlxx_nucleo_radio.h"
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make: *** [Middlewares/Third_Party/SubGHz_Phy/stm32_radio_driver/subdir.mk:25: Middlewares/Third_Party/SubGHz_Phy/stm32_radio_driver/radio.o] Error 1
make: *** [Middlewares/Third_Party/SubGHz_Phy/stm32_radio_driver/subdir.mk:25: Middlewares/Third_Party/SubGHz_Phy/stm32_radio_driver/radio_fw.o] Error 1
"make -j12 all" terminated with exit code 2. Build might be incomplete.

14:26:21 Build Failed. 7 errors, 0 warnings. (took 799ms)

 

I've included the whole project, and also the ioc, for those who do not like zip files on the internet.

for information even when I use the example ioc I get this error:

TheNeg0t1ator_0-1740148366084.png

I've got a week to at least get this thing sending messages to the gateway, before I am behind schedule.
also is it normal that the folder structure of the example projects is so different than the one generated by CubeMX?
Thanks!

 

5 REPLIES 5
TheNeg0t1ator
Associate II

As far as I can found out now, it has to do with the fact that all the examples that can be compiled are in
stm32wl 1.0.0
and the ones I can't compile are in
stm32wl 1.3.x
these all give the error stated above. if i download an example, or a project in 1.3.x it does not work.

It's telling you that it can't find the header file stm32wlxx_nucleo_radio.h - three times; the same thing:

../Core/Inc/platform.h:45:10: fatal error: stm32wlxx_nucleo_radio.h: No such file or directory
   45 | #include "stm32wlxx_nucleo_radio.h"
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~

 

So does that file actually exist at all ?

If it does exist, is it in a place where the compiler can find it?

 

https://community.st.com/t5/stm32cubeide-mcus/files-not-being-recognized-if-inside-folder/m-p/716138/highlight/true#M30405

STTwo-32
ST Employee

Hello @TheNeg0t1ator 

I've tested your .Zip File and I have the error. But after switching to the version of the Example on the STM32CubeWL V1.3.1, I'm not able to find any issue. Are you using the STM32CubeIDE V1.17.0. If no, please try using them.

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.

TheNeg0t1ator
Associate II

I’ve been doing some thinking and testing, but I haven’t been able to get v1.3.x to work yet. I do have v1.0.0 working, but it lacks the onstorecontext and onstorerequest functions, which I need for nonce errors. With v1.0.0, I’m encountering dev nonce errors after the first boot (using ABP, as I haven’t been able to get OTAA working).

Does anyone have a good tutorial for getting an end-node skeleton (without Cayenne or the extra features it generates) working on v1.3.x? I need this to work on both the STM32WL55CC and STM32WL55JC, as I’m using these for a dev board. In the future, I plan to embed the CC version onto a PCB.

The goal of this post is to get an idea of how to make this work, rather than to fix a specific error. Thanks in advance for any help!

Hello @TheNeg0t1ator 

To be able to program and design a LoRaWAN end node using the STM32WL, I suggest you take a look at the following trainings:

 

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.