core_cm0plus.h ~ No such file or directory

This is the first time I try to upload a program to my Arduino M0 Pro and got the following compiling error:

Arduino: 1.8.7 (Mac OS X), Board: "Arduino M0 Pro (Programming Port)"

Build options changed, rebuilding all
In file included from /Users/naichang/Library/Arduino15/packages/arduino/tools/CMSIS-Atmel/1.1.0/CMSIS/Device/ATMEL/samd21/include/samd21.h:69:0,
from /Users/naichang/Library/Arduino15/packages/arduino/tools/CMSIS-Atmel/1.1.0/CMSIS/Device/ATMEL/samd.h:105,
from /Users/naichang/Library/Arduino15/packages/arduino/tools/CMSIS-Atmel/1.1.0/CMSIS/Device/ATMEL/sam.h:470,
from /Users/naichang/Library/Arduino15/packages/arduino/hardware/samd/1.6.20/cores/arduino/Arduino.h:48,
from sketch/duemegapitest.ino.cpp:1:
/Users/naichang/Library/Arduino15/packages/arduino/tools/CMSIS-Atmel/1.1.0/CMSIS/Device/ATMEL/samd21/include/samd21g18a.h:237:26: fatal error: core_cm0plus.h: No such file or directory
#include <core_cm0plus.h>
^
compilation terminated.
exit status 1
Error compiling for board Arduino M0 Pro (Programming Port).

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

Please help!

the unpacking of tools as part of the installation takes time. did you wait? try to reinstall the SAMD package

Hi Juraj,

After trying to reinstall the SAMD package, problem solved.

Thank you!
:slight_smile: