cancel
Showing results for 
Search instead for 
Did you mean: 

Cube MX 5.2.0 FreeRTOS Problem

EDesh
Associate II

Hi,

when I generate a example for the STM32F407ZET everything is fine, until I check the option freeRTOS

After this the includes are not correct anymore:

STM32Cube_FW_F4_V1.24.1

VS + VGDB

0690X000008wEaPQAU.png

7 REPLIES 7
Pavel A.
Evangelist III

Can the Cube generate project for Visual GDB? Which format is it?

How the includes look before and after freeRTOS?

-- pa

EDesh
Associate II

If I disable the frertos cube, the project is compiled. If I turn on the freertos again, the project is not compiled.

I videotaped a project compilation.

https://drive.google.com/open?id=1tYIXRKeZ5p_72ZSasvTS6WnIQx09Qxbd

https://drive.google.com/open?id=1TxZKC92BiQjyApAJ0fn2ls9rVYOpaerz

https://drive.google.com/open?id=1TPU8NLSKlJ4woLYCalKuKRkU_1ElMYi6

-- Evgeni

EDesh
Associate II

Hi, help me please with this problem. In the previous post I posted a video compilation of the project. If it's not convenient for you to download from the cloud, I can put it on YouTube

Bob S
Principal

Those error messages are LINKER errors, not include file errors. Looks like some of the FreeRTOS files or libraries are not being included in the linker command (or maybe even compiled).

Disclaimer: I have zero experience with FreeRTOS, so I don't know if its files compile to a library, or if they are compiled and linked just like your own source files. And I have zero experience with VisualGDB (though some experience with VisualStudio). And I haven't watched the videos (can't access them from work).

See what source files contain those missing functions. Then look at your build log and see if those files were compiled. Then look at the linker command (or command file) and see if those files were included in the linker file list.

Bob S
Principal

Continuing... and going back to what @Pavel A.​ asked about whether CubeMX generates projects for VS/VisualDBG. I presume not. When you add FreeRTOS via CubeMX, you need to add those new source files to your VisualStudio project. That won't happen automatically.

EDesh
Associate II

Files are added automatically, but I created a new project and added files manually, there is a description of functions in the header file of the freertos and it is connected to the compiler, but the compiler does not find the freertos function. Below is a link to YouTube from the video where I compile the project. As well as a link to the similar problem as mine.

https://community.st.com/s/question/0D50X00009XkeqqSAB/cube-mx-4240-freertos-problem

https://youtu.be/BsDHuFdxWAk

https://youtu.be/EsqsM2JeKII

https://youtu.be/gttE3x5KYLw

EDesh
Associate II

Before the cube was updated, everything compiled without problems