0

Unable to Upload Code to Adafruit Trinket 8/16Mz
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Unable to Upload Code to Adafruit Trinket 8/16Mz

by engerdan7 on Sat Aug 20, 2016 7:33 am

1) I am using a Adafruit Trinket (8Mz or 16MZ) from the Kaleidoscope Eyes (Trinket-Powered NeoPixel LED Ring Goggles) kit.
2) I am running 64 bit Windows 10 on PC.
3) I am using Arduino 1.6.11 to code the chip. The chip is the standard Adafruit Trinket.
4) This is my first time trying to upload successfully compiled code to the chip. Please see Dropbox link for pictures of error codes and chip.
Image

engerdan7
 
Posts: 8
Joined: Sat Aug 20, 2016 6:56 am

Re: Unable to Upload Code to Adafruit Trinket 8/16Mz

by engerdan7 on Sat Aug 20, 2016 7:33 am


engerdan7
 
Posts: 8
Joined: Sat Aug 20, 2016 6:56 am

Re: Unable to Upload Code to Adafruit Trinket 8/16Mz

by engerdan7 on Sat Aug 20, 2016 7:39 am

I also forgot to mention that I am not able to select Tools>Port>. I believe there is an issue with the software recognizing that the device is plugged in.

engerdan7
 
Posts: 8
Joined: Sat Aug 20, 2016 6:56 am

Re: Unable to Upload Code to Adafruit Trinket 8/16Mz

by franklin97355 on Sat Aug 20, 2016 1:50 pm

Make sure you pushed the reset button and the LED is flashing when the IDE is trying to upload. Depending on the compile time the bootloader will time out before the IDE is done. If that does not work try downloading 1.6.9 as it is the last known stable version.

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

Re: Unable to Upload Code to Adafruit Trinket 8/16Mz

by engerdan7 on Sat Aug 20, 2016 3:15 pm

The issue I am having is that the Arduino software is not recognizing that the USBtinyISP is plugged in and listed under device manager as libusb-win32 devices>USBtiny.
Last edited by engerdan7 on Sat Aug 20, 2016 3:17 pm, edited 1 time in total.

engerdan7
 
Posts: 8
Joined: Sat Aug 20, 2016 6:56 am

Re: Unable to Upload Code to Adafruit Trinket 8/16Mz

by engerdan7 on Sat Aug 20, 2016 3:16 pm

I have also been sure to press the reset button on the board each time, but without the Arduino software recognizing the connection, it cannot upload the source code.

engerdan7
 
Posts: 8
Joined: Sat Aug 20, 2016 6:56 am

Re: Unable to Upload Code to Adafruit Trinket 8/16Mz

by franklin97355 on Sat Aug 20, 2016 3:56 pm

In the programmer do you have the USBtinyISP selected? That and having the Trinket selected and in bootloader mode should be all you need.

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

Re: Unable to Upload Code to Adafruit Trinket 8/16Mz

by engerdan7 on Sat Aug 20, 2016 4:58 pm

Yes I have the USBtinyISP and the Trinket 8MHz selected under tools. Is there any particular way to put the trinket in "boot loader mode"? And I'm still not sure if you are grasping what my issue is. The USBtiny is connected to the PC but I cannot select Tools>Port>.

engerdan7
 
Posts: 8
Joined: Sat Aug 20, 2016 6:56 am

Re: Unable to Upload Code to Adafruit Trinket 8/16Mz

by franklin97355 on Sat Aug 20, 2016 5:18 pm

but I cannot select Tools>Port>.
You don't select a port for the Trinket just the programmer. To put the Trinket into bootloader mode you press the reset button and the LED should flash for 10 seconds while it is in bootloader then revert to run mode.

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

Re: Unable to Upload Code to Adafruit Trinket 8/16Mz

by engerdan7 on Sat Aug 20, 2016 5:35 pm

Well idk what to tell you. I've tried multiple times with multiple USB cables, multiple USB ports, and I've even uninstalled and reinstalled the Arduino software as well as the Trinket drivers.

engerdan7
 
Posts: 8
Joined: Sat Aug 20, 2016 6:56 am

Re: Unable to Upload Code to Adafruit Trinket 8/16Mz

by franklin97355 on Sat Aug 20, 2016 6:02 pm

OK. Please contact support@adafruit.com with a link to this thread and they will help you get a new Trinket.

(#1501)

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

Re: Unable to Upload Code to Adafruit Trinket 8/16Mz

by engerdan7 on Thu Aug 25, 2016 8:30 pm

One last question. Should the power (V+) for the NeoPixel ring be plugged into the BAT+ on the Trinket or the 5V out? Your tutorial PDF (https://cdn-learn.adafruit.com/download ... -gemma.pdf) shows it connected to the BAT+, but isn't that a power INPUT to the Trinket?? I think I may have the circuit wired incorrectly and that the NeoPixcel ring should be soldered to the 5V out on the Trinket. Since that is the output power regulated by the Trinket. Thoughts??

engerdan7
 
Posts: 8
Joined: Sat Aug 20, 2016 6:56 am

Re: Unable to Upload Code to Adafruit Trinket 8/16Mz

by GreatLeader_Technus on Tue Jan 03, 2017 10:22 pm

Hi, I'm having a problem uploading as well. The error I get is this:
Arduino: 1.6.9 (Windows 7), Board: "Adafruit Trinket 16MHz"

C:\Program Files (x86)\Arduino\arduino-builder -dump-prefs -logger=machine -hardware "C:\Program Files (x86)\Arduino\hardware" -hardware "C:\Users\Zero\AppData\Local\Arduino15\packages" -tools "C:\Program Files (x86)\Arduino\tools-builder" -tools "C:\Program Files (x86)\Arduino\hardware\tools\avr" -tools "C:\Users\Zero\AppData\Local\Arduino15\packages" -built-in-libraries "C:\Program Files (x86)\Arduino\libraries" -libraries "I:\GMT555 Backup\Programming and Design\Arduino\libraries" -fqbn=adafruit:avr:trinket5 -ide-version=10609 -build-path "C:\Users\Zero\AppData\Local\Temp\build630cfb55734b49b45981910b757f4c00.tmp" -warnings=all -prefs=build.warn_data_percentage=75 -verbose "I:\GMT555 Backup\Programming and Design\Arduino\Trinket_Blink_\Trinket_Blink_.ino"

Board trinket5 (platform avr, package adafruit) is unknown

Error compiling for board Adafruit Trinket 16MHz.


I downgraded from Arduino 1.8.0 to 1.6.9

GreatLeader_Technus
 
Posts: 16
Joined: Fri Apr 01, 2016 4:54 pm

Re: Unable to Upload Code to Adafruit Trinket 8/16Mz

by franklin97355 on Tue Jan 03, 2017 10:34 pm

Close the IDE, remove the folder C:\Users\<username>\AppData\Local\Arduino15 and restart Arduino to see if that helps.

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

Re: Unable to Upload Code to Adafruit Trinket 8/16Mz

by GreatLeader_Technus on Tue Jan 03, 2017 10:46 pm

franklin97355 wrote:Close the IDE, remove the folder C:\Users\<username>\AppData\Local\Arduino15 and restart Arduino to see if that helps.


I allowed me to remove the Adafruit boards section of the Boards List in Tools and freshly install 1.4.3 for the Adafruit AVR Boards, now it works! Thanks! ^ ^

GreatLeader_Technus
 
Posts: 16
Joined: Fri Apr 01, 2016 4:54 pm

Please be positive and constructive with your questions and comments.