cancel
Showing results for 
Search instead for 
Did you mean: 

Can't build STM32WL FUOTA examples with STM32CubeIDE 1.17.0

davidn
Associate II

Hi

I've tried to build the three FUOTA projects. Each one fails with similar errors. "Missing files".
I have a fresh install of the CubeIDE, and I've tried this on two different computers.

For example, I built the Single Core FUOTA example for the Nucleo WL55, the files not found are:

  • kms_config.h
  • sfu_fwimg_regions.h

The Problems tab reports these two missing files and these warnings:

  • Invalid project path: Include path not found (D:\workspace\LoRaWAN_FUOTA\1_Image_BFU\BFU\App).
  • Invalid project path: Include path not found (D:\workspace\LoRaWAN_FUOTA\1_Image_SECoreBin\Inc).
  • Invalid project path: Include path not found (D:\workspace\LoRaWAN_FUOTA\Linker_Common\STM32CubeIDE).

The other dual-core examples for the Nucleo and B-WL5M-SUBG1 give:

  • cannot open linker script file mapping_fwimg.ld: No such file or directory
  • fatal error: kms_config.h: No such file or directory
  • fatal error: sfu_fwimg_regions.h: No such file or directory

And these warnings:

  • Invalid project path: Include path not found (D:\workspace\2_Images_SBSFU\CM0PLUS\SBSFU\App).
  • Invalid project path: Include path not found (D:\workspace\2_Images_SBSFU\Common).
  • Invalid project path: Include path not found (D:\workspace\2_Images_SECoreBin\Inc).
  • Invalid project path: Include path not found (D:\workspace\LoRaWAN_FUOTA_DualCore_ExtFlash\Linker_Common\STM32CubeIDE).

Could someone at ST take a look at the these examples?

 

1 ACCEPTED SOLUTION

Accepted Solutions
KDJEM.1
ST Employee

Hello @davidn;

 

For example to open 1_Image_SECoreBin example, could you please follow these steps:

1- Click on File>open projects from File System

KDJEM1_1-1737966701010.png

2- Click on Directory 

KDJEM1_2-1737966771771.png

3. Choose the path of 1_Image_SECoreBin example then click on Select Folder 

KDJEM1_0-1737966641206.png

4- Click on Finish

KDJEM1_3-1737967107942.png

The LoRAWAN_FUOTA example in the Example Selector corresponding to LoraWAN_End_Node under Projects/Nucleo-WL55JC/Applications/LoRaWAN_FUOTA.

KDJEM1_4-1737967480178.png

To build Projects/Nucleo-WL55JC/Applications/LoRaWAN_FUOTA/LoraWAN_End_Node example without error, you need to respect compiling order.

First of all, build "Projects/Nucleo-WL55JC/Applications/LoRaWAN_FUOTA/1_Image_KMS_Blob" example.

Then, build "Projects/Nucleo-WL55JC/Applications/LoRaWAN_FUOTA/1_Image_SECoreBin".

After that, build "Projects/Nucleo-WL55JC/Applications/LoRaWAN_FUOTA/1_Image_BFU".

And finally, compile "Projects/Nucleo-WL55JC/Applications/LoRaWAN_FUOTA/LoraWAN_End_Node".    

I hope this help you.

Thank you.

Kaouthar 

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.

View solution in original post

6 REPLIES 6
KDJEM.1
ST Employee

Hello @davidn and welcome to the community;

 

As mentioned in the release note of STM32Cube_FW_WL_V1.3.1 that the development toolchain of are: 

 

KDJEM1_2-1737711297007.png

For that, could try to download STM32CubeIDE 1.11.0 version and build the FUOTA example and let me know if the issue is solved or not?

To downlow old version of STM32CubeIDE toolchain, please click on this link and open a case to our support team.

KDJEM1_4-1737712279056.png

 

I tested these two examples "\STM32Cube\Repository\STM32Cube_FW_WL_V1.3.1\Projects\NUCLEO-WL55JC\Applications\LoRaWAN_FUOTA" and "\STM32Cube\Repository\STM32Cube_FW_WL_V1.3.1\Projects\NUCLEO-WL55JC\Applications\LoRaWAN_FUOTA_DualCore" and I'm able to build them without issue using STM32CubeIDE1.11.0 version.

About STM32CubeIDE1.17.0 version: 

-I'm able to build \STM32Cube\Repository\STM32Cube_FW_WL_V1.3.1\Projects\NUCLEO-WL55JC\Applications\LoRaWAN_FUOTA project without error.

But, I got errors for \STM32Cube\Repository\STM32Cube_FW_WL_V1.3.1\Projects\NUCLEO-WL55JC\Applications\LoRaWAN_FUOTA_DualCore\2_Images_SBSFU project when using STM32CubeIDE1.17.0. I reported this issue internally. 

C:/ST/STM32CubeIDE_1.17.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.12.3.rel1.win32_1.1.0.202410251130/tools/bin/../lib/gcc/arm-none-eabi/12.3.1/../../../../arm-none-eabi/bin/ld.exe: SB.elf section `._user_heap_stack' will not fit in region `M4_SB_RAM_region'
C:/ST/STM32CubeIDE_1.17.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.12.3.rel1.win32_1.1.0.202410251130/tools/bin/../lib/gcc/arm-none-eabi/12.3.1/../../../../arm-none-eabi/bin/ld.exe: region `M4_SB_RAM_region' overflowed by 240 bytes
C:/ST/STM32CubeIDE_1.17.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.12.3.rel1.win32_1.1.0.202410251130/tools/bin/../lib/gcc/arm-none-eabi/12.3.1/../../../../arm-none-eabi/bin/ld.exe: warning: SB.elf has a LOAD segment with RWX permissions
collect2.exe: error: ld returned 1 exit status
make: *** [makefile:67: SB.elf] Error 1

 

 

 

Please make sure you follow the order of build indicated in the project-structure.txt file

KDJEM1_5-1737712997801.png

KDJEM1_7-1737713033710.png

Internal ticket number: 201294 (This is an internal tracking number and is not accessible or usable by customers).

Thank you.

Kaouthar

 

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.

davidn
Associate II

Hello Kaouthar

Thanks for getting back to me.

One thing I didn't mention; I created the projects via the Cube IDE examples selector:
File | New | STM32 Project >> Examples Selector | FUOTA...

This only gave me the option for using FW 1.3.0. I don't know how to install the 1.3.1 patch to the IDE.

 

I've downloaded and unzipped FW 1.3.0 and then unzipped the 1.3.1 patch on top. I would like to try to build the projects, but I don't know how to follow the instructions here:

davidn_0-1737801890163.png

If you could explain how to do this: I might get some success.

However, it seems like there are problems with the Example Selector and the Dual Core example. Could these be fixed?

All the best,
David

KDJEM.1
ST Employee

Hello @davidn;

 

For example to open 1_Image_SECoreBin example, could you please follow these steps:

1- Click on File>open projects from File System

KDJEM1_1-1737966701010.png

2- Click on Directory 

KDJEM1_2-1737966771771.png

3. Choose the path of 1_Image_SECoreBin example then click on Select Folder 

KDJEM1_0-1737966641206.png

4- Click on Finish

KDJEM1_3-1737967107942.png

The LoRAWAN_FUOTA example in the Example Selector corresponding to LoraWAN_End_Node under Projects/Nucleo-WL55JC/Applications/LoRaWAN_FUOTA.

KDJEM1_4-1737967480178.png

To build Projects/Nucleo-WL55JC/Applications/LoRaWAN_FUOTA/LoraWAN_End_Node example without error, you need to respect compiling order.

First of all, build "Projects/Nucleo-WL55JC/Applications/LoRaWAN_FUOTA/1_Image_KMS_Blob" example.

Then, build "Projects/Nucleo-WL55JC/Applications/LoRaWAN_FUOTA/1_Image_SECoreBin".

After that, build "Projects/Nucleo-WL55JC/Applications/LoRaWAN_FUOTA/1_Image_BFU".

And finally, compile "Projects/Nucleo-WL55JC/Applications/LoRaWAN_FUOTA/LoraWAN_End_Node".    

I hope this help you.

Thank you.

Kaouthar 

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.

davidn
Associate II

Hi Kaouthar

Thank you for your detailed instructions. This has helped a lot. I've sucessfully built the FUOTA project you have described.

I shall continue my testing.

I would like to get the Dual core sample working, and understand why low-power mode is not available too.

Is there any documentation describing how to update the end-node sample so it supports FUOTA? Just so I can extend the functionality of my working code?

All the best,

David

KDJEM.1
ST Employee

Hello @davidn,

 

Thank you for updating post. I think that the initial issue is solved.

So, click on Accept as Solution on the reply which solved your issue or answered your question.

For the second issue on how to update the end-node sample, I recommend you to create a new thread.

 

Thank you.

Kaouthar

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.

davidn
Associate II

Hi again

Using these techniques, I failed to create the B-WL5M-SUBG1 dual-core FUOTA project as the sub-project 2_Images_SBSFU_CM4 overflowed the M4_SB-RAM_region by 240 bytes. There were a few other errors too.

Good news, is I managed to compile the single and dual-core FUOTA projects for the STM32WLxx Nucleo.

I still believe the FUOTA project for B-WL5M-SUBG1 needs some help. Also, it would be great if the FUOTA projects would work via the Examples Selector too.

 

David