cancel
Showing results for 
Search instead for 
Did you mean: 

fatal error: core_cm4.h: No such file or directory stm32f407xx.h /test/Drivers/CMSIS/Device/ST/STM32F4xx/Include

Fguof.1
Associate

This error occurs in the compilation of the project generated by stm32ubemx. How can I solve it.thank you.0690X00000BvbHWQAZ.png

4 REPLIES 4
KnarfB
Principal III

The core_cm4.h header file is in <your projectfolder>/Drivers/CMSIS/Include. Either that folder was removed/renamed or its not in the include folder list. Generate a new project from scratch and compare/copy files and folders as needed.

Include Paths not properly set up, or local project directory where files not completely copied

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
macosali
Associate

You can try to remove embedded software packages and reinstall. Change version 1.28.1 to 1.28.0 worked.

I might have broken packages too. Because I installed offline. I cannot blame version. 

Mahmoud Ben Romdhane
ST Employee

Hello @Fguof.1 ,

First let me thank you for posting and welcome to the ST Community.

In order to reproduce your request, I suggest please that you provide your Ioc.File.

Thanks.

Mahmoud