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

USB AVR Programmer and SPI interface. Adafruit's USBtinyISP.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
asparagus
 
Posts: 6
Joined: Thu Sep 01, 2016 2:58 pm

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

Post by asparagus »

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

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

Re: gemma v1 and 2 avrdude errorusbtiny_receive: (expected

Post by adafruit_support_rick »

Please post the entire output from the upload

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

Re: gemma v1 and 2 avrdude errorusbtiny_receive: (expected

Post by asparagus »

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

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

Re: gemma v1 and 2 avrdude errorusbtiny_receive: (expected

Post by adafruit_support_rick »

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.

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

Return to “USBtinyISP”