Skip to main content
Visitor II
March 12, 2025
Question

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

  • March 12, 2025
  • 4 replies
  • 948 views

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

 

 

    This topic has been closed for replies.

    4 replies

    Super User
    March 12, 2025

    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

     

    fwEngAuthor
    Visitor II
    March 12, 2025

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

     

    fwEng_0-1741793564916.png

     

    Super User
    March 12, 2025

    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?

     

    fwEngAuthor
    Visitor II
    March 12, 2025

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

    fwEng_0-1741811095656.png

     

    Super User
    March 13, 2025

    PavelA_0-1741831456754.png

    cmsis_os2.c  hasn't compiled successfully. 

     

     

    ST Employee
    March 13, 2025

    Hi @fwEng 

     

    This post has been escalated to the ST Online Support Team for additional assistance.  We'll contact you directly.

     

    Regards,

    Billy