0

Blink Tutorial for Arduino IDE - Compiling issue
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Blink Tutorial for Arduino IDE - Compiling issue

by AmandaB on Tue Oct 25, 2016 11:22 am

I'm working through this tutorial - https://learn.adafruit.com/introducing- ... rduino-ide with a MacBook pro Retina (2015, running Sierra) and I have the board set to Adafruit Gemma 8MHz (I've verified that's what I have, the black one with the adafruit star on the back) and the programmer set to USBtinyISP.

I'm seeing an error, but I'm also seeing the Gemma not blink when I hit the reset button while it's plugged into my Mac. The red light comes on solid for about 2, 2 1/2 seconds and then turns off, it doesn't blink. I've tried turning it on and off with the switch and with removing power, but nothing seems to make it blink as ready for the code upload. I think I might have made some sort of mistake in the initial setup/swap of one of the log files, because I'm getting this error with the blink script:
Code: Select all | TOGGLE FULL SIZE
Arduino: 1.6.12 (Mac OS X), Board: "Adafruit Gemma 8MHz"

/Applications/Arduino.app/Contents/Java/arduino-builder -dump-prefs -logger=machine -hardware /Applications/Arduino.app/Contents/Java/hardware -hardware /Users/AmandaB/Library/Arduino15/packages -hardware /Users/AmandaB/Documents/Arduino/hardware -tools /Applications/Arduino.app/Contents/Java/tools-builder -tools /Applications/Arduino.app/Contents/Java/hardware/tools/avr -tools /Users/AmandaB/Library/Arduino15/packages -built-in-libraries /Applications/Arduino.app/Contents/Java/libraries -libraries /Users/AmandaB/Documents/Arduino/libraries -fqbn=adafruit:avr:gemma -ide-version=10612 -build-path /var/folders/s_/tz09nms52dn4s7tsqq1r6dzw0000gp/T/arduino_build_609485 -warnings=none -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.avrdude.path=/Applications/Arduino.app/Contents/Java/hardware/tools/avr -prefs=runtime.tools.avr-gcc.path=/Applications/Arduino.app/Contents/Java/hardware/tools/avr -verbose /Users/AmandaB/Documents/Arduino/blink/blink.ino
/Applications/Arduino.app/Contents/Java/arduino-builder -compile -logger=machine -hardware /Applications/Arduino.app/Contents/Java/hardware -hardware /Users/AmandaB/Library/Arduino15/packages -hardware /Users/AmandaB/Documents/Arduino/hardware -tools /Applications/Arduino.app/Contents/Java/tools-builder -tools /Applications/Arduino.app/Contents/Java/hardware/tools/avr -tools /Users/AmandaB/Library/Arduino15/packages -built-in-libraries /Applications/Arduino.app/Contents/Java/libraries -libraries /Users/AmandaB/Documents/Arduino/libraries -fqbn=adafruit:avr:gemma -ide-version=10612 -build-path /var/folders/s_/tz09nms52dn4s7tsqq1r6dzw0000gp/T/arduino_build_609485 -warnings=none -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.avrdude.path=/Applications/Arduino.app/Contents/Java/hardware/tools/avr -prefs=runtime.tools.avr-gcc.path=/Applications/Arduino.app/Contents/Java/hardware/tools/avr -verbose /Users/AmandaB/Documents/Arduino/blink/blink.ino
Using board 'gemma' from platform in folder: /Users/AmandaB
/Library/Arduino15/packages/adafruit/hardware/avr/1.4.9
Using core 'arduino' from platform in folder: /Applications/Arduino.app/Contents/Java/hardware/arduino/avr
Detecting libraries used...
"/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics  -flto -w -x c++ -E -CC -mmcu=attiny85 -DF_CPU=8000000L -DARDUINO=10612 -DARDUINO_AVR_GEMMA -DARDUINO_ARCH_AVR   "-I/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino" "-I/Users/AmandaB/Library/Arduino15/packages/adafruit/hardware/avr/1.4.9/variants/tiny8" "/var/folders/s_/tz09nms52dn4s7tsqq1r6dzw0000gp/T/arduino_build_609485/sketch/blink.ino.cpp" -o "/dev/null"
Generating function prototypes...
"/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics  -flto -w -x c++ -E -CC -mmcu=attiny85 -DF_CPU=8000000L -DARDUINO=10612 -DARDUINO_AVR_GEMMA -DARDUINO_ARCH_AVR   "-I/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino" "-I/Users/AmandaB/Library/Arduino15/packages/adafruit/hardware/avr/1.4.9/variants/tiny8" "/var/folders/s_/tz09nms52dn4s7tsqq1r6dzw0000gp/T/arduino_build_609485/sketch/blink.ino.cpp" -o "/var/folders/s_/tz09nms52dn4s7tsqq1r6dzw0000gp/T/arduino_build_609485/preproc/ctags_target_for_gcc_minus_e.cpp"
"/Applications/Arduino.app/Contents/Java/tools-builder/ctags/5.8-arduino10/ctags" -u --language-force=c++ -f - --c++-kinds=svpf --fields=KSTtzns --line-directives "/var/folders/s_/tz09nms52dn4s7tsqq1r6dzw0000gp/T/arduino_build_609485/preproc/ctags_target_for_gcc_minus_e.cpp"
Compiling sketch...
"/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -flto -mmcu=attiny85 -DF_CPU=8000000L -DARDUINO=10612 -DARDUINO_AVR_GEMMA -DARDUINO_ARCH_AVR   "-I/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino" "-I/Users/AmandaB/Library/Arduino15/packages/adafruit/hardware/avr/1.4.9/variants/tiny8" "/var/folders/s_/tz09nms52dn4s7tsqq1r6dzw0000gp/T/arduino_build_609485/sketch/blink.ino.cpp" -o "/var/folders/s_/tz09nms52dn4s7tsqq1r6dzw0000gp/T/arduino_build_609485/sketch/blink.ino.cpp.o"
Compiling libraries...
Compiling core...
"/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avr-gcc" -c -g -x assembler-with-cpp -flto -mmcu=attiny85 -DF_CPU=8000000L -DARDUINO=10612 -DARDUINO_AVR_GEMMA -DARDUINO_ARCH_AVR   "-I/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino" "-I/Users/AmandaB/Library/Arduino15/packages/adafruit/hardware/avr/1.4.9/variants/tiny8" "/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino/wiring_pulse.S" -o "/var/folders/s_/tz09nms52dn4s7tsqq1r6dzw0000gp/T/arduino_build_609485/core/wiring_pulse.S.o"
Using previously compiled file: /var/folders/s_/tz09nms52dn4s7tsqq1r6dzw0000gp/T/arduino_build_609485/core/WInterrupts.c.o
Using previously compiled file: /var/folders/s_/tz09nms52dn4s7tsqq1r6dzw0000gp/T/arduino_build_609485/core/hooks.c.o
Using previously compiled file: /var/folders/s_/tz09nms52dn4s7tsqq1r6dzw0000gp/T/arduino_build_609485/core/wiring.c.o
Using previously compiled file: /var/folders/s_/tz09nms52dn4s7tsqq1r6dzw0000gp/T/arduino_build_609485/core/wiring_analog.c.o
Using previously compiled file: /var/folders/s_/tz09nms52dn4s7tsqq1r6dzw0000gp/T/arduino_build_609485/core/wiring_digital.c.o
Using previously compiled file: /var/folders/s_/tz09nms52dn4s7tsqq1r6dzw0000gp/T/arduino_build_609485/core/wiring_pulse.c.o
Using previously compiled file: /var/folders/s_/tz09nms52dn4s7tsqq1r6dzw0000gp/T/arduino_build_609485/core/wiring_shift.c.o
Using previously compiled file: /var/folders/s_/tz09nms52dn4s7tsqq1r6dzw0000gp/T/arduino_build_609485/core/CDC.cpp.o
Using previously compiled file: /var/folders/s_/tz09nms52dn4s7tsqq1r6dzw0000gp/T/arduino_build_609485/core/HardwareSerial.cpp.o
Using previously compiled file: /var/folders/s_/tz09nms52dn4s7tsqq1r6dzw0000gp/T/arduino_build_609485/core/HardwareSerial0.cpp.o
Using previously compiled file: /var/folders/s_/tz09nms52dn4s7tsqq1r6dzw0000gp/T/arduino_build_609485/core/HardwareSerial1.cpp.o
Using previously compiled file: /var/folders/s_/tz09nms52dn4s7tsqq1r6dzw0000gp/T/arduino_build_609485/core/HardwareSerial2.cpp.o
Using previously compiled file: /var/folders/s_/tz09nms52dn4s7tsqq1r6dzw0000gp/T/arduino_build_609485/core/HardwareSerial3.cpp.o
Using previously compiled file: /var/folders/s_/tz09nms52dn4s7tsqq1r6dzw0000gp/T/arduino_build_609485/core/IPAddress.cpp.o
Using previously compiled file: /var/folders/s_/tz09nms52dn4s7tsqq1r6dzw0000gp/T/arduino_build_609485/core/PluggableUSB.cpp.o
Using previously compiled file: /var/folders/s_/tz09nms52dn4s7tsqq1r6dzw0000gp/T/arduino_build_609485/core/Print.cpp.o
Using previously compiled file: /var/folders/s_/tz09nms52dn4s7tsqq1r6dzw0000gp/T/arduino_build_609485/core/Stream.cpp.o
Using previously compiled file: /var/folders/s_/tz09nms52dn4s7tsqq1r6dzw0000gp/T/arduino_build_609485/core/Tone.cpp.o
Using previously compiled file: /var/folders/s_/tz09nms52dn4s7tsqq1r6dzw0000gp/T/arduino_build_609485/core/USBCore.cpp.o
Using previously compiled file: /var/folders/s_/tz09nms52dn4s7tsqq1r6dzw0000gp/T/arduino_build_609485/core/WMath.cpp.o
Using previously compiled file: /var/folders/s_/tz09nms52dn4s7tsqq1r6dzw0000gp/T/arduino_build_609485/core/WString.cpp.o
Using previously compiled file: /var/folders/s_/tz09nms52dn4s7tsqq1r6dzw0000gp/T/arduino_build_609485/core/abi.cpp.o
Using previously compiled file: /var/folders/s_/tz09nms52dn4s7tsqq1r6dzw0000gp/T/arduino_build_609485/core/main.cpp.o
Using previously compiled file: /var/folders/s_/tz09nms52dn4s7tsqq1r6dzw0000gp/T/arduino_build_609485/core/new.cpp.o
"/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avr-gcc-ar" rcs  "/var/folders/s_/tz09nms52dn4s7tsqq1r6dzw0000gp/T/arduino_build_609485/core/core.a" "/var/folders/s_/tz09nms52dn4s7tsqq1r6dzw0000gp/T/arduino_build_609485/core/wiring_pulse.S.o"
"/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avr-gcc-ar" rcs  "/var/folders/s_/tz09nms52dn4s7tsqq1r6dzw0000gp/T/arduino_build_609485/core/core.a" "/var/folders/s_/tz09nms52dn4s7tsqq1r6dzw0000gp/T/arduino_build_609485/core/WInterrupts.c.o"
"/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avr-gcc-ar" rcs  "/var/folders/s_/tz09nms52dn4s7tsqq1r6dzw0000gp/T/arduino_build_609485/core/core.a" "/var/folders/s_/tz09nms52dn4s7tsqq1r6dzw0000gp/T/arduino_build_609485/core/hooks.c.o"
"/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avr-gcc-ar" rcs  "/var/folders/s_/tz09nms52dn4s7tsqq1r6dzw0000gp/T/arduino_build_609485/core/core.a" "/var/folders/s_/tz09nms52dn4s7tsqq1r6dzw0000gp/T/arduino_build_609485/core/wiring.c.o"
"/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avr-gcc-ar" rcs  "/var/folders/s_/tz09nms52dn4s7tsqq1r6dzw0000gp/T/arduino_build_609485/core/core.a" "/var/folders/s_/tz09nms52dn4s7tsqq1r6dzw0000gp/T/arduino_build_609485/core/wiring_analog.c.o"
"/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avr-gcc-ar" rcs  "/var/folders/s_/tz09nms52dn4s7tsqq1r6dzw0000gp/T/arduino_build_609485/core/core.a" "/var/folders/s_/tz09nms52dn4s7tsqq1r6dzw0000gp/T/arduino_build_609485/core/wiring_digital.c.o"
"/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avr-gcc-ar" rcs  "/var/folders/s_/tz09nms52dn4s7tsqq1r6dzw0000gp/T/arduino_build_609485/core/core.a" "/var/folders/s_/tz09nms52dn4s7tsqq1r6dzw0000gp/T/arduino_build_609485/core/wiring_pulse.c.o"
"/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avr-gcc-ar" rcs  "/var/folders/s_/tz09nms52dn4s7tsqq1r6dzw0000gp/T/arduino_build_609485/core/core.a" "/var/folders/s_/tz09nms52dn4s7tsqq1r6dzw0000gp/T/arduino_build_609485/core/wiring_shift.c.o"
"/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avr-gcc-ar" rcs  "/var/folders/s_/tz09nms52dn4s7tsqq1r6dzw0000gp/T/arduino_build_609485/core/core.a" "/var/folders/s_/tz09nms52dn4s7tsqq1r6dzw0000gp/T/arduino_build_609485/core/CDC.cpp.o"
"/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avr-gcc-ar" rcs  "/var/folders/s_/tz09nms52dn4s7tsqq1r6dzw0000gp/T/arduino_build_609485/core/core.a" "/var/folders/s_/tz09nms52dn4s7tsqq1r6dzw0000gp/T/arduino_build_609485/core/HardwareSerial.cpp.o"
"/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avr-gcc-ar" rcs  "/var/folders/s_/tz09nms52dn4s7tsqq1r6dzw0000gp/T/arduino_build_609485/core/core.a" "/var/folders/s_/tz09nms52dn4s7tsqq1r6dzw0000gp/T/arduino_build_609485/core/HardwareSerial0.cpp.o"
"/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avr-gcc-ar" rcs  "/var/folders/s_/tz09nms52dn4s7tsqq1r6dzw0000gp/T/arduino_build_609485/core/core.a" "/var/folders/s_/tz09nms52dn4s7tsqq1r6dzw0000gp/T/arduino_build_609485/core/HardwareSerial1.cpp.o"
"/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avr-gcc-ar" rcs  "/var/folders/s_/tz09nms52dn4s7tsqq1r6dzw0000gp/T/arduino_build_609485/core/core.a" "/var/folders/s_/tz09nms52dn4s7tsqq1r6dzw0000gp/T/arduino_build_609485/core/HardwareSerial2.cpp.o"
"/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avr-gcc-ar" rcs  "/var/folders/s_/tz09nms52dn4s7tsqq1r6dzw0000gp/T/arduino_build_609485/core/core.a" "/var/folders/s_/tz09nms52dn4s7tsqq1r6dzw0000gp/T/arduino_build_609485/core/HardwareSerial3.cpp.o"
"/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avr-gcc-ar" rcs  "/var/folders/s_/tz09nms52dn4s7tsqq1r6dzw0000gp/T/arduino_build_609485/core/core.a" "/var/folders/s_/tz09nms52dn4s7tsqq1r6dzw0000gp/T/arduino_build_609485/core/IPAddress.cpp.o"
"/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avr-gcc-ar" rcs  "/var/folders/s_/tz09nms52dn4s7tsqq1r6dzw0000gp/T/arduino_build_609485/core/core.a" "/var/folders/s_/tz09nms52dn4s7tsqq1r6dzw0000gp/T/arduino_build_609485/core/PluggableUSB.cpp.o"
"/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avr-gcc-ar" rcs  "/var/folders/s_/tz09nms52dn4s7tsqq1r6dzw0000gp/T/arduino_build_609485/core/core.a" "/var/folders/s_/tz09nms52dn4s7tsqq1r6dzw0000gp/T/arduino_build_609485/core/Print.cpp.o"
"/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avr-gcc-ar" rcs  "/var/folders/s_/tz09nms52dn4s7tsqq1r6dzw0000gp/T/arduino_build_609485/core/core.a" "/var/folders/s_/tz09nms52dn4s7tsqq1r6dzw0000gp/T/arduino_build_609485/core/Stream.cpp.o"
"/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avr-gcc-ar" rcs  "/var/folders/s_/tz09nms52dn4s7tsqq1r6dzw0000gp/T/arduino_build_609485/core/core.a" "/var/folders/s_/tz09nms52dn4s7tsqq1r6dzw0000gp/T/arduino_build_609485/core/Tone.cpp.o"
"/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avr-gcc-ar" rcs  "/var/folders/s_/tz09nms52dn4s7tsqq1r6dzw0000gp/T/arduino_build_609485/core/core.a" "/var/folders/s_/tz09nms52dn4s7tsqq1r6dzw0000gp/T/arduino_build_609485/core/USBCore.cpp.o"
"/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avr-gcc-ar" rcs  "/var/folders/s_/tz09nms52dn4s7tsqq1r6dzw0000gp/T/arduino_build_609485/core/core.a" "/var/folders/s_/tz09nms52dn4s7tsqq1r6dzw0000gp/T/arduino_build_609485/core/WMath.cpp.o"
"/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avr-gcc-ar" rcs  "/var/folders/s_/tz09nms52dn4s7tsqq1r6dzw0000gp/T/arduino_build_609485/core/core.a" "/var/folders/s_/tz09nms52dn4s7tsqq1r6dzw0000gp/T/arduino_build_609485/core/WString.cpp.o"
"/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avr-gcc-ar" rcs  "/var/folders/s_/tz09nms52dn4s7tsqq1r6dzw0000gp/T/arduino_build_609485/core/core.a" "/var/folders/s_/tz09nms52dn4s7tsqq1r6dzw0000gp/T/arduino_build_609485/core/abi.cpp.o"
"/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avr-gcc-ar" rcs  "/var/folders/s_/tz09nms52dn4s7tsqq1r6dzw0000gp/T/arduino_build_609485/core/core.a" "/var/folders/s_/tz09nms52dn4s7tsqq1r6dzw0000gp/T/arduino_build_609485/core/main.cpp.o"
"/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avr-gcc-ar" rcs  "/var/folders/s_/tz09nms52dn4s7tsqq1r6dzw0000gp/T/arduino_build_609485/core/core.a" "/var/folders/s_/tz09nms52dn4s7tsqq1r6dzw0000gp/T/arduino_build_609485/core/new.cpp.o"
Linking everything together...
"/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avr-gcc" -w -Os -flto -fuse-linker-plugin -Wl,--gc-sections -mmcu=attiny85  -o "/var/folders/s_/tz09nms52dn4s7tsqq1r6dzw0000gp/T/arduino_build_609485/blink.ino.elf" "/var/folders/s_/tz09nms52dn4s7tsqq1r6dzw0000gp/T/arduino_build_609485/sketch/blink.ino.cpp.o" "/var/folders/s_/tz09nms52dn4s7tsqq1r6dzw0000gp/T/arduino_build_609485/core/core.a" "-L/var/folders/s_/tz09nms52dn4s7tsqq1r6dzw0000gp/T/arduino_build_609485" -lm
/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/../lib/gcc/avr/4.9.2/../../../../avr/bin/ld: unrecognized option '-plugin'
/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/../lib/gcc/avr/4.9.2/../../../../avr/bin/ld: use the --help option for usage information
collect2: error: ld returned 1 exit status
exit status 1
Error compiling for board Adafruit Gemma 8MHz.

Thank you in advance for any help you can offer!

AmandaB
 
Posts: 3
Joined: Tue Oct 25, 2016 11:05 am

Re: Blink Tutorial for Arduino IDE - Compiling issue

by franklin97355 on Tue Oct 25, 2016 1:32 pm

Try using version 1.6.9 and see what you get. There have been some issues with Sierra. You might also ask in the Arduino forums as they wrote the compiler.

franklin97355
 
Posts: 20103
Joined: Mon Apr 21, 2008 2:33 pm
Location: Lacomb, OR.

Re: Blink Tutorial for Arduino IDE - Compiling issue

by AmandaB on Tue Oct 25, 2016 2:59 pm

Thank you, I'll try that!

AmandaB
 
Posts: 3
Joined: Tue Oct 25, 2016 11:05 am

Re: Blink Tutorial for Arduino IDE - Compiling issue

by AmandaB on Wed Oct 26, 2016 10:52 am

So that got me to a different error, it compiled correctly but couldn't find the serial port. That turned out to be a USB 3.0 issue, the MacBook pros have 2 USB 3 and no USB 2. Moving to an older machine resolved that issue.

Thanks for pointing me in the right direction!

AmandaB
 
Posts: 3
Joined: Tue Oct 25, 2016 11:05 am

Re: Blink Tutorial for Arduino IDE - Compiling issue

by franklin97355 on Wed Oct 26, 2016 12:22 pm

If you get an older USB hub you can plug into that and, in most cases it works.

franklin97355
 
Posts: 20103
Joined: Mon Apr 21, 2008 2:33 pm
Location: Lacomb, OR.

Please be positive and constructive with your questions and comments.