STM32CubeIDE: fatal error: core_cm4.h: No such file or directory
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-08-17 1:41 AM
Hi there,
I am having trouble with CubeIDE: When building my project i get the following error:
"fatal error: core_cm4.h: No such file or directory"
I am using:
- MCSDK 5.Y.1
- STM32CubeMX
- STM32CubeIDE 1.6.1
- STM32F302R8 NucleoBoard
- X-NUCLEO-IHM07M1 motor driver
- SPI-Sensor
- two external buttons
What I did to get to this point:
- Generated the project via MotorControl Workbench and CubeMX --> project is for a Motor Control application
- Modified the project with CubeMX: added few GPIO Inputs and Outputs, added a Timer (TIM16) and SPI2
- Added the Project to the CubeIDE workspace
- added some own Code
- hit build
- got the error: "fatal error: core_cm4.h: No such file or directory"
- tried to add the include path manually --> did not work
Hope someone can help me on this
Greetings MM1
Solved! Go to Solution.
- Labels:
-
DEBUG
-
STM32CubeIDE
-
STM32F3 Series
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-08-17 6:25 AM
Hello @MM1​ ,
It seems the include paths are not properly set up.
Please make sure to configure the include paths and check the path of the core_cm4.h header file. Maybe that folder was not in the include folder list.
When your question is answered, please close this topic by choosing Select as Best. This will help other users find that answer faster.
Imen
Thanks
Imen
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-08-17 6:25 AM
Hello @MM1​ ,
It seems the include paths are not properly set up.
Please make sure to configure the include paths and check the path of the core_cm4.h header file. Maybe that folder was not in the include folder list.
When your question is answered, please close this topic by choosing Select as Best. This will help other users find that answer faster.
Imen
Thanks
Imen
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-08-18 12:39 AM
Hi Imen,
Thanks for the reply. I double checked the include paths and the path to the core_cm4.h was indeed missing.
It is just sad that you have to do it manually sometimes when using the Toolchain MotorControl Workbench/CubeMX (happened to me before)
greeting MM1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-01-12 7:12 PM
hi, I know it has been a year ago, but may I know how to include the path? i mean how to find the path library and put it in the path?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-01-14 6:48 PM
Are you unable of finding files on your PC and using the internet?
