No such file or directory as arm-none-eabi-g++

I tried to use the (SparkFun PID 15423 Qwiic Micro - SAMD21 Development Board) microcontroller at https://www.amazon.com/dp/B081QXS6VY/ref=pe_830720_688440550_TE_item with the following SparkFun sketch (from https://learn.sparkfun.com/tutorials/sparkfun-qwiic-micro-samd21e-hookup-guide?_ga=2.93393881.555425192.1678385645-648687454.1678149671&_gac=1.242429238.1678407753.EAIaIQobChMIge-0qfjP_QIVeQytBh2JDQJyEAQYASABEgLCBfD_BwE#example-1-blink).

const int LED = 13; // Blue "stat" LED on pin 13

void setup()
{
  pinMode(LED, OUTPUT); //set pin as output
  digitalWrite(LED, LOW); //turn LED off
}

void loop()
{

  digitalWrite(LED, HIGH); // Blue LED on
  delay(250);
  digitalWrite(LED, LOW); // Blue LED off
  delay(250);
}

I got the following error messages.

Arduino: 1.8.19 (Mac OS X), Board: "SparkFun Qwiic Micro"

fork/exec /Users/admin/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 Qwiic Micro.

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

arm-none-eabi-g++ was in a lot of search results, but was in long and different paths.

I don't know if it makes a difference, but I moved a sketch file from a flash drive. I installed the board when the file was on the flash drive.

I would appreciate help.

1 Like

Did you install the required core?

GitHub - arduino/ArduinoCore-samd: Arduino Core for SAMD21 CPU

The webpage that the link in post #2 goes to says to use "Arduino SAMD Boards (32-bit ARM Cortex-M0+)". The SparkFun instructions (at https://learn.sparkfun.com/tutorials/sparkfun-qwiic-micro-samd21e-hookup-guide?_ga=2.93393881.555425192.1678385645-648687454.1678149671&_gac=1.242429238.1678407753.EAIaIQobChMIge-0qfjP_QIVeQytBh2JDQJyEAQYASABEgLCBfD_BwE#setting-up-arduino) say the same thing, but then say to change it to “SparkFun SAMD Boards” > “SparkFun Qwiic Micro”. Are both of those cores?

Hi @jbs_sf. The "SparkFun SAMD Boards" platform (AKA "core") has a dependency on the tools that are installed when you install the "Arduino SAMD Boards (32-bits ARM Cortex-M0+)" platform. So you must install both those platforms.

If you don't install the "Arduino SAMD Boards (32-bits ARM Cortex-M0+)" platform then the right version of arm-none-eabi-gcc tool isn't installed and you get this error message.

Once you have installed the platforms, you will use the Tools > Board > SparkFun SAMD Boards > SparkFun Qwiic Micro menu selection in Arduino IDE, just as described in SparkFun's instructions.

If you would like me to provide instructions you can follow to install the "Arduino SAMD Boards (32-bits ARM Cortex-M0+)" platform, just tell me which version of Arduino IDE you are using (e.g., "2.0.1")? The version is shown on the window title bar and also in the Help > About dialog.

It does not make a difference.

Hi @jbs_sf

I do not really have very much experience to other boards apart form arduino however I would probaly say that there is a certain library that you would need to install or got to 'manage boards' in the arduino IDE software and then download 'Arduino AVR Boards by arduino'.

If you do need to install a certain library then I would probaly reccoment searching up your error message online or at least small parts of it and then that may help fix your problem.

This link may also help you

Yes, please provide instructions, @ptillisch. I’m using version 1.8.19.

I tried using just Arduino SAMD (32-bits ARM Cortex-M0+) Boards, and then tried Arduino Zero (Programming Port) and Arduino Zero (Native USB Port). I still wasn’t able to select a version later than 1.8.12.

It sounds like you already have it installed.

Please try this.

  1. Select File > New from the Arduino IDE menus.
  2. Select Tools > Board > SparkFun SAMD Boards > SparkFun Qwiic Micro from the Arduino IDE menus.
  3. Select Sketch > Verify/Compile from the Arduino IDE menus.

Does the compilation succeed, or do you get an error message.

It says it is done compiling.

Is it okay that there is no longer a check mark by Arduino Zero (Programming Port) or Arduino Zero (Native USB Port)?

Great, so the problem is solve. Now you can get back to progressing with your Arduino projects!

Yes, it's normal and expected.

Thank you! I learned this should have stayed at https://forum.arduino.cc/t/using-simple-feature-extraction-to-control-lights/1007252/134.

You are welcome. I'm glad if I was able to be of assistance.

Regards,
Per

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.