Due to high demand expect some shipping delays at this time, orders may not ship for 3-4 business days. On MLK Day no orders will be shipped.
0

Errors with Arduino IDE and Gemma
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Re: Errors with Arduino IDE and Gemma

by wingchoi on Sat Apr 12, 2014 11:47 pm

I also just got a new GEMMA, d/l the new Arduino IDE for adafruit... wrote the quick ledblink sketch. When I upload I get this error.

avrdude: error: usbtiny_receive: usb_control_msg: sending control message failed, win error: A device attached to the system is not functioning.

(expected 4, got -5)


when I turn on verbose. I am using v5.11 for avrdude. The led appears to be blinking at the correct rate, but I am not sure why the error.


Binary sketch size: 832 bytes (of a 5,310 byte maximum)
C:\Program Files (x86)\Arduino\hardware/tools/avr/bin/avrdude -CC:\Program Files (x86)\Arduino\hardware/tools/avr/etc/avrdude.conf -v -v -v -v -pattiny85 -cusbtiny -Uflash:w:C:\Users\john\AppData\Local\Temp\build8101144274360863681.tmp\GemmaBlink.cpp.hex:i

avrdude: Version 5.11, compiled on Sep 2 2011 at 19:38:36
Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
Copyright (c) 2007-2009 Joerg Wunsch

System wide configuration file is "C:\Program Files (x86)\Arduino\hardware/tools/avr/etc/avrdude.conf"

Using Port : lpt1
Using Programmer : usbtiny
avrdude: usbdev_open(): Found USBtinyISP, bus:device: bus-0:\\.\libusb0-0001--0x1781-0x0c9f
AVR Part : ATtiny85
Chip Erase delay : 400000 us
PAGEL : P00
BS2 : P00
RESET disposition : possible i/o
RETRY pulse : SCK
serial program mode : yes
parallel program mode : yes
Timeout : 200
StabDelay : 100
CmdexeDelay : 25
SyncLoops : 32
ByteDelay : 0
PollIndex : 3
PollValue : 0x53
Memory Detail :

Block Poll Page Polled
Memory Type Mode Delay Size Indx Paged Size Size #Pages MinW MaxW ReadBack
----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
eeprom 65 12 4 0 no 512 4 0 4000 4500 0xff 0xff
Block Poll Page Polled
Memory Type Mode Delay Size Indx Paged Size Size #Pages MinW MaxW ReadBack
----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
flash 65 6 32 0 yes 8192 64 128 30000 30000 0xff 0xff
Block Poll Page Polled
Memory Type Mode Delay Size Indx Paged Size Size #Pages MinW MaxW ReadBack
----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
signature 0 0 0 0 no 3 0 0 0 0 0x00 0x00
Block Poll Page Polled
Memory Type Mode Delay Size Indx Paged Size Size #Pages MinW MaxW ReadBack
----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
lock 0 0 0 0 no 1 0 0 9000 9000 0x00 0x00
Block Poll Page Polled
Memory Type Mode Delay Size Indx Paged Size Size #Pages MinW MaxW ReadBack
----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
lfuse 0 0 0 0 no 1 0 0 9000 9000 0x00 0x00
Block Poll Page Polled
Memory Type Mode Delay Size Indx Paged Size Size #Pages MinW MaxW ReadBack
----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
hfuse 0 0 0 0 no 1 0 0 9000 9000 0x00 0x00
Block Poll Page Polled
Memory Type Mode Delay Size Indx Paged Size Size #Pages MinW MaxW ReadBack
----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
efuse 0 0 0 0 no 1 0 0 9000 9000 0x00 0x00
Block Poll Page Polled
Memory Type Mode Delay Size Indx Paged Size Size #Pages MinW MaxW ReadBack
----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
calibration 0 0 0 0 no 2 0 0 0 0 0x00 0x00

Programmer Type : USBtiny
Description : USBtiny simple USB programmer, http://www.ladyada.net/make/usbtinyisp/
avrdude: programmer operation not supported

avrdude: Using SCK period of 10 usec
CMD: [ac 53 00 00] [00 00 53 00]
avrdude: AVR device initialized and ready to accept instructions

Reading | CMD: [30 00 00 00] [00 00 00 1e]
CMD: [30 00 01 00] [00 00 00 93]
################CMD: [30 00 02 00] [00 00 00 0b]
################################## | 100% 0.01s

avrdude: Device signature = 0x1e930b
avrdude: NOTE: FLASH memory has been specified, an erase cycle will be performed
To disable this feature, specify the -D option.
CMD: [a0 01 fc 00] [00 00 01 00]
CMD: [a0 01 fd 00] [00 00 01 00]
CMD: [a0 01 fe 00] [00 00 01 00]
CMD: [a0 01 ff 00] [00 00 01 00]
avrdude: erasing chip

avrdude: error: usbtiny_receive: usb_control_msg: sending control message failed, win error: A device attached to the system is not functioning.

(expected 4, got -5)
avrdude: Using SCK period of 10 usec
avrdude: 10 retries during SPI command
CMD: [ac 53 00 00] [00 00 53 00]
avrdude: reading input file "C:\Users\john\AppData\Local\Temp\build8101144274360863681.tmp\GemmaBlink.cpp.hex"
avrdude: writing flash (832 bytes):

Writing | CMD: [4c 00 00 00] [00 00 00 00]
###CMD: [4c 00 20 00] [00 00 00 00]
####CMD: [4c 00 40 00] [00 00 00 00]
####CMD: [4c 00 60 00] [00 00 00 00]
####CMD: [4c 00 80 00] [00 00 00 00]
####CMD: [4c 00 a0 00] [00 00 00 00]
####CMD: [4c 00 c0 00] [00 00 00 00]
###CMD: [4c 00 e0 00] [00 00 00 00]
####CMD: [4c 01 00 00] [00 00 01 00]
####CMD: [4c 01 20 00] [00 00 01 00]
####CMD: [4c 01 40 00] [00 00 01 00]
####CMD: [4c 01 60 00] [00 00 01 00]
####CMD: [4c 01 80 00] [00 00 01 00]
#### | 100% 0.62s

avrdude: 832 bytes of flash written
avrdude: verifying flash memory against C:\Users\john\AppData\Local\Temp\build8101144274360863681.tmp\GemmaBlink.cpp.hex:
avrdude: load data flash data from input file C:\Users\john\AppData\Local\Temp\build8101144274360863681.tmp\GemmaBlink.cpp.hex:
avrdude: input file C:\Users\john\AppData\Local\Temp\build8101144274360863681.tmp\GemmaBlink.cpp.hex contains 832 bytes
avrdude: reading on-chip flash data:

Reading | ################################################## | 100% 0.13s

avrdude: verifying ...
avrdude: 832 bytes of flash verified

avrdude done. Thank you.

wingchoi
 
Posts: 3
Joined: Sat Apr 12, 2014 11:44 pm

Re: Errors with Arduino IDE and Gemma

by adafruit_support_rick on Sun Apr 13, 2014 4:12 am

Some people seem to get that error, even though everything works, If your upload appears to be working, the error is safe to ignore.

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.