Skip to main content
AKruh.1
Associate II
March 2, 2022
Question

Doesn't find file in CubeIDE when compiling project "fatal error: FreeRTOS.h: No such file or directory" and "cmsis_os.h: No such file or directory"

  • March 2, 2022
  • 5 replies
  • 2760 views

..

This topic has been closed for replies.

5 replies

AKruh.1
AKruh.1Author
Associate II
March 2, 2022

0693W00000Kb9kqQAB.png

AKruh.1
AKruh.1Author
Associate II
March 2, 2022

I turn on freeRTOS in my project

Sara BEN HADJ YAHYA
Technical Moderator
March 2, 2022

Hello @AKruh.1​ ,

Thanks for your feedback,

Could you please share your ioc file ?

Thanks,

Sara.

In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question.
AKruh.1
AKruh.1Author
Associate II
March 2, 2022

Yes! I used cube 1.8 and 1.7 versions. Same. I am sending the file.

Sara BEN HADJ YAHYA
Technical Moderator
March 2, 2022

Hello @AKruh.1​ ,

Thanks for sharing the ioc file.

I assume that you didn't use CubeMX standalone, instead you used CubeIDE and the MX plugin.

I didn't face any issue from my side, I just opened the ioc using CubeMX standalone and then generated the project to CubeIDE.

I will try to do some more tests, in the meanwhile could you please share a detailed scenario that led to this issue.

I am adding @mattias norlander​  from CubeIDE team to the loop.

Sara.

In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question.
AKruh.1
AKruh.1Author
Associate II
March 2, 2022

Thanks! I downloaded Cube MX version 6.4.0. Created a project there and opened it with CubeIDE . And the error is gone!

I think it's some kind of bug in CubeIDE when you create a project with MX plugin!

mattias norlander
ST Employee
March 3, 2022

In the project where you face the build error.

Do you remember whether you have switched between CMSIS v1 and v2? We have a known bug, internal ticket reference 95887.

I have some colleagues who will try to re-produce, will return on this topic.

AKruh.1
AKruh.1Author
Associate II
March 5, 2022

Yes. I changed. But the bug has always been there. I recreated the project and nothing changed. It only helped to create in CubeMX.