Unable to compile core_cm4.h not found

Post here first, or if you can't find a relevant section!
Post Reply
markreds81
Posts: 1
Joined: Thu Jan 16, 2020 8:27 am

Unable to compile core_cm4.h not found

Post by markreds81 »

Hi everybody,
I'm facing to STM32 development on Arduino IDE for the first time.
I have a NUCLEO board L452RE-P with a X-NUCLEO-NFC03A1 expansion board on it and I would like to try it with X_NUCLEO_NFC03A1_HelloWorld example but during compilation I get this error message:
In file included from /Users/mark/Library/Arduino15/packages/STM32/hardware/stm32/1.8.0/system/Drivers/CMSIS/Device/ST/STM32L4xx/Include/stm32l4xx.h:140,
from /Users/mark/Library/Arduino15/packages/STM32/hardware/stm32/1.8.0/cores/arduino/stm32/stm32_def.h:48,
from /Users/mark/Library/Arduino15/packages/STM32/hardware/stm32/1.8.0/cores/arduino/stm32/clock.h:43,
from /Users/mark/Library/Arduino15/packages/STM32/hardware/stm32/1.8.0/cores/arduino/wiring_time.h:23,
from /Users/mark/Library/Arduino15/packages/STM32/hardware/stm32/1.8.0/cores/arduino/wiring.h:38,
from /Users/mark/Library/Arduino15/packages/STM32/hardware/stm32/1.8.0/cores/arduino/Arduino.h:32,
from sketch/X_NUCLEO_NFC03A1_HelloWorld.ino.cpp:1:
/Users/mark/Library/Arduino15/packages/STM32/hardware/stm32/1.8.0/system/Drivers/CMSIS/Device/ST/STM32L4xx/Include/stm32l452xx.h:154:10: fatal error: core_cm4.h: No such file or directory
154 | #include "core_cm4.h" /* Cortex-M4 processor and core peripherals */
| ^~~~~~~~~~~~
compilation terminated.
exit status 1
Errore durante la compilazione per la scheda Nucleo-64.
What's wrong with it? Have I some missing library dependencies or some misconfiguration of my IDE? Thank you in advance.
User avatar
fpiSTM
Posts: 1758
Joined: Wed Dec 11, 2019 7:11 pm
Answers: 91
Location: Le Mans
Contact:

Re: Unable to compile core_cm4.h not found

Post by fpiSTM »

Which IDE you use ?
How did you install the core?

It seems you didn't have the CMSIS installed.
User avatar
fpiSTM
Posts: 1758
Joined: Wed Dec 11, 2019 7:11 pm
Answers: 91
Location: Le Mans
Contact:

Re: Unable to compile core_cm4.h not found

Post by fpiSTM »

@markreds81
Any update on this ?
Post Reply

Return to “General discussion”