Arduino Forum

Products => MKR Boards => MKR1000 => Topic started by: 101094279 on Aug 24, 2018, 02:51 am

Title: Error compling for board Arduino MKR1000
Post by: 101094279 on Aug 24, 2018, 02:51 am
I have just got my Arduino MKR1000 board. When I tried to run the blink program, I got the following error messages said that there is an error when commpling Arduino MKR1000.

Code: [Select]
Arduino: 1.8.6 (Windows 8.1), Board: "Arduino/Genuino MKR1000"

In file included from C:\ProgramData\MATLAB\SupportPackages\R2018a\3P.instrset\arduinoide.instrset\idepkgs\packages\arduino\tools\CMSIS-Atmel\1.1.0/CMSIS/Device/ATMEL/samd21/include/samd21.h:69:0,

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

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

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

                from sketch\Blink.ino.cpp:1:

C:\ProgramData\MATLAB\SupportPackages\R2018a\3P.instrset\arduinoide.instrset\idepkgs\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/Genuino MKR1000.


This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.
Title: Re: Error compling for board Arduino MKR1000
Post by: ballscrewbob on Aug 24, 2018, 03:12 am
Not everyone uses "matlab" and even less people can see your sketch.

Please use the code tags to post any error msg or sketches ( </> )

Title: Re: Error compling for board Arduino MKR1000
Post by: 101094279 on Aug 24, 2018, 03:25 am
Here is the code that i used.

Code: [Select]

void setup() {
  pinMode(LED_BUILTIN, OUTPUT);
}

void loop() {
  digitalWrite(LED_BUILTIN, HIGH);   // turn the LED on (HIGH is the voltage level)
  delay(1000);                       // wait for a second
  digitalWrite(LED_BUILTIN, LOW);    // turn the LED off by making the voltage LOW
  delay(1000);                       // wait for a second
}
Title: Re: Error compling for board Arduino MKR1000
Post by: ballscrewbob on Aug 24, 2018, 03:31 am
SO you are using matlab as the IDE ?

Totally confused here now.

How does it work if you use the proper Arduino IDE (https://www.arduino.cc/en/Main/Software) ?

Apart from looking like a matlab issue the sketch will work fine.


Title: Re: Error compling for board Arduino MKR1000
Post by: 101094279 on Aug 24, 2018, 04:22 am
Thanks for the replied. I have MATLAB installed on my computer but I use Arduino IDE to program my MKR1000 board. When I tried to run the blink program on Arduino IDE there is an error message saying that there is an error when compiling for board Arduino MKR1000. I don't know why there are MATLAB error messages showing up on Arduino IDE because I did not use MATLAB at all when programming the board.
Title: Re: Error compling for board Arduino MKR1000
Post by: 101094279 on Aug 24, 2018, 04:29 am
I got it sorted by installing the Arduino support package on MATLAB and now it works fine. Thanks for the help.