0

Unable to upload to Trinket 5V/8MHz
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Unable to upload to Trinket 5V/8MHz

by dtseymour on Thu Feb 07, 2019 6:23 pm

After successfully being able to upload to 5V Trinket(s) for months now, suddenly my Mac Pro (Mid 2010, OS 10.13.6) will no longer talk to any of my Trinkets over the same cable and USB port I've always used. I've tried USB hub, different USB cables, etc. The red LED blinks fast bright red instead of the usual dimmed blinking red for uploading, but only on my Mac Pro—works fine on the MacBook Air .) Arduino Uno communicates fine with my Mac. I can successfully upload sketches to the Trinket from my wife's Macbook Air, so the Trinkets are good. Any suggestions or tricks to getting this crucial step back into working order?

Error message: avrdude: error: usbtiny_receive: Device not configured (expected 4, got -6)

Verbose error message:

Arduino: 1.8.5 (Mac OS X), Board: "Adafruit Trinket (ATtiny85 @ 8MHz)"

/Applications/Arduino.app/Contents/Java/arduino-builder -dump-prefs -logger=machine -hardware /Applications/Arduino.app/Contents/Java/hardware -hardware /Users/Tim/Library/Arduino15/packages -tools /Applications/Arduino.app/Contents/Java/tools-builder -tools /Applications/Arduino.app/Contents/Java/hardware/tools/avr -tools /Users/Tim/Library/Arduino15/packages -built-in-libraries /Applications/Arduino.app/Contents/Java/libraries -libraries /Volumes/TSD 500B/ARCHIVES/Dropbox/ARDUINO/libraries -fqbn=adafruit:avr:trinket3 -ide-version=10805 -build-path /var/folders/y6/gb6yht1x4rxdc60qvdfssn180000gn/T/arduino_build_283696 -warnings=none -build-cache /var/folders/y6/gb6yht1x4rxdc60qvdfssn180000gn/T/arduino_cache_401948 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.avr-gcc.path=/Users/Tim/Library/Arduino15/packages/arduino/tools/avr-gcc/5.4.0-atmel3.6.1-arduino2 -prefs=runtime.tools.avrdude.path=/Users/Tim/Library/Arduino15/packages/arduino/tools/avrdude/6.3.0-arduino14 -prefs=runtime.tools.arduinoOTA.path=/Users/Tim/Library/Arduino15/packages/arduino/tools/arduinoOTA/1.2.1 -verbose /Volumes/TSD 500B/ARCHIVES/Dropbox/ARDUINO/SliderCode_190201_GoProRotarySwitchTRINKET/SliderCode_190201_GoProRotarySwitchTRINKET.ino
/Applications/Arduino.app/Contents/Java/arduino-builder -compile -logger=machine -hardware /Applications/Arduino.app/Contents/Java/hardware -hardware /Users/Tim/Library/Arduino15/packages -tools /Applications/Arduino.app/Contents/Java/tools-builder -tools /Applications/Arduino.app/Contents/Java/hardware/tools/avr -tools /Users/Tim/Library/Arduino15/packages -built-in-libraries /Applications/Arduino.app/Contents/Java/libraries -libraries /Volumes/TSD 500B/ARCHIVES/Dropbox/ARDUINO/libraries -fqbn=adafruit:avr:trinket3 -ide-version=10805 -build-path /var/folders/y6/gb6yht1x4rxdc60qvdfssn180000gn/T/arduino_build_283696 -warnings=none -build-cache /var/folders/y6/gb6yht1x4rxdc60qvdfssn180000gn/T/arduino_cache_401948 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.avr-gcc.path=/Users/Tim/Library/Arduino15/packages/arduino/tools/avr-gcc/5.4.0-atmel3.6.1-arduino2 -prefs=runtime.tools.avrdude.path=/Users/Tim/Library/Arduino15/packages/arduino/tools/avrdude/6.3.0-arduino14 -prefs=runtime.tools.arduinoOTA.path=/Users/Tim/Library/Arduino15/packages/arduino/tools/arduinoOTA/1.2.1 -verbose /Volumes/TSD 500B/ARCHIVES/Dropbox/ARDUINO/SliderCode_190201_GoProRotarySwitchTRINKET/SliderCode_190201_GoProRotarySwitchTRINKET.ino
Using board 'trinket3' from platform in folder: /Users/Tim/Library/Arduino15/packages/adafruit/hardware/avr/1.4.13
Using core 'arduino' from platform in folder: /Users/Tim/Library/Arduino15/packages/arduino/hardware/avr/1.6.23
Detecting libraries used...
"/Users/Tim/Library/Arduino15/packages/arduino/tools/avr-gcc/5.4.0-atmel3.6.1-arduino2/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=attiny85 -DF_CPU=8000000L -DARDUINO=10805 -DARDUINO_AVR_TRINKET3 -DARDUINO_ARCH_AVR "-I/Users/Tim/Library/Arduino15/packages/arduino/hardware/avr/1.6.23/cores/arduino" "-I/Users/Tim/Library/Arduino15/packages/adafruit/hardware/avr/1.4.13/variants/tiny8" "/var/folders/y6/gb6yht1x4rxdc60qvdfssn180000gn/T/arduino_build_283696/sketch/SliderCode_190201_GoProRotarySwitchTRINKET.ino.cpp" -o "/dev/null"
Generating function prototypes...
"/Users/Tim/Library/Arduino15/packages/arduino/tools/avr-gcc/5.4.0-atmel3.6.1-arduino2/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=attiny85 -DF_CPU=8000000L -DARDUINO=10805 -DARDUINO_AVR_TRINKET3 -DARDUINO_ARCH_AVR "-I/Users/Tim/Library/Arduino15/packages/arduino/hardware/avr/1.6.23/cores/arduino" "-I/Users/Tim/Library/Arduino15/packages/adafruit/hardware/avr/1.4.13/variants/tiny8" "/var/folders/y6/gb6yht1x4rxdc60qvdfssn180000gn/T/arduino_build_283696/sketch/SliderCode_190201_GoProRotarySwitchTRINKET.ino.cpp" -o "/var/folders/y6/gb6yht1x4rxdc60qvdfssn180000gn/T/arduino_build_283696/preproc/ctags_target_for_gcc_minus_e.cpp"
"/Applications/Arduino.app/Contents/Java/tools-builder/ctags/5.8-arduino11/ctags" -u --language-force=c++ -f - --c++-kinds=svpf --fields=KSTtzns --line-directives "/var/folders/y6/gb6yht1x4rxdc60qvdfssn180000gn/T/arduino_build_283696/preproc/ctags_target_for_gcc_minus_e.cpp"
Compiling sketch...
"/Users/Tim/Library/Arduino15/packages/arduino/tools/avr-gcc/5.4.0-atmel3.6.1-arduino2/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -MMD -flto -mmcu=attiny85 -DF_CPU=8000000L -DARDUINO=10805 -DARDUINO_AVR_TRINKET3 -DARDUINO_ARCH_AVR "-I/Users/Tim/Library/Arduino15/packages/arduino/hardware/avr/1.6.23/cores/arduino" "-I/Users/Tim/Library/Arduino15/packages/adafruit/hardware/avr/1.4.13/variants/tiny8" "/var/folders/y6/gb6yht1x4rxdc60qvdfssn180000gn/T/arduino_build_283696/sketch/SliderCode_190201_GoProRotarySwitchTRINKET.ino.cpp" -o "/var/folders/y6/gb6yht1x4rxdc60qvdfssn180000gn/T/arduino_build_283696/sketch/SliderCode_190201_GoProRotarySwitchTRINKET.ino.cpp.o"
Compiling libraries...
Compiling core...
Using precompiled core
Linking everything together...
"/Users/Tim/Library/Arduino15/packages/arduino/tools/avr-gcc/5.4.0-atmel3.6.1-arduino2/bin/avr-gcc" -w -Os -g -flto -fuse-linker-plugin -Wl,--gc-sections -mmcu=attiny85 -o "/var/folders/y6/gb6yht1x4rxdc60qvdfssn180000gn/T/arduino_build_283696/SliderCode_190201_GoProRotarySwitchTRINKET.ino.elf" "/var/folders/y6/gb6yht1x4rxdc60qvdfssn180000gn/T/arduino_build_283696/sketch/SliderCode_190201_GoProRotarySwitchTRINKET.ino.cpp.o" "/var/folders/y6/gb6yht1x4rxdc60qvdfssn180000gn/T/arduino_build_283696/../arduino_cache_401948/core/core_adafruit_avr_trinket3_ac8edf3154a2d42b0d4f3b6b21619119.a" "-L/var/folders/y6/gb6yht1x4rxdc60qvdfssn180000gn/T/arduino_build_283696" -lm
"/Users/Tim/Library/Arduino15/packages/arduino/tools/avr-gcc/5.4.0-atmel3.6.1-arduino2/bin/avr-objcopy" -O ihex -j .eeprom --set-section-flags=.eeprom=alloc,load --no-change-warnings --change-section-lma .eeprom=0 "/var/folders/y6/gb6yht1x4rxdc60qvdfssn180000gn/T/arduino_build_283696/SliderCode_190201_GoProRotarySwitchTRINKET.ino.elf" "/var/folders/y6/gb6yht1x4rxdc60qvdfssn180000gn/T/arduino_build_283696/SliderCode_190201_GoProRotarySwitchTRINKET.ino.eep"
"/Users/Tim/Library/Arduino15/packages/arduino/tools/avr-gcc/5.4.0-atmel3.6.1-arduino2/bin/avr-objcopy" -O ihex -R .eeprom "/var/folders/y6/gb6yht1x4rxdc60qvdfssn180000gn/T/arduino_build_283696/SliderCode_190201_GoProRotarySwitchTRINKET.ino.elf" "/var/folders/y6/gb6yht1x4rxdc60qvdfssn180000gn/T/arduino_build_283696/SliderCode_190201_GoProRotarySwitchTRINKET.ino.hex"
Sketch uses 1710 bytes (32%) of program storage space. Maximum is 5310 bytes.
Global variables use 55 bytes of dynamic memory.

avrdude: error: usbtiny_receive: Input/output error (expected 4, got -5)

avrdude: error: usbtiny_transmit: Input/output error

avrdude: error: usbtiny_send: Result too large (expected 64, got -34)

avrdude: error: usbtiny_receive: Device not configured (expected 4, got -6)

[THE ABOVE LINE REPEATED HUNDREDS (thousands??) OF TIMES]

avrdude: error: usbtiny_receive: Device not configured (expected 128, got -6)

avrdude: error: usbtiny_receive: Device not configured (expected 4, got -6)
avr_read(): error reading address 0x0000
read operation not supported for memory "flash"
avrdude: failed to read all of flash memory, rc=-2

avrdude: error: usbtiny_transmit: Device not configured
avrdude: error: usbtiny_transmit: Device not configured

dtseymour
 
Posts: 7
Joined: Fri Dec 29, 2017 6:16 pm

Re: Unable to upload to Trinket 5V/8MHz

by franklin97355 on Fri Feb 08, 2019 2:00 am

The only thing I can think of is a corrupt IDE install. You might try removing and reinstalling the latest IDE.

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

Re: Unable to upload to Trinket 5V/8MHz

by dtseymour on Sat Feb 09, 2019 5:43 pm

That didn't do the trick, but thanks for the suggestion. Quite frustrating, this...

dtseymour
 
Posts: 7
Joined: Fri Dec 29, 2017 6:16 pm

Please be positive and constructive with your questions and comments.