Skip to main content
Fguof.1
Visitor II
January 5, 2020
Question

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

  • January 5, 2020
  • 4 replies
  • 6659 views

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

4 replies

KnarfB
Super User
January 5, 2020

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.

Tesla DeLorean
Guru
January 5, 2020

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

Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..
Graduate
November 28, 2024

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. 

Technical Moderator
November 28, 2024

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

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.