Go Down

Topic: 'Programmer not responding' and 'Error compiling for board Adafruit Trinket M0'  (Read 2519 times) previous topic - next topic

gsutherland2

I'm trying to upload a simple blinking program to my Adafruit Trinket MO. I have tried using both the online version and the version I downloaded to my MacBook Pro. When I use the board called Trinket MO as I did in the screenshot below, I get a 'Error compiling for board Adafruit Trinket M0.' message immediately. I know the program works because when I switch the board to the Adafruit Playground Classic it compiles and seems to be running for a second until about six 'Programmer not responding' messages come on and it finally gives up. I have not had any problems with Arduino boards and this program but this is giving me trouble and any help would be appreciated, thanks.

pert

There is no way you'll be able to use your Trinket M0 with the "Adafruit Playground Classic" board selected. They are very different, thus the failure to upload.

You need to investigate the error when compiling for the Trinket M0. To do that, you need to look at the detailed error messages shown in the black console window at the bottom of the Arduino IDE window.

Please do this:
  • When you encounter an error, you'll see a button on the right side of the orange bar "Copy error messages" in the Arduino IDE (or the icon that looks like two pieces of paper at the top right corner of the black console window in the Arduino Web Editor). Click that button..
  • In a forum reply here, click on the reply field.
  • Click the </> button on the forum toolbar. This will add the forum's code tags markup to your reply.
  • Press "Ctrl + V". This will paste the error between the code tags.
  • Move the cursor outside of the code tags before you add any additional text to your reply.


If the text exceeds the forum's 9000 character limit, save it to a .txt file and post it as an attachment. If you click the "Reply" button here, you will see an "Attachments and other settings" link.

gsutherland2

Thanks for the help here's the message:

 Arduino: 1.8.10 (Mac OS X), Board: "Adafruit Trinket M0, Arduino, Off"

/private/var/folders/cm/wqkf9t2n4x1bkxrdy10sh41h0000gn/T/AppTranslocation/9908337A-A325-4BB3-A2DA-0173E64AB2E4/d/Arduino.app/Contents/Java/arduino-builder -dump-prefs -logger=machine -hardware /private/var/folders/cm/wqkf9t2n4x1bkxrdy10sh41h0000gn/T/AppTranslocation/9908337A-A325-4BB3-A2DA-0173E64AB2E4/d/Arduino.app/Contents/Java/hardware -hardware /Users/gsutherland2/Library/Arduino15/packages -tools /private/var/folders/cm/wqkf9t2n4x1bkxrdy10sh41h0000gn/T/AppTranslocation/9908337A-A325-4BB3-A2DA-0173E64AB2E4/d/Arduino.app/Contents/Java/tools-builder -tools /private/var/folders/cm/wqkf9t2n4x1bkxrdy10sh41h0000gn/T/AppTranslocation/9908337A-A325-4BB3-A2DA-0173E64AB2E4/d/Arduino.app/Contents/Java/hardware/tools/avr -tools /Users/gsutherland2/Library/Arduino15/packages -built-in-libraries /private/var/folders/cm/wqkf9t2n4x1bkxrdy10sh41h0000gn/T/AppTranslocation/9908337A-A325-4BB3-A2DA-0173E64AB2E4/d/Arduino.app/Contents/Java/libraries -libraries /Users/gsutherland2/Documents/Arduino/libraries -fqbn=adafruit:samd:adafruit_trinket_m0:usbstack=arduino,debug=off -ide-version=10810 -build-path /var/folders/cm/wqkf9t2n4x1bkxrdy10sh41h0000gn/T/arduino_build_574888 -warnings=none -build-cache /var/folders/cm/wqkf9t2n4x1bkxrdy10sh41h0000gn/T/arduino_cache_792267 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.bossac.path=/Users/gsutherland2/Library/Arduino15/packages/arduino/tools/bossac/1.8.0-48-gb176eee -prefs=runtime.tools.bossac-1.7.0.path=/Users/gsutherland2/Library/Arduino15/packages/arduino/tools/bossac/1.7.0 -prefs=runtime.tools.bossac-1.8.0-48-gb176eee.path=/Users/gsutherland2/Library/Arduino15/packages/arduino/tools/bossac/1.8.0-48-gb176eee -prefs=runtime.tools.openocd.path=/Users/gsutherland2/Library/Arduino15/packages/arduino/tools/openocd/0.9.0-arduino -prefs=runtime.tools.openocd-0.9.0-arduino.path=/Users/gsutherland2/Library/Arduino15/packages/arduino/tools/openocd/0.9.0-arduino -prefs=runtime.tools.CMSIS-Atmel.path=/Users/gsutherland2/Library/Arduino15/packages/arduino/tools/CMSIS-Atmel/1.2.0 -prefs=runtime.tools.CMSIS-Atmel-1.2.0.path=/Users/gsutherland2/Library/Arduino15/packages/arduino/tools/CMSIS-Atmel/1.2.0 -prefs=runtime.tools.arm-none-eabi-gcc.path=/Users/gsutherland2/Library/Arduino15/packages/arduino/tools/arm-none-eabi-gcc/4.8.3-2014q1 -prefs=runtime.tools.arm-none-eabi-gcc-4.8.3-2014q1.path=/Users/gsutherland2/Library/Arduino15/packages/arduino/tools/arm-none-eabi-gcc/4.8.3-2014q1 -prefs=runtime.tools.CMSIS.path=/Users/gsutherland2/Library/Arduino15/packages/arduino/tools/CMSIS/4.5.0 -prefs=runtime.tools.CMSIS-4.5.0.path=/Users/gsutherland2/Library/Arduino15/packages/arduino/tools/CMSIS/4.5.0 -verbose /Users/gsutherland2/Documents/Arduino/testtrink/testtrink.ino
/private/var/folders/cm/wqkf9t2n4x1bkxrdy10sh41h0000gn/T/AppTranslocation/9908337A-A325-4BB3-A2DA-0173E64AB2E4/d/Arduino.app/Contents/Java/arduino-builder -compile -logger=machine -hardware /private/var/folders/cm/wqkf9t2n4x1bkxrdy10sh41h0000gn/T/AppTranslocation/9908337A-A325-4BB3-A2DA-0173E64AB2E4/d/Arduino.app/Contents/Java/hardware -hardware /Users/gsutherland2/Library/Arduino15/packages -tools /private/var/folders/cm/wqkf9t2n4x1bkxrdy10sh41h0000gn/T/AppTranslocation/9908337A-A325-4BB3-A2DA-0173E64AB2E4/d/Arduino.app/Contents/Java/tools-builder -tools /private/var/folders/cm/wqkf9t2n4x1bkxrdy10sh41h0000gn/T/AppTranslocation/9908337A-A325-4BB3-A2DA-0173E64AB2E4/d/Arduino.app/Contents/Java/hardware/tools/avr -tools /Users/gsutherland2/Library/Arduino15/packages -built-in-libraries /private/var/folders/cm/wqkf9t2n4x1bkxrdy10sh41h0000gn/T/AppTranslocation/9908337A-A325-4BB3-A2DA-0173E64AB2E4/d/Arduino.app/Contents/Java/libraries -libraries /Users/gsutherland2/Documents/Arduino/libraries -fqbn=adafruit:samd:adafruit_trinket_m0:usbstack=arduino,debug=off -ide-version=10810 -build-path /var/folders/cm/wqkf9t2n4x1bkxrdy10sh41h0000gn/T/arduino_build_574888 -warnings=none -build-cache /var/folders/cm/wqkf9t2n4x1bkxrdy10sh41h0000gn/T/arduino_cache_792267 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.bossac.path=/Users/gsutherland2/Library/Arduino15/packages/arduino/tools/bossac/1.8.0-48-gb176eee -prefs=runtime.tools.bossac-1.7.0.path=/Users/gsutherland2/Library/Arduino15/packages/arduino/tools/bossac/1.7.0 -prefs=runtime.tools.bossac-1.8.0-48-gb176eee.path=/Users/gsutherland2/Library/Arduino15/packages/arduino/tools/bossac/1.8.0-48-gb176eee -prefs=runtime.tools.openocd.path=/Users/gsutherland2/Library/Arduino15/packages/arduino/tools/openocd/0.9.0-arduino -prefs=runtime.tools.openocd-0.9.0-arduino.path=/Users/gsutherland2/Library/Arduino15/packages/arduino/tools/openocd/0.9.0-arduino -prefs=runtime.tools.CMSIS-Atmel.path=/Users/gsutherland2/Library/Arduino15/packages/arduino/tools/CMSIS-Atmel/1.2.0 -prefs=runtime.tools.CMSIS-Atmel-1.2.0.path=/Users/gsutherland2/Library/Arduino15/packages/arduino/tools/CMSIS-Atmel/1.2.0 -prefs=runtime.tools.arm-none-eabi-gcc.path=/Users/gsutherland2/Library/Arduino15/packages/arduino/tools/arm-none-eabi-gcc/4.8.3-2014q1 -prefs=runtime.tools.arm-none-eabi-gcc-4.8.3-2014q1.path=/Users/gsutherland2/Library/Arduino15/packages/arduino/tools/arm-none-eabi-gcc/4.8.3-2014q1 -prefs=runtime.tools.CMSIS.path=/Users/gsutherland2/Library/Arduino15/packages/arduino/tools/CMSIS/4.5.0 -prefs=runtime.tools.CMSIS-4.5.0.path=/Users/gsutherland2/Library/Arduino15/packages/arduino/tools/CMSIS/4.5.0 -verbose /Users/gsutherland2/Documents/Arduino/testtrink/testtrink.ino
Using board 'adafruit_trinket_m0' from platform in folder: /Users/gsutherland2/Library/Arduino15/packages/adafruit/hardware/samd/1.5.9
Using core 'arduino' from platform in folder: /Users/gsutherland2/Library/Arduino15/packages/adafruit/hardware/samd/1.5.9
Detecting libraries used...
/Users/gsutherland2/Library/Arduino15/packages/arduino/tools/arm-none-eabi-gcc/7-2017q4/bin/arm-none-eabi-g++ -mcpu=cortex-m0plus -mthumb -c -g -Os -w -std=gnu++11 -ffunction-sections -fdata-sections -fno-threadsafe-statics -nostdlib --param max-inline-insns-single=500 -fno-rtti -fno-exceptions "-D__SKETCH_NAME__=\"\"\"testtrink.ino\"\"\"" -w -x c++ -E -CC -DF_CPU=48000000L -DARDUINO=10810 -DARDUINO_TRINKET_M0 -DARDUINO_ARCH_SAMD -DCRYSTALLESS -DADAFRUIT_TRINKET_M0 -D__SAMD21E18A__ -DARM_MATH_CM0PLUS -DUSB_VID=0x239A -DUSB_PID=0x801E -DUSBCON -DUSB_CONFIG_POWER=100 "-DUSB_MANUFACTURER=\"Adafruit\"" "-DUSB_PRODUCT=\"Trinket M0\"" -I/Users/gsutherland2/Library/Arduino15/packages/adafruit/hardware/samd/1.5.9/cores/arduino/TinyUSB -I/Users/gsutherland2/Library/Arduino15/packages/adafruit/hardware/samd/1.5.9/cores/arduino/TinyUSB/Adafruit_TinyUSB_ArduinoCore -I/Users/gsutherland2/Library/Arduino15/packages/adafruit/hardware/samd/1.5.9/cores/arduino/TinyUSB/Adafruit_TinyUSB_ArduinoCore/tinyusb/src -DCRYSTALLESS -DADAFRUIT_TRINKET_M0 -D__SAMD21E18A__ -DARM_MATH_CM0PLUS -DUSB_VID=0x239A -DUSB_PID=0x801E -DUSBCON -DUSB_CONFIG_POWER=100 "-DUSB_MANUFACTURER=\"Adafruit\"" "-DUSB_PRODUCT=\"Trinket M0\"" -I/Users/gsutherland2/Library/Arduino15/packages/adafruit/hardware/samd/1.5.9/cores/arduino/TinyUSB -I/Users/gsutherland2/Library/Arduino15/packages/adafruit/hardware/samd/1.5.9/cores/arduino/TinyUSB/Adafruit_TinyUSB_ArduinoCore -I/Users/gsutherland2/Library/Arduino15/packages/adafruit/hardware/samd/1.5.9/cores/arduino/TinyUSB/Adafruit_TinyUSB_ArduinoCore/tinyusb/src -I/Users/gsutherland2/Library/Arduino15/packages/arduino/tools/CMSIS/4.5.0/CMSIS/Include/ -I/Users/gsutherland2/Library/Arduino15/packages/arduino/tools/CMSIS-Atmel/1.2.0/CMSIS/Device/ATMEL/ -I/Users/gsutherland2/Library/Arduino15/packages/adafruit/hardware/samd/1.5.9/cores/arduino -I/Users/gsutherland2/Library/Arduino15/packages/adafruit/hardware/samd/1.5.9/variants/trinket_m0 /var/folders/cm/wqkf9t2n4x1bkxrdy10sh41h0000gn/T/arduino_build_574888/sketch/testtrink.ino.cpp -o /dev/null
fork/exec /Users/gsutherland2/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 Adafruit Trinket M0.

Code: [Select]


Error still occurring with same settings on as the screenshot of the original post.
The online version of Arduino also doesn't have the Trinket MO even though I pay extra for the feature of Adafruit support.

pert

This indicates something has gone wrong with your Adafruit SAMD Boards installation. To make sure it has been fully uninstalled you need to take some drastic action. Be aware this is somewhat advanced and will remove all boards you have installed via Boards Manager:
  • (In the Arduino IDE) File > Preferences
  • In the Arduino IDE, click the link on the line following "More preferences can be edited directly in the file". This will open the Arduino15 (or similar name depending on OS) folder.
  • Delete all files and folders under the Arduino15 folder except for preferences.txt. Please be very careful when deleting things from your computer. When in doubt, back up!
  • (In the Arduino IDE) Tools > Board > Boards Manager
  • Wait for the downloads to finish.
  • Scroll down until you see the Adafruit SAMD Boardsentry. Click on it.
  • Click "Install".
  • Wait for installation to finish.
  • Click "Close"

gsutherland2

I followed your directions exactly but it is still giving me errors compiling. Ive attached the screenshot of what my settings are below as well as the error code. The interesting thing is that I no longer have the port I was using before available and the light on my Trinket MO is red now and not pulsing as it was. Code:

Arduino: 1.8.10 (Mac OS X), Board: "Adafruit Trinket M0, Arduino, Off"

/private/var/folders/cm/wqkf9t2n4x1bkxrdy10sh41h0000gn/T/AppTranslocation/8C67E6C0-5EB1-4701-B5E6-A271C878BE25/d/Arduino.app/Contents/Java/arduino-builder -dump-prefs -logger=machine -hardware /private/var/folders/cm/wqkf9t2n4x1bkxrdy10sh41h0000gn/T/AppTranslocation/8C67E6C0-5EB1-4701-B5E6-A271C878BE25/d/Arduino.app/Contents/Java/hardware -hardware /Users/gsutherland2/Library/Arduino15/packages -tools /private/var/folders/cm/wqkf9t2n4x1bkxrdy10sh41h0000gn/T/AppTranslocation/8C67E6C0-5EB1-4701-B5E6-A271C878BE25/d/Arduino.app/Contents/Java/tools-builder -tools /private/var/folders/cm/wqkf9t2n4x1bkxrdy10sh41h0000gn/T/AppTranslocation/8C67E6C0-5EB1-4701-B5E6-A271C878BE25/d/Arduino.app/Contents/Java/hardware/tools/avr -tools /Users/gsutherland2/Library/Arduino15/packages -built-in-libraries /private/var/folders/cm/wqkf9t2n4x1bkxrdy10sh41h0000gn/T/AppTranslocation/8C67E6C0-5EB1-4701-B5E6-A271C878BE25/d/Arduino.app/Contents/Java/libraries -libraries /Users/gsutherland2/Documents/Arduino/libraries -fqbn=adafruit:samd:adafruit_trinket_m0:usbstack=arduino,debug=off -ide-version=10810 -build-path /var/folders/cm/wqkf9t2n4x1bkxrdy10sh41h0000gn/T/arduino_build_18899 -warnings=none -build-cache /var/folders/cm/wqkf9t2n4x1bkxrdy10sh41h0000gn/T/arduino_cache_236120 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.CMSIS-Atmel.path=/Users/gsutherland2/Library/Arduino15/packages/arduino/tools/CMSIS-Atmel/1.2.0 -prefs=runtime.tools.CMSIS-Atmel-1.2.0.path=/Users/gsutherland2/Library/Arduino15/packages/arduino/tools/CMSIS-Atmel/1.2.0 -prefs=runtime.tools.bossac.path=/Users/gsutherland2/Library/Arduino15/packages/arduino/tools/bossac/1.7.0 -prefs=runtime.tools.bossac-1.8.0-48-gb176eee.path=/Users/gsutherland2/Library/Arduino15/packages/arduino/tools/bossac/1.8.0-48-gb176eee -prefs=runtime.tools.bossac-1.7.0.path=/Users/gsutherland2/Library/Arduino15/packages/arduino/tools/bossac/1.7.0 -prefs=runtime.tools.arm-none-eabi-gcc.path=/Users/gsutherland2/Library/Arduino15/packages/arduino/tools/arm-none-eabi-gcc/4.8.3-2014q1 -prefs=runtime.tools.arm-none-eabi-gcc-4.8.3-2014q1.path=/Users/gsutherland2/Library/Arduino15/packages/arduino/tools/arm-none-eabi-gcc/4.8.3-2014q1 -prefs=runtime.tools.openocd.path=/Users/gsutherland2/Library/Arduino15/packages/arduino/tools/openocd/0.9.0-arduino -prefs=runtime.tools.openocd-0.9.0-arduino.path=/Users/gsutherland2/Library/Arduino15/packages/arduino/tools/openocd/0.9.0-arduino -prefs=runtime.tools.CMSIS.path=/Users/gsutherland2/Library/Arduino15/packages/arduino/tools/CMSIS/4.5.0 -prefs=runtime.tools.CMSIS-4.5.0.path=/Users/gsutherland2/Library/Arduino15/packages/arduino/tools/CMSIS/4.5.0 -verbose /Users/gsutherland2/Documents/Arduino/testtrink/testtrink.ino
/private/var/folders/cm/wqkf9t2n4x1bkxrdy10sh41h0000gn/T/AppTranslocation/8C67E6C0-5EB1-4701-B5E6-A271C878BE25/d/Arduino.app/Contents/Java/arduino-builder -compile -logger=machine -hardware /private/var/folders/cm/wqkf9t2n4x1bkxrdy10sh41h0000gn/T/AppTranslocation/8C67E6C0-5EB1-4701-B5E6-A271C878BE25/d/Arduino.app/Contents/Java/hardware -hardware /Users/gsutherland2/Library/Arduino15/packages -tools /private/var/folders/cm/wqkf9t2n4x1bkxrdy10sh41h0000gn/T/AppTranslocation/8C67E6C0-5EB1-4701-B5E6-A271C878BE25/d/Arduino.app/Contents/Java/tools-builder -tools /private/var/folders/cm/wqkf9t2n4x1bkxrdy10sh41h0000gn/T/AppTranslocation/8C67E6C0-5EB1-4701-B5E6-A271C878BE25/d/Arduino.app/Contents/Java/hardware/tools/avr -tools /Users/gsutherland2/Library/Arduino15/packages -built-in-libraries /private/var/folders/cm/wqkf9t2n4x1bkxrdy10sh41h0000gn/T/AppTranslocation/8C67E6C0-5EB1-4701-B5E6-A271C878BE25/d/Arduino.app/Contents/Java/libraries -libraries /Users/gsutherland2/Documents/Arduino/libraries -fqbn=adafruit:samd:adafruit_trinket_m0:usbstack=arduino,debug=off -ide-version=10810 -build-path /var/folders/cm/wqkf9t2n4x1bkxrdy10sh41h0000gn/T/arduino_build_18899 -warnings=none -build-cache /var/folders/cm/wqkf9t2n4x1bkxrdy10sh41h0000gn/T/arduino_cache_236120 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.CMSIS-Atmel.path=/Users/gsutherland2/Library/Arduino15/packages/arduino/tools/CMSIS-Atmel/1.2.0 -prefs=runtime.tools.CMSIS-Atmel-1.2.0.path=/Users/gsutherland2/Library/Arduino15/packages/arduino/tools/CMSIS-Atmel/1.2.0 -prefs=runtime.tools.bossac.path=/Users/gsutherland2/Library/Arduino15/packages/arduino/tools/bossac/1.7.0 -prefs=runtime.tools.bossac-1.8.0-48-gb176eee.path=/Users/gsutherland2/Library/Arduino15/packages/arduino/tools/bossac/1.8.0-48-gb176eee -prefs=runtime.tools.bossac-1.7.0.path=/Users/gsutherland2/Library/Arduino15/packages/arduino/tools/bossac/1.7.0 -prefs=runtime.tools.arm-none-eabi-gcc.path=/Users/gsutherland2/Library/Arduino15/packages/arduino/tools/arm-none-eabi-gcc/4.8.3-2014q1 -prefs=runtime.tools.arm-none-eabi-gcc-4.8.3-2014q1.path=/Users/gsutherland2/Library/Arduino15/packages/arduino/tools/arm-none-eabi-gcc/4.8.3-2014q1 -prefs=runtime.tools.openocd.path=/Users/gsutherland2/Library/Arduino15/packages/arduino/tools/openocd/0.9.0-arduino -prefs=runtime.tools.openocd-0.9.0-arduino.path=/Users/gsutherland2/Library/Arduino15/packages/arduino/tools/openocd/0.9.0-arduino -prefs=runtime.tools.CMSIS.path=/Users/gsutherland2/Library/Arduino15/packages/arduino/tools/CMSIS/4.5.0 -prefs=runtime.tools.CMSIS-4.5.0.path=/Users/gsutherland2/Library/Arduino15/packages/arduino/tools/CMSIS/4.5.0 -verbose /Users/gsutherland2/Documents/Arduino/testtrink/testtrink.ino
Using board 'adafruit_trinket_m0' from platform in folder: /Users/gsutherland2/Library/Arduino15/packages/adafruit/hardware/samd/1.5.9
Using core 'arduino' from platform in folder: /Users/gsutherland2/Library/Arduino15/packages/adafruit/hardware/samd/1.5.9
Detecting libraries used...
/bin/arm-none-eabi-g++ -mcpu=cortex-m0plus -mthumb -c -g -Os -w -std=gnu++11 -ffunction-sections -fdata-sections -fno-threadsafe-statics -nostdlib --param max-inline-insns-single=500 -fno-rtti -fno-exceptions "-D__SKETCH_NAME__=\"\"\"testtrink.ino\"\"\"" -w -x c++ -E -CC -DF_CPU=48000000L -DARDUINO=10810 -DARDUINO_TRINKET_M0 -DARDUINO_ARCH_SAMD -DCRYSTALLESS -DADAFRUIT_TRINKET_M0 -D__SAMD21E18A__ -DARM_MATH_CM0PLUS -DUSB_VID=0x239A -DUSB_PID=0x801E -DUSBCON -DUSB_CONFIG_POWER=100 "-DUSB_MANUFACTURER=\"Adafruit\"" "-DUSB_PRODUCT=\"Trinket M0\"" -I/Users/gsutherland2/Library/Arduino15/packages/adafruit/hardware/samd/1.5.9/cores/arduino/TinyUSB -I/Users/gsutherland2/Library/Arduino15/packages/adafruit/hardware/samd/1.5.9/cores/arduino/TinyUSB/Adafruit_TinyUSB_ArduinoCore -I/Users/gsutherland2/Library/Arduino15/packages/adafruit/hardware/samd/1.5.9/cores/arduino/TinyUSB/Adafruit_TinyUSB_ArduinoCore/tinyusb/src -DCRYSTALLESS -DADAFRUIT_TRINKET_M0 -D__SAMD21E18A__ -DARM_MATH_CM0PLUS -DUSB_VID=0x239A -DUSB_PID=0x801E -DUSBCON -DUSB_CONFIG_POWER=100 "-DUSB_MANUFACTURER=\"Adafruit\"" "-DUSB_PRODUCT=\"Trinket M0\"" -I/Users/gsutherland2/Library/Arduino15/packages/adafruit/hardware/samd/1.5.9/cores/arduino/TinyUSB -I/Users/gsutherland2/Library/Arduino15/packages/adafruit/hardware/samd/1.5.9/cores/arduino/TinyUSB/Adafruit_TinyUSB_ArduinoCore -I/Users/gsutherland2/Library/Arduino15/packages/adafruit/hardware/samd/1.5.9/cores/arduino/TinyUSB/Adafruit_TinyUSB_ArduinoCore/tinyusb/src -I/Users/gsutherland2/Library/Arduino15/packages/arduino/tools/CMSIS/4.5.0/CMSIS/Include/ -I/Users/gsutherland2/Library/Arduino15/packages/arduino/tools/CMSIS-Atmel/1.2.0/CMSIS/Device/ATMEL/ -I/Users/gsutherland2/Library/Arduino15/packages/adafruit/hardware/samd/1.5.9/cores/arduino -I/Users/gsutherland2/Library/Arduino15/packages/adafruit/hardware/samd/1.5.9/variants/trinket_m0 /var/folders/cm/wqkf9t2n4x1bkxrdy10sh41h0000gn/T/arduino_build_18899/sketch/testtrink.ino.cpp -o /dev/null
fork/exec /bin/arm-none-eabi-g++: no such file or directory
Error compiling for board Adafruit Trinket M0.

pert

Try this:
  • Tools > Board > Boards Manager
  • Wait for the downloads to finish.
  • Click on "Arduino SAMD Boards (32-bits ARM Cortex-M3)".
  • Click the "Install" button.
  • Wait for the installation to finish.
  • Click the "Close" button.
  • Try compiling for your Adafruit Trinket M0 again.

gsutherland2

Thank you for the continued help here is new error:

Arduino: 1.8.10 (Mac OS X), Board: "Adafruit Trinket M0, Arduino, Off"

/private/var/folders/cm/wqkf9t2n4x1bkxrdy10sh41h0000gn/T/AppTranslocation/3CFDA054-43C7-4A1C-B55D-7DF691EDB1D2/d/Arduino.app/Contents/Java/arduino-builder -dump-prefs -logger=machine -hardware /private/var/folders/cm/wqkf9t2n4x1bkxrdy10sh41h0000gn/T/AppTranslocation/3CFDA054-43C7-4A1C-B55D-7DF691EDB1D2/d/Arduino.app/Contents/Java/hardware -hardware /Users/gsutherland2/Library/Arduino15/packages -tools /private/var/folders/cm/wqkf9t2n4x1bkxrdy10sh41h0000gn/T/AppTranslocation/3CFDA054-43C7-4A1C-B55D-7DF691EDB1D2/d/Arduino.app/Contents/Java/tools-builder -tools /private/var/folders/cm/wqkf9t2n4x1bkxrdy10sh41h0000gn/T/AppTranslocation/3CFDA054-43C7-4A1C-B55D-7DF691EDB1D2/d/Arduino.app/Contents/Java/hardware/tools/avr -tools /Users/gsutherland2/Library/Arduino15/packages -built-in-libraries /private/var/folders/cm/wqkf9t2n4x1bkxrdy10sh41h0000gn/T/AppTranslocation/3CFDA054-43C7-4A1C-B55D-7DF691EDB1D2/d/Arduino.app/Contents/Java/libraries -libraries /Users/gsutherland2/Documents/Arduino/libraries -fqbn=adafruit:samd:adafruit_trinket_m0:usbstack=arduino,debug=off -vid-pid=0000_0000 -ide-version=10810 -build-path /var/folders/cm/wqkf9t2n4x1bkxrdy10sh41h0000gn/T/arduino_build_411703 -warnings=none -build-cache /var/folders/cm/wqkf9t2n4x1bkxrdy10sh41h0000gn/T/arduino_cache_29068 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.openocd.path=/Users/gsutherland2/Library/Arduino15/packages/arduino/tools/openocd/0.9.0-arduino -prefs=runtime.tools.openocd-0.9.0-arduino.path=/Users/gsutherland2/Library/Arduino15/packages/arduino/tools/openocd/0.9.0-arduino -prefs=runtime.tools.CMSIS.path=/Users/gsutherland2/Library/Arduino15/packages/arduino/tools/CMSIS/4.5.0 -prefs=runtime.tools.CMSIS-4.5.0.path=/Users/gsutherland2/Library/Arduino15/packages/arduino/tools/CMSIS/4.5.0 -prefs=runtime.tools.CMSIS-Atmel.path=/Users/gsutherland2/Library/Arduino15/packages/arduino/tools/CMSIS-Atmel/1.2.0 -prefs=runtime.tools.CMSIS-Atmel-1.2.0.path=/Users/gsutherland2/Library/Arduino15/packages/arduino/tools/CMSIS-Atmel/1.2.0 -prefs=runtime.tools.arm-none-eabi-gcc.path=/Users/gsutherland2/Library/Arduino15/packages/arduino/tools/arm-none-eabi-gcc/4.8.3-2014q1 -prefs=runtime.tools.arm-none-eabi-gcc-4.8.3-2014q1.path=/Users/gsutherland2/Library/Arduino15/packages/arduino/tools/arm-none-eabi-gcc/4.8.3-2014q1 -prefs=runtime.tools.bossac.path=/Users/gsutherland2/Library/Arduino15/packages/arduino/tools/bossac/1.8.0-48-gb176eee -prefs=runtime.tools.bossac-1.7.0.path=/Users/gsutherland2/Library/Arduino15/packages/arduino/tools/bossac/1.7.0 -prefs=runtime.tools.bossac-1.8.0-48-gb176eee.path=/Users/gsutherland2/Library/Arduino15/packages/arduino/tools/bossac/1.8.0-48-gb176eee -verbose /Users/gsutherland2/Documents/Arduino/testtrink/testtrink.ino
/private/var/folders/cm/wqkf9t2n4x1bkxrdy10sh41h0000gn/T/AppTranslocation/3CFDA054-43C7-4A1C-B55D-7DF691EDB1D2/d/Arduino.app/Contents/Java/arduino-builder -compile -logger=machine -hardware /private/var/folders/cm/wqkf9t2n4x1bkxrdy10sh41h0000gn/T/AppTranslocation/3CFDA054-43C7-4A1C-B55D-7DF691EDB1D2/d/Arduino.app/Contents/Java/hardware -hardware /Users/gsutherland2/Library/Arduino15/packages -tools /private/var/folders/cm/wqkf9t2n4x1bkxrdy10sh41h0000gn/T/AppTranslocation/3CFDA054-43C7-4A1C-B55D-7DF691EDB1D2/d/Arduino.app/Contents/Java/tools-builder -tools /private/var/folders/cm/wqkf9t2n4x1bkxrdy10sh41h0000gn/T/AppTranslocation/3CFDA054-43C7-4A1C-B55D-7DF691EDB1D2/d/Arduino.app/Contents/Java/hardware/tools/avr -tools /Users/gsutherland2/Library/Arduino15/packages -built-in-libraries /private/var/folders/cm/wqkf9t2n4x1bkxrdy10sh41h0000gn/T/AppTranslocation/3CFDA054-43C7-4A1C-B55D-7DF691EDB1D2/d/Arduino.app/Contents/Java/libraries -libraries /Users/gsutherland2/Documents/Arduino/libraries -fqbn=adafruit:samd:adafruit_trinket_m0:usbstack=arduino,debug=off -vid-pid=0000_0000 -ide-version=10810 -build-path /var/folders/cm/wqkf9t2n4x1bkxrdy10sh41h0000gn/T/arduino_build_411703 -warnings=none -build-cache /var/folders/cm/wqkf9t2n4x1bkxrdy10sh41h0000gn/T/arduino_cache_29068 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.openocd.path=/Users/gsutherland2/Library/Arduino15/packages/arduino/tools/openocd/0.9.0-arduino -prefs=runtime.tools.openocd-0.9.0-arduino.path=/Users/gsutherland2/Library/Arduino15/packages/arduino/tools/openocd/0.9.0-arduino -prefs=runtime.tools.CMSIS.path=/Users/gsutherland2/Library/Arduino15/packages/arduino/tools/CMSIS/4.5.0 -prefs=runtime.tools.CMSIS-4.5.0.path=/Users/gsutherland2/Library/Arduino15/packages/arduino/tools/CMSIS/4.5.0 -prefs=runtime.tools.CMSIS-Atmel.path=/Users/gsutherland2/Library/Arduino15/packages/arduino/tools/CMSIS-Atmel/1.2.0 -prefs=runtime.tools.CMSIS-Atmel-1.2.0.path=/Users/gsutherland2/Library/Arduino15/packages/arduino/tools/CMSIS-Atmel/1.2.0 -prefs=runtime.tools.arm-none-eabi-gcc.path=/Users/gsutherland2/Library/Arduino15/packages/arduino/tools/arm-none-eabi-gcc/4.8.3-2014q1 -prefs=runtime.tools.arm-none-eabi-gcc-4.8.3-2014q1.path=/Users/gsutherland2/Library/Arduino15/packages/arduino/tools/arm-none-eabi-gcc/4.8.3-2014q1 -prefs=runtime.tools.bossac.path=/Users/gsutherland2/Library/Arduino15/packages/arduino/tools/bossac/1.8.0-48-gb176eee -prefs=runtime.tools.bossac-1.7.0.path=/Users/gsutherland2/Library/Arduino15/packages/arduino/tools/bossac/1.7.0 -prefs=runtime.tools.bossac-1.8.0-48-gb176eee.path=/Users/gsutherland2/Library/Arduino15/packages/arduino/tools/bossac/1.8.0-48-gb176eee -verbose /Users/gsutherland2/Documents/Arduino/testtrink/testtrink.ino
Using board 'adafruit_trinket_m0' from platform in folder: /Users/gsutherland2/Library/Arduino15/packages/adafruit/hardware/samd/1.5.9
Using core 'arduino' from platform in folder: /Users/gsutherland2/Library/Arduino15/packages/adafruit/hardware/samd/1.5.9
Detecting libraries used...
/bin/arm-none-eabi-g++ -mcpu=cortex-m0plus -mthumb -c -g -Os -w -std=gnu++11 -ffunction-sections -fdata-sections -fno-threadsafe-statics -nostdlib --param max-inline-insns-single=500 -fno-rtti -fno-exceptions "-D__SKETCH_NAME__=\"\"\"testtrink.ino\"\"\"" -w -x c++ -E -CC -DF_CPU=48000000L -DARDUINO=10810 -DARDUINO_TRINKET_M0 -DARDUINO_ARCH_SAMD -DCRYSTALLESS -DADAFRUIT_TRINKET_M0 -D__SAMD21E18A__ -DARM_MATH_CM0PLUS -DUSB_VID=0x239A -DUSB_PID=0x801E -DUSBCON -DUSB_CONFIG_POWER=100 "-DUSB_MANUFACTURER=\"Adafruit\"" "-DUSB_PRODUCT=\"Trinket M0\"" -I/Users/gsutherland2/Library/Arduino15/packages/adafruit/hardware/samd/1.5.9/cores/arduino/TinyUSB -I/Users/gsutherland2/Library/Arduino15/packages/adafruit/hardware/samd/1.5.9/cores/arduino/TinyUSB/Adafruit_TinyUSB_ArduinoCore -I/Users/gsutherland2/Library/Arduino15/packages/adafruit/hardware/samd/1.5.9/cores/arduino/TinyUSB/Adafruit_TinyUSB_ArduinoCore/tinyusb/src -DCRYSTALLESS -DADAFRUIT_TRINKET_M0 -D__SAMD21E18A__ -DARM_MATH_CM0PLUS -DUSB_VID=0x239A -DUSB_PID=0x801E -DUSBCON -DUSB_CONFIG_POWER=100 "-DUSB_MANUFACTURER=\"Adafruit\"" "-DUSB_PRODUCT=\"Trinket M0\"" -I/Users/gsutherland2/Library/Arduino15/packages/adafruit/hardware/samd/1.5.9/cores/arduino/TinyUSB -I/Users/gsutherland2/Library/Arduino15/packages/adafruit/hardware/samd/1.5.9/cores/arduino/TinyUSB/Adafruit_TinyUSB_ArduinoCore -I/Users/gsutherland2/Library/Arduino15/packages/adafruit/hardware/samd/1.5.9/cores/arduino/TinyUSB/Adafruit_TinyUSB_ArduinoCore/tinyusb/src -I/Users/gsutherland2/Library/Arduino15/packages/arduino/tools/CMSIS/4.5.0/CMSIS/Include/ -I/Users/gsutherland2/Library/Arduino15/packages/arduino/tools/CMSIS-Atmel/1.2.0/CMSIS/Device/ATMEL/ -I/Users/gsutherland2/Library/Arduino15/packages/adafruit/hardware/samd/1.5.9/cores/arduino -I/Users/gsutherland2/Library/Arduino15/packages/adafruit/hardware/samd/1.5.9/variants/trinket_m0 /var/folders/cm/wqkf9t2n4x1bkxrdy10sh41h0000gn/T/arduino_build_411703/sketch/testtrink.ino.cpp -o /dev/null
fork/exec /bin/arm-none-eabi-g++: no such file or directory
Error compiling for board Adafruit Trinket M0.



pert

This error indicates something has gone wrong with a hardware package installed via Boards Manager. The solution is to remove and then re-install the packages. Be aware this will remove any boards you have installed via Boards Manager:
  • (In the Arduino IDE) File > Preferences
  • In the Arduino IDE, click the link on the line following "More preferences can be edited directly in the file". This will open the Arduino15 (or similar name depending on OS) folder.
  • Delete all files and folders under the Arduino15 folder except for preferences.txt. Please be very careful when deleting things from your computer. When in doubt, back up!
  • (In the Arduino IDE) Tools > Board > Boards Manager
  • Wait for the downloads to finish.
  • Click on "Arduino SAMD Boards (32-bits ARM Cortex-M0+)".
  • Click the "Install" button.
  • Wait for the installation to finish.
  • Click on "Adafruit SAMD Boards (32-bits ARM Cortex-M0+)".
  • Click the "Install" button.
  • Wait for the installation to finish.
  • Click "Close"

gsutherland2

Thanks as soon as I downloaded all SAM and SAMD boards it worked. Thanks for all the help!

pert


Go Up