0

trinket 5v avrdude error usbtiny_received (expected 4, got -
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

trinket 5v avrdude error usbtiny_received (expected 4, got -

by hyp3rMC on Fri Aug 11, 2017 8:17 am

Hi there,
I need some help in uploading code to the trinket 5v. I have tried it with arduino IDE but it keeps giving me this message.
arduino_ide_response.jpg
arduino_ide_response.jpg (170.34 KiB) Viewed 151 times


I check with avrdude and it reads the trinket ok from what I can tell...
avrdude_response.jpg
avrdude_response.jpg (63.49 KiB) Viewed 151 times


I can't seem to upload anything on the trinket 5v weather I run on 8 or 16MHz. I have followed through with the learning guide as well as updated avrdude.conf from the guide. trinket green light is on and stable. I press reset as before uploading and the red light blinks as the guide indicates. Here are the settings on my tools in arduino IDE;
board_info.jpg
board_info.jpg (47.01 KiB) Viewed 143 times

I'm at my wits end so if you can please shed a light on this, I would really appreciate it.

Thank you!

hyp3rMC
 
Posts: 28
Joined: Wed Mar 15, 2017 6:51 pm

Re: trinket 5v avrdude error usbtiny_received (expected 4, g

by hyp3rMC on Fri Aug 11, 2017 8:44 am

I just want to give an update...
uploading a sample hex file from the guide was successful via avrdude. I was able to upload the blink sketch via avrdude with this command: avrdude -c usbtiny -p attiny85 -D -U flash:w:trinketblink.hex
avrdude_blink.jpg
avrdude_blink.jpg (108.88 KiB) Viewed 141 times


Arduino IDE is still no go...
Last edited by hyp3rMC on Fri Aug 11, 2017 8:46 am, edited 1 time in total.

hyp3rMC
 
Posts: 28
Joined: Wed Mar 15, 2017 6:51 pm

Re: trinket 5v avrdude error usbtiny_received (expected 4, g

by adafruit_support_rick on Fri Aug 11, 2017 8:45 am

That error code simply indicates a retry. Does the sketch work after the upload completes?

adafruit_support_rick
 
Posts: 34768
Joined: Tue Mar 15, 2011 11:42 am
Location: Buffalo, NY

Re: trinket 5v avrdude error usbtiny_received (expected 4, g

by hyp3rMC on Fri Aug 11, 2017 10:28 am

Thank you for the quick reply. No the sketch doesn't work at all.

hyp3rMC
 
Posts: 28
Joined: Wed Mar 15, 2017 6:51 pm

Re: trinket 5v avrdude error usbtiny_received (expected 4, g

by adafruit_support_rick on Fri Aug 11, 2017 12:24 pm

Go into Arduino Preferences and check off the box for verbose on upload.

Post the entire upload trace here

adafruit_support_rick
 
Posts: 34768
Joined: Tue Mar 15, 2011 11:42 am
Location: Buffalo, NY

Re: trinket 5v avrdude error usbtiny_received (expected 4, g

by hyp3rMC on Fri Aug 11, 2017 12:34 pm

Thank you very much Rick. I will do that tonight once I get home. I will continue to try the upload and will post the output here later. I appreciate it.

hyp3rMC
 
Posts: 28
Joined: Wed Mar 15, 2017 6:51 pm

Please be positive and constructive with your questions and comments.