Trinket Upload Error

For other supported Arduino products from Adafruit: Shields, accessories, etc.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
User avatar
ibucky
 
Posts: 112
Joined: Wed Jan 11, 2012 10:40 pm

Trinket Upload Error

Post by ibucky »

I'm getting the dreaded avrdude error (multiple ones)
"avrdude: error: usbtiny_receive: usb_control_msg: sending control message failed, win error: The device does not recognize the command.
(expected 4, got -5)"

I'm using the Windows Arduino IDE v1.05 w/Trinket, Gemma, Flora

I've Updated my Trinket Driver (Win XP/7/8) from https://learn.adafruit.com/usbtinyisp/drivers

Following the steps on https://learn.adafruit.com/introducing- ... rduino-ide
I've reloaded the avrdude.conf and id.exe

When I attempt to upload the Blink! example I get the error posted above. Note: I see the green LED lit and the red LED pusling.

Yet, I get a lot of red text, errors and also a warning about Verification Failed

I will note that in the Driver directions it notes a Device Manager image showing 'USBtinyISP AVR Programmer" My Device Manager shows "USBtiny" not sure if that is an issue.

Thank you for any advice


User avatar
ibucky
 
Posts: 112
Joined: Wed Jan 11, 2012 10:40 pm

Re: Trinket Upload Error

Post by ibucky »

Thank you the following fixed my problem

"One fix that works for some people is to edit avrdude.conf and set the
chip_erase_delay = 900000;
under the ATtiny85 heading to
chip_erase_delay = 400000;"

User avatar
adafruit_support_rick
 
Posts: 35092
Joined: Tue Mar 15, 2011 11:42 am

Re: Trinket Upload Error

Post by adafruit_support_rick »

Excellent!

User avatar
Rosemarije
 
Posts: 27
Joined: Wed Feb 18, 2015 5:51 am

Re: Trinket Upload Error

Post by Rosemarije »

I have the same problem get "avrdude: Error: Could not find USBtiny device (0x1781/0xc9f)" as error report
When I replace the avrdude.conf as stated in your manual my arduino IDE stops working for my uno and is still not working for my trinket.
I have windows 8.1
Hope you can help me fix this!

User avatar
adafruit_support_rick
 
Posts: 35092
Joined: Tue Mar 15, 2011 11:42 am

Re: Trinket Upload Error

Post by adafruit_support_rick »

Are you pressing the reset button to start the bootloader before you try to upload? The red LED will pulse while the bootloader is running. You can only upload while the bootloader is running. Otherwise, you'll get that error.

User avatar
Rosemarije
 
Posts: 27
Joined: Wed Feb 18, 2015 5:51 am

Re: Trinket Upload Error

Post by Rosemarije »

Yes the red led is blinking but it gives me this error over and over again

User avatar
adafruit_support_rick
 
Posts: 35092
Joined: Tue Mar 15, 2011 11:42 am

Re: Trinket Upload Error

Post by adafruit_support_rick »

Your bootloader may be corrupted. Do you have a Uno? If so, you can repair the bootloader by following this procedure:
https://learn.adafruit.com/introducing- ... bootloader

If you don't have a Uno, Please email [email protected] with a link to this thread for a replacement Trinket

User avatar
Rosemarije
 
Posts: 27
Joined: Wed Feb 18, 2015 5:51 am

Re: Trinket Upload Error

Post by Rosemarije »

I'm quite new to this all so I decided to call my supplier, he will replace my trinket, thanks for the help.

User avatar
Rosemarije
 
Posts: 27
Joined: Wed Feb 18, 2015 5:51 am

Re: Trinket Upload Error

Post by Rosemarije »

O NO!
So I received a new trinket, it gives exactly the same problem. Is there something wrong with the trinkets I get or is there another explanation???
Maybe an issue with my windows 8.1 machine?
Or is it just me?
HELP ME!!!

User avatar
adafruit_support_rick
 
Posts: 35092
Joined: Tue Mar 15, 2011 11:42 am

Re: Trinket Upload Error

Post by adafruit_support_rick »

What do you see in Device manager? Does the trinket appear? If you've installed the driver properly, it should appear under
LibUSB-Win32 Devices

User avatar
Rosemarije
 
Posts: 27
Joined: Wed Feb 18, 2015 5:51 am

Re: Trinket Upload Error

Post by Rosemarije »

Ah that seems to be the problem!
It is visible, but no drivers installed.
I have downloaded the driver and opend it, saw for a second some codelines, then nothing?!?!
but still it says no drivers installed.

User avatar
adafruit_support_rick
 
Posts: 35092
Joined: Tue Mar 15, 2011 11:42 am

Re: Trinket Upload Error

Post by adafruit_support_rick »

OK, so in Device Manager, right-click on the Trinket and select "Update Driver Software... from the popup. That will get you into the wizard.
Don't let it search for driver software - tell it that you will browse your computer for the driver. Then browse to the usbtiny_signed_8\x86 folder that contains the driver.

Make sure you unzip the driver download before you do this.

User avatar
Rosemarije
 
Posts: 27
Joined: Wed Feb 18, 2015 5:51 am

Re: Trinket Upload Error

Post by Rosemarije »

Gosh I feel like an idiot!
I have the drivers downloaded, I selected it for manual setup, still my computer doesn't get it!
It says: "can't find the right driver in this directory"
I don't get it

User avatar
adafruit_support_bill
 
Posts: 88141
Joined: Sat Feb 07, 2009 10:11 am

Re: Trinket Upload Error

Post by adafruit_support_bill »

Make sure that the driver folder that you downloaded is un-zipped.
What is the name of the device that appears in Device Manager when you plug it in?

Locked
Please be positive and constructive with your questions and comments.

Return to “Other Arduino products from Adafruit”