cancel
Showing results for 
Search instead for 
Did you mean: 

Multiple definition error

Angle
Associate II

Hi, how can i solve the multiple definition error? what i do is just disable the freertos function and get this error

0693W00000Y7mfCQAR.png

11 REPLIES 11
Romain DIELEMAN
ST Employee

Hello,

As you can see in the error log the project is looking for files in the Middlewares/Third_Party/FreeRTOS folder. I believe those files are removed from the project folder itself but not in the link path in STM32CubeIDE.

Try to remove them in the tree view on STM32CubeIDE and clean the Path settings as well in the properties settings.

0693W00000Y7oEDQAZ.png 

/Romain

the freertos folder in link path also has been remove itself but i don't why it still state the error.

0693W00000Y7oGnQAJ.pngso try to create a new project and disable the freertos. I get these error, could you please advice me how to disable the freertos. what file and folder need to remove ?

im using stm32h750-dk eval board

0693W00000Y7oHgQAJ.png

In the error log you can see that it complains about the " #include ... "

Go to TouchGFXConfiguration.cpp and remove it.

Same for the error in TouchGFXGeneratedHAL.cpp

Have a look at this article in the online documentation.

/Romain

I know it show the error about the #include freertos library. I already go thru these .c file but the #include lib has been remove itself. so i don't know what to do

0693W00000Y7oOrQAJ.pngsame goes to TouchGFXGeneratedHAL.cpp

0693W00000Y7oPBQAZ.png

Could you share your project ? Other users could have a look as well.

/Romain

this one I just using the default freertos. Touchgfx using stm32h750-dk. The problem now is the code just can executed up until here. Could you please advise me what wrong wrong with the code? or the structure is wrong . can refer to the project i attached

0693W00000Y81vFQAR.png

I was a bit too lazy to dive too deep in what you shared since you have freertos in it but dont want to have it if i understood correctly, so I just started from scratch with the TouchGFX board template for the STM32H750dk and cleaned the path settings and unnecessary files in the stm32cubeIDE project. I havnt tested it on target as I dont have the board though.

/Romain

i just let the freertos default bcs i got a lot of error last time. thats why i just try to use the freertos but it seem very complicated for me.

btw i have run the file you send but i got this error

0693W00000Y83cyQAB.png 

0693W00000Y83d8QAB.png 

the error in the first screenshot is because i did not modify the makefile in the gcc folder but only the STM32CubeIDE project. Second error i didnt face, interesting.

But can we start over, what are you trying to do exactly :grinning_face_with_sweat: ?