cancel
Showing results for 
Search instead for 
Did you mean: 

STM32F4 FreeRTOS init code generation issue

Semer CHERNI
ST Employee

When FreeRTOS is enabled in STM32CubeMx for STM32F4 MCUs, the generated code should create the tasks already configured by the user.

In this context, a regression was detected in the latest STM32CubeMX version (6.7.0) and only with the STM32F4 series of MCUs.

As a result, we propose this temporary solution while the fix is implemented in a future release. To put it in place, follow the step described down below. And please if you are not using an F4 we advise you to not apply this solution.

1.   For windows:

1.1. STM32CubeMx standalone:

1.1.1.   Download the file found under this link.

1.1.2.   Extract the “FREERTOS-STM32F4xx_Configs.xml�? file from the downloaded archive.

1.1.3.   Copy the file to the following directory found under the STM32CubeMx installation directory “db\mcu\config�?.

The default path is: “C:\Program Files\STMicroelectronics\STM32Cube\STM32CubeMX\db\mcu\config�?

Adapt the path to your case if you have changed the default path or have multiple CubeMx versions already installed on your PC.

The simplest way is to go to Desktop and right click on the CubeMx shortcut -> Click Open file location then navigate to “db\mcu\config�?

1.2. STM32CubeIDE plugin:

1.2.1.   Download the file found under this link

1.2.2.   Extract the “FREERTOS-STM32F4xx_Configs.xml�? file from the downloaded archive

1.2.3.   Copy the file to the following directory found under the STM32CubeIDE installation directory “plugins\com.st.stm32cube.common.mx_6.7.0.202211181646\db\mcu\config�?.

The default path is: “C:\ST\STM32CubeIDE_1.11.0\STM32CubeIDE\plugins\com.st.stm32cube.common.mx_6.7.0.202211181646\db\mcu\config�?

Adapt the path to your case if you have changed the default path or have multiple CubeMx versions already installed on your PC.

The simplest way is to go to Desktop and right click on the CubeIDE shortcut -> Click Open file location then navigate to “plugins\com.st.stm32cube.common.mx_6.7.0.202211181646\db\mcu\config�?.

2.   For Linux:

2.1. STM32CubeMx standalone:

2.1.1.   Download the file found under this link

2.1.2.   Extract the “FREERTOS-STM32F4xx_Configs.xml�? file from the downloaded archive.

2.1.3.   Copy the file to the following directory found under the STM32CubeMx installation directory “db\mcu\config�?.

The default path is: “/home/username/STM32CubeMX�?

Adapt the path to your case if you have changed the default path or have multiple CubeMx versions already installed on your PC.

2.2. STM32CubeIDE plugin:

2.2.1.   Download the file found under this link

2.2.2.   Extract the “FREERTOS-STM32F4xx_Configs.xml�? file from the downloaded archive

2.2.3.   Copy the file to the following directory found under the STM32CubeIDE installation directory “plugins\com.st.stm32cube.common.mx_6.7.0.202211181646\db\mcu\config�?.

The default path is: “opt/ST/stm32cubeide_1.11.0 /plugins/com.st.stm32cube.common.mx_6.7.0.202211181646\db/mcu/config�?

Adapt the path to your case if you have changed the default path or have multiple CubeMx versions already installed on your PC.

3.   For MacOS:

3.1. STM32CubeMx standalone

3.1.1.   Download the file found under this link

3.1.2.   Extract the “FREERTOS-STM32F4xx_Configs.xml�? file from the downloaded archive

3.1.3.   Copy the file to the following directory found under the STM32CubeMx installation directory “db\mcu\config�?.

To access this directory, in “Application�? choose the STM32CubeMx6.7.0 and click on “Show Package Contents�? then navigate to the mentioned directory where you copy the xml file and replace the original one.

3.2. STM32CubeIDE plugin:

3.2.1.   Download the file found under this link

3.2.2.   Extract the “FREERTOS-STM32F4xx_Configs.xml�? file from the downloaded archive

3.2.3.   Copy the file to the following directory found under the STM32CubeIDE installation directory “plugins\com.st.stm32cube.common.mx_6.7.0.202211181646\db\mcu\config�?.

To access this directory, in “Application�? choose the STM32CubeIDE 1.11.0 and click on “Show Package Contents�? then navigate to the mentioned directory where you copy the xml file and replace the original one.

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.

4 REPLIES 4
Piranha
Chief II

The download links doesn't download anything and just opens the CubeMX page. If you mean that a patch v6.7.1 must be downloaded, just say it clearly.

Jerome B
ST Employee

Dear Piranha,

You are right, the link bring to STM32CubeMX page.

Once on it, you need to download the patch as indicated below.

0693W00000Y7elvQAB.png

@Jerome B​ , the problem is that the topic author didn't mention neither the "patch", nor the "v6.7.1" anywhere at all. Instead he gave a four separate links, which are actually all the same and do not point to the files to be downloaded. And, if the links are not to the specific files, there is no need for them to be so long with million parameters. They can be just like this:

https://www.st.com/en/development-tools/stm32cubemx.html

I personally don't need this "captain obvious" level help for "especially gifted ones" on how to scroll a webpage and click the red buttons. Now, if you could fire the completely incompetent HAL/Cube team and hire a competent developers, that would be something!

Amogh
Associate III

I seem to be running into similar issues with Nucleo F042k6 RTOS Tasks enabled in CubeMX are not showing up in generated code. 

and I dont see the "patch" in software section anymore. can you please advise how do you fix this issue?