Go Down

Topic: Error compling for board Arduino MKR1000 (Read 824 times) previous topic - next topic

101094279

Aug 24, 2018, 02:51 am Last Edit: Aug 24, 2018, 03:28 am by 101094279
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.

ballscrewbob

Not everyone uses "matlab" and even less people can see your sketch.

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

It may not be the answer you were looking for but its the one I am giving based on either experience, educated guess, google or the fact that you gave nothing to go with in the first place so I used my wonky crystal ball.

101094279

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
}

ballscrewbob

SO you are using matlab as the IDE ?

Totally confused here now.

How does it work if you use the proper Arduino IDE ?

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


It may not be the answer you were looking for but its the one I am giving based on either experience, educated guess, google or the fact that you gave nothing to go with in the first place so I used my wonky crystal ball.

101094279

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.

101094279

I got it sorted by installing the Arduino support package on MATLAB and now it works fine. Thanks for the help.

Go Up