SparkFun Forums 

Where electronics enthusiasts find answers.

Have questions about a SparkFun product or board? This is the place to be.
By sfesdc
#200264
After installing SAMD21 in the Arduino IDE I get the following error when compiling the blink code from the install guide.

Arduino: 1.8.5 (Mac OS X), Board: "SparkFun SAMD21 Dev Breakout"

Warning: platform.txt from core 'SparkFun SAMD (32-bits ARM Cortex-M0+) Boards' contains deprecated recipe.ar.pattern="{compiler.path}{compiler.ar.cmd}" {compiler.ar.flags} {compiler.ar.extra_flags} "{build.path}/{archive_file}" "{object_file}", automatically converted to recipe.ar.pattern="{compiler.path}{compiler.ar.cmd}" {compiler.ar.flags} {compiler.ar.extra_flags} "{archive_file_path}" "{object_file}". Consider upgrading this core.

In file included from sketch/sketch_sep08a.ino.cpp:1:0:
/Users/XXXXX/Documents/Arduino/hardware/sparkfun/samd/cores/arduino/Arduino.h:47:17: fatal error: sam.h: No such file or directory
#include "sam.h"
^
compilation terminated.
exit status 1
Error compiling for board SparkFun SAMD21 Dev Breakout.


I have uninstalled all boards and re-installed them. I have deleted the Arduino15 folder and re-installed the boards with the board manager.

The code does compile correctly if I select the Adafruit Feather M0 board. That's great but I want to use the SAMD21.

Mac OSX 10.9.5, Arduino IDE 1.8.5