Skip to main content
Associate II
November 19, 2023
Question

fatal error: FreeRTOS.h: No such file or directory

  • November 19, 2023
  • 2 replies
  • 6192 views

I create a new stm32 project, check X-CUBE-FREEROS in Middleware. Then I could include FreeRTOS.h to main.c.

But if I create a stm32 cmake project. Since no xxx.ioc, I cannot choose X-CUBE-FREEROS. When building my C source, the compiler will show "fatal error: FreeRTOS.h: No such file or directory".

May I please know how I could resolve this?

Thanks

    This topic has been closed for replies.

    2 replies

    STTwo-32
    ST Technical Moderator
    November 19, 2023

    Hello @sanfran 

    I suggest you take a look at this post. It may help you.

    Best Regards.

    STTwo-32 

    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.
    sanfranAuthor
    Associate II
    November 19, 2023

    Hi @STTwo-32 ,

    Yes, I ever saw it.

    But when I create a stm32 cmake project, there is no xxx.ioc. So no pinout & config. And no middlefirmware to select FREERTOS.

    Thanks