cancel
Showing results for 
Search instead for 
Did you mean: 

STM32CubeMX code generation mess with X-CUBE-FREERTOS

h7-v
Associate II

Hi there,

I'm using an N6 with the latest version of IDE and MX with the FSBL/Appli dual project structure as per the FSBL LRUN template, and MX is incorrectly managing code. When using X-CUBE-FREERTOS in Application mode, code generation and cleanup is buggy. I've attached a FreeMarker template error generated WITHIN app_freertos.c

When removing FreeRTOS from the project, MX fails to remove void MX_FREERTOS_Init(void); and MX_FREERTOS_Init(); from main.c. It also doesn't remove the head app_freertos.h and FreeRTOSConfig.h header files, but does remove the source file. I get the following compiler error:
make[1]: *** No rule to make target '/Users/h7/STM32CubeIDE/workspace_1.16.1/N6Project/Appli/Src/app_freertos.c', needed by 'Application/User/app_freertos.o'. Stop.


I'm also finding that the files that I have added to the build exclusion list in libraries that I've included in Middlewares/Third_Party are being reset. After a code generation, those files that MX should not be touching are removed from the build exclusion list.

After making changes to my configuration in MX, I'm being forced to save and then restart MX before generating any code, and even that is hit and miss.

 

I miss the .ioc code generation tool in STM32CubeIDE. It was much better with it integrated. The removal in version 2 only serves to make working on the STM32 platform less convenient.

STM32CubeIDE version 2.0.0

STM32CubeMX version 6.16.1

 

Cheers

1 REPLY 1
Ghofrane GSOURI
ST Employee

Hello @h7-v 

I'm currently checking this behavior. I will get back to you asap.

THX

Ghofrane

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.