Skip to main content
HBugl.1
Associate
March 1, 2021
Question

How to resolve "Fatal error: core_cm4.h: No such file or directory"?

  • March 1, 2021
  • 1 reply
  • 1501 views

Hi everyone,

When I try flashing a sample project [en.fp-atr-tomtom1 for STM32L496G-Discovery for BG96] from the STMicro website on to the P-L496G-CELL02 development board, I receive this error. I have attempted to manually add the header file directory for the includes but this does not seem to resolve the problem. Does anyone have any other suggestions as to what I can try?

This topic has been closed for replies.

1 reply

KnarfB
Super User
March 2, 2021

Thats an essential header file for the Cortex-M4 core which comes with ARM CMSIS. Looks like your source code tree is out-of-order.

HBugl.1
HBugl.1Author
Associate
March 2, 2021

I appreciate the fast response! How would I go about re-ordering my source code tree in trueStudio?