cancel
Showing results for 
Search instead for 
Did you mean: 

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

sanfran
Associate II

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

2 REPLIES 2
STTwo-32
ST Employee

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.

sanfran
Associate II

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