SAMD 21 Compile error

Hi,

Here it is:

Arduino: 1.8.7 (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.

fork/exec /Users/steve/Library/Arduino15/packages/arduino/tools/arm-none-eabi-gcc/7-2017q4/bin/arm-none-eabi-g++: no such file or directory
Error compiling for board SparkFun SAMD21 Dev Breakou]t.[\b]
I’m running :
Arduino SAMD Boards (32-bits ARM Cortex-M0+) by Arduino 1.6.19
SparkFun SAMD Boards (dependency: Arduino SAMD Boards 1.6.19) by SparkFun Electronics version 1.6.1
I get this message whenever I compile any code, including SFE SAMD examples. The different codes compile if I select the Arduino M0 board of Adafruit Feather M0 in the boards manager.
Thanks

Hi sfesdc,

That looks like it may be related to an error in a commit to the board definitions GitHub repository last week. Try rolling back to a previous version of the SparkFun SAMD Board Definitions and then re-install v1.6.1. That should fix the issue but if not, let us know and we can troubleshoot further.

Thanks for the information.

Uninstalled 1.61, installed 1.50, then updated to 1.61. Same error

fork/exec /Users/steve/Library/Arduino15/packages/arduino/tools/arm-none-eabi-gcc/7-2017q4/bin/arm-none-eabi-g++: no such file or directory

Error compiling for board SparkFun SAMD21 Dev Breakout.

The compiler is telling the truth. My 7-2017q4 does not have the /bin. Looks like this:

… tools/arm-none-eabi-gcc/7-2017q4/

->arm-none-eabi

->lib

->lib

->gcc

FYI I found a version of the file in the following location:

User/Library/Arduino15/packages/arduino/tools/arm-none-eabi-gcc/4.8.3-2014q1/bin

the arm-none-eabi-g++ in this location is dated Mar 4 2014

Hmm, it may be an issue localized to your computer as I cannot replicate your error on a computer running Mac OS X. You could try deleting the Arduino15 folder and re-installing or updating Arduino and then re-installing the Arduino SAMD definitions and SparkFun SAMD definitions. I did a search for a portion of that error and found a couple of other threads that might help with this issue:

  • - [https://www.stm32duino.com/viewtopic.php?t=3510](https://www.stm32duino.com/viewtopic.php?t=3510)
  • - [https://github.com/rogerclarkmelbourne/ ... issues/185](https://github.com/rogerclarkmelbourne/Arduino_STM32/issues/185)
  • - [http://www.stm32duino.com/viewtopic.php ... 537#p15537](http://www.stm32duino.com/viewtopic.php?f=37&t=122&p=15537#p15537)
  • That fixed it. I pulled uninstalled all the boards and installed Due, Arduino M0, Saprkfun M0. All looks good. Thanks