cancel
Showing results for 
Search instead for 
Did you mean: 

How to correctly regenerate the LoRaWAN_End_Node.ioc code

JTLGE
Associate II

hello,

I am using a NUCLEO-WL55JCX and I have been using the LoRaWAN_End_Node application found within the STM32Cube_FW_WL_V1.3.0 package.

I would like to use the ioc file to generate a clean project and then develop a custom application.

I read the readme file but it did not help me, after copying in a diectory the ioc file I open it and it creates me a project that on stm32cube is not possible to open.

What are the steps I can take to handle the project properly?

5 REPLIES 5
LEdou.1
Associate III

In STM32CubeIDE -> File -> New -> STM32 Project From an existing STM32CubeMX Configuration File.

And you will be able to create a new project with .ioc File

JTLGE
Associate II

thanks for the answer,

i tried to perform the steps you told me and now it creates my project on stm32 cube ide but when i go to compile it i have the following error :

In file included from ../LoRaWAN/Target/radio_conf.h:30,

         from C:/Users/jacop/STM32Cube/Repository/STM32Cube_FW_WL_V1.3.0/Middlewares/Third_Party/SubGHz_Phy/stm32_radio_driver/radio_driver.h:45,

         from C:/Users/jacop/STM32Cube/Repository/STM32Cube_FW_WL_V1.3.0/Middlewares/Third_Party/SubGHz_Phy/stm32_radio_driver/radio_driver.c:34:

../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/SubGHz_Phy/subdir.mk:27: Middlewares/SubGHz_Phy/radio_driver.o] Error 1

make: *** Waiting for unfinished jobs....

In file included from ../LoRaWAN/Target/radio_conf.h:30,

         from C:/Users/jacop/STM32Cube/Repository/STM32Cube_FW_WL_V1.3.0/Middlewares/Third_Party/SubGHz_Phy/stm32_radio_driver/radio_driver.h:45,

         from C:/Users/jacop/STM32Cube/Repository/STM32Cube_FW_WL_V1.3.0/Middlewares/Third_Party/SubGHz_Phy/stm32_radio_driver/wl_lr_fhss.h:44,

         from C:/Users/jacop/STM32Cube/Repository/STM32Cube_FW_WL_V1.3.0/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.

make: *** [Middlewares/SubGHz_Phy/subdir.mk:25: Middlewares/SubGHz_Phy/radio.o] Error 1

In file included from ../LoRaWAN/Target/radio_conf.h:30,

         from C:/Users/jacop/STM32Cube/Repository/STM32Cube_FW_WL_V1.3.0/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/SubGHz_Phy/subdir.mk:29: Middlewares/SubGHz_Phy/radio_fw.o] Error 1

"make -j4 all" terminated with exit code 2. Build might be incomplete.

15:21:51 Build Failed. 7 errors, 0 warnings. (took 1s.827ms)

LEdou.1
Associate III

To be confirm, but you need to import this file if you want to. This file is in BSP Folder. BSP folder link to your design board/custom board or nucelo board. If you try to do a new project on nucleo board. Then you can copy and add to your new project.

JTLGE
Associate II

thanks again,

I found the BSP folder that is in the original examples folder.

how can i now put this folder inside the project and compile correctly? just copy it in there or do i also have to put the path in there somehow?

I imported the BSP folder by going to include the path in poject - properties - tool settings - MCU GNU COMPILER - include pats.

After adding this I get new errors:

c:\st\stm32cubeide_1.10.1\stm32cubeide\plugins\com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.10.3-2021.10.win32_1.0.100.202210260954\tools\arm-none-eabi\bin\ld.exe: ./Application/User/LoRaWAN/Target/radio_board_if.o: in function `RBI_Init':
C:/Users/jacop/Desktop/test_stm32/LoRaWAN/Target/radio_board_if.c:74: undefined reference to `BSP_RADIO_Init'
c:\st\stm32cubeide_1.10.1\stm32cubeide\plugins\com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.10.3-2021.10.win32_1.0.100.202210260954\tools\arm-none-eabi\bin\ld.exe: ./Application/User/LoRaWAN/Target/radio_board_if.o: in function `RBI_ConfigRFSwitch':
C:/Users/jacop/Desktop/test_stm32/LoRaWAN/Target/radio_board_if.c:127: undefined reference to `BSP_RADIO_ConfigRFSwitch'
c:\st\stm32cubeide_1.10.1\stm32cubeide\plugins\com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.10.3-2021.10.win32_1.0.100.202210260954\tools\arm-none-eabi\bin\ld.exe: ./Application/User/LoRaWAN/Target/radio_board_if.o: in function `RBI_GetTxConfig':
C:/Users/jacop/Desktop/test_stm32/LoRaWAN/Target/radio_board_if.c:153: undefined reference to `BSP_RADIO_GetTxConfig'
c:\st\stm32cubeide_1.10.1\stm32cubeide\plugins\com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.10.3-2021.10.win32_1.0.100.202210260954\tools\arm-none-eabi\bin\ld.exe: ./Application/User/LoRaWAN/Target/radio_board_if.o: in function `RBI_IsTCXO':
C:/Users/jacop/Desktop/test_stm32/LoRaWAN/Target/radio_board_if.c:179: undefined reference to `BSP_RADIO_IsTCXO'
c:\st\stm32cubeide_1.10.1\stm32cubeide\plugins\com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.10.3-2021.10.win32_1.0.100.202210260954\tools\arm-none-eabi\bin\ld.exe: ./Application/User/LoRaWAN/Target/radio_board_if.o: in function `RBI_IsDCDC':
C:/Users/jacop/Desktop/test_stm32/LoRaWAN/Target/radio_board_if.c:205: undefined reference to `BSP_RADIO_IsDCDC'
c:\st\stm32cubeide_1.10.1\stm32cubeide\plugins\com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.10.3-2021.10.win32_1.0.100.202210260954\tools\arm-none-eabi\bin\ld.exe: ./Application/User/LoRaWAN/Target/radio_board_if.o: in function `RBI_GetRFOMaxPowerConfig':
C:/Users/jacop/Desktop/test_stm32/LoRaWAN/Target/radio_board_if.c:231: undefined reference to `BSP_RADIO_GetRFOMaxPowerConfig'