verification error, first mismatch at byte 0x0000

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
elemeno
 
Posts: 2
Joined: Fri Feb 29, 2008 12:42 am

verification error, first mismatch at byte 0x0000

Post by elemeno »

Hi, I'm a total newbie to the AVR world. I got my USBTiny kit and target board built. Avrdude (under mac os 10.5.2) is able to interface with the chip (2313) but when I try to load a hex file it errors out during verification.

It gets to a point where it asks if I want to reset a fuse. If I say yes the red light on the USBTiny stays lit indefinitely. I tried erasing it which worked but I get the same error when I try to load a hex file.

Advice?

Thanks!


mini:AVR Arion$ avrdude -p attiny2313 -c usbtiny -E reset -U flash:w:LED_demo.hex
avrdude: WARNING: -E option not supported by this programmer type

avrdude: AVR device initialized and ready to accept instructions

Reading | ################################################## | 100% 0.01s

avrdude: Device signature = 0x1e910a
avrdude: NOTE: FLASH memory has been specified, an erase cycle will be performed
To disable this feature, specify the -D option.
avrdude: current erase-rewrite cycle count is 2088599167 (if being tracked)
avrdude: erasing chip
avrdude: reading input file "LED_demo.hex"
avrdude: input file LED_demo.hex auto detected as Intel Hex
avrdude: writing flash (122 bytes):

Writing | ################################################## | 100% 0.11s



avrdude: 122 bytes of flash written
avrdude: verifying flash memory against LED_demo.hex:
avrdude: load data flash data from input file LED_demo.hex:
avrdude: input file LED_demo.hex auto detected as Intel Hex
avrdude: input file LED_demo.hex contains 122 bytes
avrdude: reading on-chip flash data:

Reading | ################################################## | 100% 0.06s



avrdude: verifying ...
avrdude: verification error, first mismatch at byte 0x0000
0x12 != 0x00
avrdude: verification error; content mismatch

avrdude: safemode: lfuse changed! Was 64, and is now 0
Would you like this fuse to be changed back? [y/n]

adafruit
 
Posts: 12151
Joined: Thu Apr 06, 2006 4:21 pm

Post by adafruit »

what happens if you try
"avrdude -p attiny2313 -c usbtiny -B 10 -U flash:w:LED_demo.hex "

elemeno
 
Posts: 2
Joined: Fri Feb 29, 2008 12:42 am

Post by elemeno »

I tried this but got the same result. It asks if I want to change the fuse back. If I say yes it just sits there and the programmers light stays red.


mini:AVR Arion$ avrdude -p attiny2313 -c usbtiny -B 10 -U flash:w:LED_demo.hex

avrdude: Setting SCK period to 10 usec
avrdude: AVR device initialized and ready to accept instructions

Reading | ################################################## | 100% 0.01s

avrdude: Device signature = 0x1e910a
avrdude: NOTE: FLASH memory has been specified, an erase cycle will be performed
To disable this feature, specify the -D option.
avrdude: erasing chip
avrdude: Setting SCK period to 10 usec
avrdude: reading input file "LED_demo.hex"
avrdude: input file LED_demo.hex auto detected as Intel Hex
avrdude: writing flash (122 bytes):

Writing | ################################################## | 100% 0.11s



avrdude: 122 bytes of flash written
avrdude: verifying flash memory against LED_demo.hex:
avrdude: load data flash data from input file LED_demo.hex:
avrdude: input file LED_demo.hex auto detected as Intel Hex
avrdude: input file LED_demo.hex contains 122 bytes
avrdude: reading on-chip flash data:

Reading | ################################################## | 100% 0.06s



avrdude: verifying ...
avrdude: verification error, first mismatch at byte 0x0000
0x12 != 0x00
avrdude: verification error; content mismatch

avrdude: safemode: hfuse changed! Was df, and is now 1
Would you like this fuse to be changed back? [y/n]

adafruit
 
Posts: 12151
Joined: Thu Apr 06, 2006 4:21 pm

Post by adafruit »

you've tried more than one chip right?

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

Return to “USBtinyISP”