Pages: [1]   Go Down
Author Topic: Toasted???  (Read 652 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 36
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I have two Arduino Uno boards that I've been playing with a virtual wire transmitter and receiver. the transmitter uses the TX pin and receiver uses RX, so I've needed to disconnect them to upload the sketches. I recently forgot to disconnect the receiver and the upload failed as expected, but no I can't load anything on the board. I get the error:

avrdude: verification error, first mismatch at byte 0x0000
         0x0c != 0x62
avrdude: verification error; content mismatch

I've tried both boards with the same setup, proper board selected, proper USB connection, the lights light, it blinks away, and one works, the other gives the error message.

I thought perhaps I'd corrupted the bootloader, so I tried rewriting it, but I get  avrdude: usbdev_open(): did not find any USB device "usb"

Is there some kind of protective device that needs to be reset? Or is this puppy toast.


Oh, and I ran the loopback test--worked fine.
« Last Edit: February 15, 2013, 02:00:01 am by ponobill » Logged

Offline Offline
Edison Member
*
Karma: 9
Posts: 1016
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

To rewrite the bootloader you need a programmer, and use a cable to the ICSP header.
I use the USBasp programmer with an adapter from a 10-pin to a 6-pin header.
If avrdude can't open the device, it can't see the programmer, you have to fix that first.
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 36
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Ah, I see, I did some more reading, I can see this is going to be a long trip. Is there a specific USBasp programmer you recommend--there seems to be a lot of them at radically different prices.

I also used Nick Gammons chip fuse detector to look at my unresponsive arduino uno. I think what I got means my bootloader is AWOL. This is what I got:

Atmega chip detector.
Entered programming mode OK.
Signature = 1E 95 0F
Processor = ATmega328P
Flash memory size = 32768
LFuse = FF
HFuse = D6
EFuse = FD
Lock byte = C0
Clock calibration = 98
Bootloader in use: Yes
EEPROM preserved through erase: Yes
Watchdog timer always on: No
Bootloader is 512 bytes starting at 7E00

Bootloader:

7E00: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
7E10: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
7E20: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
7E30: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
7E40: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
7E50: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
7E60: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
7E70: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
7E80: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
7E90: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
7EA0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
7EB0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
7EC0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
7ED0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
7EE0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
7EF0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
7F00: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
7F10: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
7F20: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
7F30: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
7F40: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
7F50: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
7F60: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
7F70: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
7F80: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
7F90: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
7FA0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
7FB0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
7FC0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
7FD0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
7FE0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
7FF0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF

MD5 sum of bootloader = DE 03 FE 65 A6 76 5C AA 8C 91 34 3A CC 62 CF FC

First 256 bytes of program memory:

0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
10: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
20: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
30: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
40: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
50: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
60: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
70: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
80: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
90: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
A0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
B0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
C0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
D0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
E0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
F0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF

Logged

Offline Offline
Edison Member
*
Karma: 9
Posts: 1016
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I bought the cheapest USBasp programmer on Ebay.
Well, actually I have two of those cheapest, since one of them has timing problems on the USB to my computer.

If you mention something, like the fuse detector, please add a link to it (just copy the url in the text).
If you use another Arduino board to test that, you can use the other Arduino also as a programmer.

Reading 0xFF could be that the value is 0xFF or it could be that nothing could be read.
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 36
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I successfully used Nick Gammon's programmer sketch to rewrite the bootloader from another Arduino Uno. All better!
Logged

Pages: [1]   Go Up
Jump to: