Go Down

Topic: Fuse reset (HV) on a SMD atmega328 (Read 3001 times) previous topic - next topic

eried

Hello,

I have a "bricked" atmega328 I locked by mistake time ago, but I now need this board.

Anyone can give me some hint how to do it? I have the 2 automated repair boards from www.microcontrollerprog.com so one lengthy option is to differences on the pin distributions between the normal atmega and this smd and rewire the fusefix board. But maybe there is a simpler option? :D
My website: http://ried.cl

nickgammon

Do you get any response from this sketch?

http://www.gammon.com.au/forum/?id=11633

You may need to wire up the clock supply pin (D9) as described in there.
Please post technical questions on the forum, not by personal message. Thanks!

More info: http://www.gammon.com.au/electronics

eried

#2
Mar 30, 2013, 05:30 pm Last Edit: Mar 30, 2013, 06:22 pm by eried Reason: 1
Thanks Nick, great sketch. It says:

Code: [Select]
Atmega chip detector.
Entered programming mode OK.
Signature = 1E 95 0F
Processor = ATmega328P
Flash memory size = 32768
LFuse = FF
HFuse = DA
EFuse = FD
Lock byte = FF
Clock calibration = AB
Bootloader in use: Yes
EEPROM preserved through erase: No
Watchdog timer always on: No
Bootloader is 2048 bytes starting at 7800

Bootloader:

7800: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
7810: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
7820: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
7830: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
7840: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
7850: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
7860: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
7870: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
7880: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
7890: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
78A0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
78B0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
78C0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
78D0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
78E0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
78F0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
7900: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
7910: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
7920: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
7930: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
7940: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
7950: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
7960: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
7970: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
7980: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
7990: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
79A0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
79B0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
79C0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
79D0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
79E0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
79F0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
7A00: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
7A10: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
7A20: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
7A30: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
7A40: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
7A50: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
7A60: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
7A70: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
7A80: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
7A90: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
7AA0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
7AB0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
7AC0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
7AD0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
7AE0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
7AF0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
7B00: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
7B10: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
7B20: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
7B30: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
7B40: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
7B50: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
7B60: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
7B70: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
7B80: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
7B90: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
7BA0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
7BB0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
7BC0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
7BD0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
7BE0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
7BF0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
7C00: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
7C10: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
7C20: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
7C30: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
7C40: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
7C50: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
7C60: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
7C70: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
7C80: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
7C90: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
7CA0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
7CB0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
7CC0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
7CD0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
7CE0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
7CF0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
7D00: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
7D10: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
7D20: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
7D30: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
7D40: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
7D50: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
7D60: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
7D70: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
7D80: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
7D90: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
7DA0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
7DB0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
7DC0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
7DD0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
7DE0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
7DF0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
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 = E0 DE EB D3 C3 F5 60 21 2A F1 7C 68 B9 34 4B AE

First 256 bytes of program memory:

0: 0C 94 6C 00 0C 94 94 00 0C 94 94 00 0C 94 94 00
10: 0C 94 94 00 0C 94 94 00 0C 94 94 00 0C 94 94 00
20: 0C 94 94 00 0C 94 94 00 0C 94 94 00 0C 94 94 00
30: 0C 94 94 00 0C 94 94 00 0C 94 94 00 0C 94 94 00
40: 0C 94 B4 12 0C 94 94 00 0C 94 C3 13 0C 94 94 00
50: 0C 94 94 00 0C 94 94 00 0C 94 94 00 0C 94 94 00
60: 0C 94 94 00 0C 94 94 00 7C 3C 3E 5E 2B 3D 3F 2F
70: 5B 5D 3B 2C 2A 22 5C 00 00 00 00 00 24 00 27 00
80: 2A 00 00 00 00 00 25 00 28 00 2B 00 00 00 00 00
90: 23 00 26 00 29 00 04 04 04 04 04 04 04 04 02 02
A0: 02 02 02 02 03 03 03 03 03 03 01 02 04 08 10 20
B0: 40 80 01 02 04 08 10 20 01 02 04 08 10 20 00 00
C0: 00 07 00 02 01 00 00 03 04 06 00 00 00 00 00 00
D0: 00 00 A4 00 D5 01 BF 14 11 24 1F BE CF EF D8 E0
E0: DE BF CD BF 11 E0 A0 E0 B1 E0 EA E2 FD E2 02 C0
F0: 05 90 0D 92 AA 3C B1 07 D9 F7 14 E0 AA EC B1 E0

My website: http://ried.cl

nickgammon

The fuses look OK, and the chip responded. All you need now is to upload the bootloader. Do you have an external crystal? The fuse is set to expect one.
Please post technical questions on the forum, not by personal message. Thanks!

More info: http://www.gammon.com.au/electronics

eried

Yeah, it has, but I can't upload anything. I used an avrasp while ago and I think by mistake I locked the atmega (I locked a lot of attinys too, that's why I bought the unlocker and restored them all but this, mainly because the fact that is smd)
My website: http://ried.cl

eried

Ok, nevermind, I sacrificed an old seeeduino with a 168 and replaced it in the board, and it works nicely again :)

Another solution to this problem, if someone needs it in the future:
http://www.microcontrollerprog.com/m328.JPG

parallel HV programming (I am not sure what will happen with some of the circuitry while the atmega is soldered in the board and the 12 V of the programming)
My website: http://ried.cl

nickgammon


Yeah, it has, but I can't upload anything.


You haven't locked it, you just erased the bootloader. Put that back and you'll be fine.
Please post technical questions on the forum, not by personal message. Thanks!

More info: http://www.gammon.com.au/electronics

Go Up