🔮Adafruit sale all weekend long – use the code ADATHX for 15% off! 🔮
0

gemma v1 and 2 avrdude errorusbtiny_receive: (expected 4, g
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

gemma v1 and 2 avrdude errorusbtiny_receive: (expected 4, g

by asparagus on Sat Oct 22, 2016 10:06 am

Hi, I received a gemma v1 and v2 - initially had issues which i believe where related to usb3 on a windows laptop so via a usb2 Hub I can get the gemma v2 to enter boot mode - the v1 just blicks 1 second and goes off.

I have had it replaced by the retailer but same issues with the v1 so its not a corrupted boot loader so i will try a better quality usb cable when I get a chance...

Anyway the v2 which is entering bootmode gets this output each time:

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

Any ideas?

I also have a trinket pro and I am sending sketches to that fine.

For reference this is the simple neopixel demo I am trying to send

Thanks for any support or advice

asparagus
 
Posts: 6
Joined: Thu Sep 01, 2016 2:58 pm

Re: gemma v1 and 2 avrdude errorusbtiny_receive: (expected

by adafruit_support_rick on Sun Oct 23, 2016 2:58 pm

Please post the entire output from the upload

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

Re: gemma v1 and 2 avrdude errorusbtiny_receive: (expected

by asparagus on Mon Oct 24, 2016 2:18 am

The only output I am seeing is:

Sketch uses 3,334 bytes (62%) of program storage space. Maximum is 5,310 bytes.
Global variables use 53 bytes of dynamic memory.

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

Gemma v2 8mhz
USBTinyISP
Windows 10

asparagus
 
Posts: 6
Joined: Thu Sep 01, 2016 2:58 pm

Re: gemma v1 and 2 avrdude errorusbtiny_receive: (expected

by adafruit_support_rick on Mon Oct 24, 2016 9:01 am

Go into Preferences in the Arduino IDE and check the box for verbose on upload. You'll get more-detailed information in the trace.

Does the sketch work after the upload completes? As I recall, this error simply indicates a retry, and you can ignore it.

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

Please be positive and constructive with your questions and comments.