Go Down

Topic: Errors with compilation (Read 170 times) previous topic - next topic


Aug 25, 2019, 11:03 pm Last Edit: Aug 25, 2019, 11:54 pm by DryRun

I'm getting compilation errors for the MKR 1010. I followed this guide from the official YouTube channel: https://www.youtube.com/watch?v=H0p7GVPdlyU

The code is from: https://github.com/arduino/livecast/blob/master/Season%202/Episode%204%20-%20MKR1010%20WiFi%20setup/MKR1010_config/MKR1010_config.ino
I couldn't copy and paste the code in here, as it gives an error on the forum about exceeding 9000 characters.

These are the errors shown. I think that maybe these are related to my MATLAB installation, but i have no idea how to fix this. Any help would be appreciated.
Code: [Select]
Arduino: 1.8.9 (Windows 7), Board: "Arduino MKR WiFi 1010"

Build options changed, rebuilding all
In file included from C:\ProgramData\MATLAB\SupportPackages\R2019a\3P.instrset\arduinoide.instrset\idepkgs\packages\arduino\tools\CMSIS-Atmel\1.2.0/CMSIS/Device/ATMEL/samd21/include/samd21.h:69:0,

                 from C:\ProgramData\MATLAB\SupportPackages\R2019a\3P.instrset\arduinoide.instrset\idepkgs\packages\arduino\tools\CMSIS-Atmel\1.2.0/CMSIS/Device/ATMEL/samd.h:105,

                 from C:\ProgramData\MATLAB\SupportPackages\R2019a\3P.instrset\arduinoide.instrset\idepkgs\packages\arduino\tools\CMSIS-Atmel\1.2.0/CMSIS/Device/ATMEL/sam.h:540,

                 from C:\ProgramData\MATLAB\SupportPackages\R2019a\3P.instrset\arduinoide.instrset\idepkgs\packages\arduino\hardware\samd\1.8.3\cores\arduino/Arduino.h:48,

                 from sketch\MKR1010_config.ino.cpp:1:

C:\ProgramData\MATLAB\SupportPackages\R2019a\3P.instrset\arduinoide.instrset\idepkgs\packages\arduino\tools\CMSIS-Atmel\1.2.0/CMSIS/Device/ATMEL/samd21/include/samd21g18a.h:237:10: fatal error: core_cm0plus.h: No such file or directory

 #include <core_cm0plus.h>


compilation terminated.

exit status 1
Error compiling for board Arduino MKR WiFi 1010.

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

I tried adding #include <core_cm0plus.h> to the header of the sketch but it does not change anything.

EDIT: I was considering to download the file from: https://github.com/ARM-software/CMSIS/blob/master/CMSIS/Include/core_cm0plus.h and include it in my libraries folder but first, i removed the "Arduino SAMD boards" in Boards Manager and reinstalled it (version 1.8.3). It's now fixed! No compilation errors. This is weird... Why is the Arduino IDE 1.8.9 so flimsy??

Go Up