2025-02-21 06:49 AM
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:
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!