cancel
Showing results for 
Search instead for 
Did you mean: 

STM32IDE build errors for CMSIS RTOS V2 with FreeRTOS on STM32G491RE Nuclueo

fwEng
Visitor

I am trying to create a project with FreeRTOS using CMSIS RTOS V2 without configuring it in the ioc file.  I am trying to turn ON/OFF the LED using thread and timer.  I can build and run the same project if I configure the freeRTOS in STM32CubeMX. But I want to configure it independently. I included all the files required by freeRTOS and CMSIS RTOS V2 for the project.  Attached is .ioc file and error message.

fwEng_0-1741745108730.png

fwEng_1-1741745205299.png

 

 

4 REPLIES 4
Pavel A.
Evangelist III

I included all the files required by freeRTOS and CMSIS RTOS V2 for the project. 

Missing C file: ...\Third_Party\FreeRTOS\Source\CMSIS_RTOS_V2\cmsis_os2.c

 

This file is included: Third_Party\FreeRTOS\Source\CMSIS_RTOS_V2\cmsis_os2.c

 

fwEng_0-1741793564916.png

 

Pavel A.
Evangelist III

Then please check that the undefined functions from the error messages are present in your cmsis_os2.c:  osKernelInitialize, osThreadNew and so on. Aren't they excluded by some #ifdef?

 

They are present in the cmsis_os2.c I cannot find any #ifdef.

fwEng_0-1741811095656.png