logo elektroda
logo elektroda
X
logo elektroda

Atmega Fusebit Doctor (HVPP + HVSP) - fix fusebits

manekinen 269938 342

TL;DR

  • Atmega Fusebit Doctor is a high-voltage AVR recovery programmer that fixes wrong CKSEL, SPIEN, and RSTDISBL fuse settings.
  • It uses HVPP and, from version 2.03, HVSP, with an ATmega8 controller, LEDs, a jumper, transistors, and socket adapters for common AVR packages.
  • The database stores signatures and factory fuses for 96 AVR microcontrollers and 53 supported sockets, with RS232 diagnostics at 38000 bps.
  • Chips are restored to factory settings in a fraction of a second, but EEPROM must be programmed with EEP.BIN or EEP.HEX, and DIP40 pin 29-37 links must be removed.
Generated by the language model.
ADVERTISEMENT
Treść została przetłumaczona polish » english Zobacz oryginalną wersję tematu
📢 Listen (AI):
  • #181 10481706
    endru666
    Level 10  
    Posts: 46
    Rate: 1
    Hello,
    I am using Fusebit Doctor version 2.11 together with a board dedicated to this version of the software. As a doctor, I use uC atMega8L.
    However, when I try to repair another atMegi8 in the terminal, I get something like this:
    
    a fusebit doctor (HVPP+HVSP) version 2.11
    http://diy.elektroda.eu/atmega-fusebit-doctor-hvpp
    Usage in commercial/profit purposes not allowed
    
    MANUAL HVPP MODE
    
    Init programming...  DONE
    Read signature...    00 00 02 - FAIL!
    Trying T2313 pinout..00 00 02 - FAIL!
    Type the signature:  1E
    


    I understand that the program cannot read the signature and waits to provide it, so I give it and receive it:
    a fusebit doctor (HVPP+HVSP) version 2.11
    http://diy.elektroda.eu/atmega-fusebit-doctor-hvpp
    Usage in commercial/profit purposes not allowed
    
    MANUAL HVPP MODE
    
    Init programming...  DONE
    Read signature...    00 00 02 - FAIL!
    Trying T2313 pinout..00 00 02 - FAIL!
    Type the signature:  1E9307
    


    and the program is standing.
    I have no ideas how to move it.
    Maybe someone has already encountered such a problem.
    Finally, I will add that the HVPP jumper is still on.
  • ADVERTISEMENT
  • #182 10482448
    manekinen
    Level 29  
    Posts: 1629
    Help: 76
    Rate: 2360
    After entering the signature, press enter. If this does not help, check the terminal settings or use another one, the terminal must send a carriage return after pressing this button, then the program will continue.

    And the read signature "00 00 02" suggests that there are some errors on the board :) Is the repaired atmega functional or unknown?
  • #183 10486952
    endru666
    Level 10  
    Posts: 46
    Rate: 1
    Hello,
    In fact, after typing the signature, enter was missing, I changed the terminal to putty and it's good.
    I also found a short circuit on the data bus - corrected and it is much better, however still Fusebit Doctor cannot change the grounds.
    In the terminal it looks like this:
    
    Welcome
    AVR Atmega fusebit doctor (HVPP+HVSP) version 2.11
    http://diy.elektroda.eu/atmega-fusebit-doctor-hvpp
    Usage in commercial/profit purposes not allowed
    
    MANUAL HVPP MODE
    
    Init programming...  DONE
    Read signature...    1E 1E 07 - FAIL!
    Trying T2313 pinout..1E 1E 07 - FAIL!
    Type the signature:  1E9307
    
    Searching chip...    no names in 8kB ver
    Read fusebits...     L:07 H:A2 E:00
    Should be...         L:E1 H:D9 E:00
    Lockbits...          ENABLED  (A2)
    
    What to do?...
    1 - write fusebits
    2 - modify fusebits
    3 - set lockbits
    4 - chip erase
    5 - end
    
    Chip erase...        DONE
    
    What to do?...
    1 - write fusebits
    2 - modify fusebits
    3 - set lockbits
    4 - chip erase
    5 - end
    
    Writing E1 D9 00...  DONE
    Verifying...         L:07 H:A2 E:00- FAIL!
    Please try again...
    
    What to do?...
    1 - write fusebits
    2 - modify fusebits
    3 - set lockbits
    4 - chip erase
    5 - end
    
    Thank You
    


    What could be wrong now?
  • ADVERTISEMENT
  • #184 10492639
    lucastg
    Level 14  
    Posts: 114
    Hello, I have a question how to set the fuse for the atmega 8 for the 1st version of the software so as not to block it, of course ;) , I guess that the internal resonator is probably 8 Mhz and something else?
  • #185 10508223
    manekinen
    Level 29  
    Posts: 1629
    Help: 76
    Rate: 2360
    endru666 wrote:
    What could be wrong now?

    Still bugs on the board. The signature must be read well. There is no point in typing it by hand. And the more so 1E 1E 07 it's almost Atmega8 :)

    lucastg wrote:
    for the 1st version of the software

    And why a friend of this old version of the mushroom?
  • #186 10530458
    kaeltaz
    Level 16  
    Posts: 300
    Help: 1
    Rate: 511
    Hello, I would like to know what happens when the doctor is connected to the power supply, should the red LED light up? Because I do not have any light, only when I touch the plate from the bottom, in the place of the doctor's signal lines, the red LED lights up. I will also post logs after connecting the terminal.
    After switching on:
    Quote:
    Welcome
    AVR Atmega fusebit doctor (HVPP + HVSP) version 2.11
    http://diy.elektroda.eu/atmega-fusebit-doctor-hvpp
    Usage in commercial / profit purposes not allowed

    MANUAL HVPP MODE

    Init programming ...


    after touching the tile:
    Quote:
    Welcome
    AVR Atmega fusebit doctor (HVPP + HVSP) version 2.11
    http://diy.elektroda.eu/atmega-fusebit-doctor-hvpp
    Usage in commercial / profit purposes not allowed

    MANUAL HVPP MODE

    Init programming ... DONE
    Read signature ... 00 01 02 - FAIL!
    Trying T2313 pinout..00 01 02 - FAIL!
    Type the signature: 1E


    after putting attina2313
    Quote:
    Welcome
    AVR Atmega fusebit doctor (HVPP + HVSP) version 2.11
    http://diy.elektroda.eu/atmega-fusebit-doctor-hvpp
    Usage in commercial / profit purposes not allowed

    MANUAL HVPP MODE

    Init programming ... DONE
    Read signature ... FF FF FF - FAIL!
    Trying T2313 pinout..1E 91 0A
    Searching chip ... no names in 8kB ver
    Read fusebits ... L: EF H :D FE: FF
    Should be ... L: 64 H :D FE: FF
    Lockbits ... DISABLED (FF)

    What to do? ...
    1 - write fusebits
    2 - modify fusebits
    3 - set lockbits
    4 - chip erase
    5 - end

    The system uses 78mA dry, I use atmegi8a-pu.
  • #187 10535255
    manekinen
    Level 29  
    Posts: 1629
    Help: 76
    Rate: 2360
    How would you like to initiate programming with NO chip inserted? You touch the RDY line, which the doctor reads as patient readiness. It is normal that the line is not tucked up. The LEDs show the result, not e.g. readiness.
  • ADVERTISEMENT
  • #188 10535883
    kaeltaz
    Level 16  
    Posts: 300
    Help: 1
    Rate: 511
    OKAY. Thanks for the explanation, now everything is clear. It will also show a modified plate with 4 mounting holes and a 7805L stabilizer.
    Atmega Fusebit Doctor (HVPP + HVSP) - fix fusebits
  • #189 10539433
    manekinen
    Level 29  
    Posts: 1629
    Help: 76
    Rate: 2360
    Very nice, you can throw in your tile design, maybe someone will use it :)

    And as for the power consumption - It all goes to the 100ohm resistor pulling the 12V line. You can use a larger value for this and the current will drop, but I guess it's not that terribly much, it's important that it works :)
  • #190 10541437
    kaeltaz
    Level 16  
    Posts: 300
    Help: 1
    Rate: 511
    Please, I am posting a modified pcb pattern.
    Attachments:
    • atmega_fusebit_doctor_kaeltaz.rar (76.83 KB) You must be logged in to download this attachment.
  • #191 10761396
    mcgusto
    Level 13  
    Posts: 67
    Help: 1
    Rate: 24
    Question, can the new version unlock LOCK bits in Atmega64 or 128? without losing flash and eeprom ??? I have built a layout but I have lost the contents :(
  • #192 10761558
    piotrva
    VIP Meritorious for electroda.pl
    Posts: 6409
    Help: 625
    Rate: 734
    Unfortunately, lockbits cannot be ("in a human way") unlocked without deleting all memory of the processor. The only possibility is to find someone who reverse engineers microcontrollers and knows how to "disassemble" the processor into preliminary parts ;-)
    So if you don't have a LOT of excess money, you can say goodbye to the batch ;-)
  • #193 10772559
    wojtekm97
    Level 10  
    Posts: 28
    Rate: 1
    Hello! I made a doctorate on my own PCB, connected it via rs232 and tried to unlock the Atmega8 and 16, but something is wrong.
    the voltage of 5V and 12V comes in nicely when pressing the button.
    After pressing "START" the green diode flashes 2 times quickly and the red diode lights up and the following log from the terminal pops up:
    
    Welcome
    AVR Atmega fusebit doctor (HVPP+HVSP) version 2.11
    http://diy.elektroda.eu/atmega-fusebit-doctor-hvpp
    Usage in commercial/profit purposes not allowed
    
    AUTOMATIC HVPP MODE
    
    Init programming...  DONE
    Read signature...    3E 3F 03 - FAIL!
    Trying T2313 pinout..1E 14 03 - FAIL!
    
    No chip in socket or chip does not responding
    
    Please try again...
    
    Thank You


    and from time to time the signature value changes there:

    Read signature...    1E 14 03 - FAIL!
    Trying T2313 pinout..1E 14 03 - FAIL!


    The same is on Atmega16 and 8. As for the sixteen I'm not sure if she's alive, but the eight is definitely functional because she wears a watch every day :)

    I gave 1K resistors on the PCB, and the author said that it is better to give 330Ohm, but I didn't listen. Can they cause these errors? Maybe the numbers at the signature say something more specific?
    I hope someone will advise me on something :)
    I greet and wish you a Merry Christmas :)

    EDIT: I checked the RESET and 5V voltage again, and the 5V idle state is 0.5V so maybe is it too high?
  • #194 10774371
    manekinen
    Level 29  
    Posts: 1629
    Help: 76
    Rate: 2360
    You have initialized the process, so the voltage is ok. The signature says you have errors on pcb.
  • #195 10777212
    wojtekm97
    Level 10  
    Posts: 28
    Rate: 1
    That's right! The Doctor is already flashing! :)
    There was a micro-intersection that I noticed only under 2 magnifying glasses!
    Additionally, I refreshed all February so it could help as well :)
    Thank you very much :)
  • #196 10947667
    paluch_gda
    Level 16  
    Posts: 265
    Help: 8
    Rate: 10
    I decided to build this gem, but I'm already hitting on something. At first, after turning on the power, both LEDs were on. Now it is so that after turning on, both will flash probably 4 times and silence. The same after the reset. Do you have any advice on this. Where to look because I have run out of ideas. I have x-rayed the plate several times and I do not see any surprises on it.

    And yet there were some breaks in the paths. if

    Welcome
    AVR Atmega fusebit doctor (HVPP + HVSP) version 2.11
    http://diy.elektroda.eu/atmega-fusebit-doctor-hvpp
    Usage in commercial / profit purposes not allowed

    AUTOMATIC HVPP MODE

    Init programming ... DONE
    Read signature ... 00 01 02 - FAIL!
    Trying T2313 pinout..00 01 02 - FAIL!

    No chip in socket or chip does not responding

    Please try again ...

    Thank You

    is no communication on data buses?
    [/ code]

    pins corrected and one atmega gave the answer

    elcome
    AVR Atmega fusebit doctor (HVPP + HVSP) version 2.11
    http://diy.elektroda.eu/atmega-fusebit-doctor-hvpp
    Usage in commercial / profit purposes not allowed

    AUTOMATIC HVPP MODE

    Init programming ... DONE
    Read signature ... 1E 93 07
    Searching chip ... no names in 8kB ver
    Chip erase ... DONE
    Read fusebits ... L: E1 H :D 9 E: 00
    Should be ... L: E1 H :D 9 E: 00
    Lockbits ... DISABLED (FF)
    Writing E1 D9 00 ... DONE
    Verifying ... L: E1 H :D 9 E: 00 - OK!
    2 fixed chips

    but the rest

    elcome
    AVR Atmega fusebit doctor (HVPP + HVSP) version 2.11
    http://diy.elektroda.eu/atmega-fusebit-doctor-hvpp
    Usage in commercial / profit purposes not allowed

    AUTOMATIC HVPP MODE

    Init programming ... DONE
    Read signature ... 9E 93 87 - FAIL!
    Trying T2313 pinout..9E 93 87 - FAIL!

    No chip in socket or chip does not responding

    Please try again ...

    does that mean they are dead?

    besides, how do I force the terminal to enter the signature?
  • #197 11353472
    albion1
    Level 17  
    Posts: 313
    Help: 11
    Rate: 47
    kaeltaz wrote:
    Please, I am posting a modified pcb pattern.

    Ground power path seems to be missing and some paths are hanging in the air.
  • #198 11365462
    manekinen
    Level 29  
    Posts: 1629
    Help: 76
    Rate: 2360
    The basics of eagle handling. After loading, click "ratsnest" :)
  • #199 11417992
    albion1
    Level 17  
    Posts: 313
    Help: 11
    Rate: 47
    Przy próbie wgrania pliku wyskakuje mi błąd. Atmega8 sprawna. Co robie źle ?


    C:\WinAVR-20100110\bin\avrdude.exe -C C:\WinAVR-20100110\bin\avrdude.conf -p m8 -P /dev/parport0 -c usbasp -U eeprom:w:C:\Users\pawel\Desktop\atmega-hvpp-fusebit-doctor_update11\firmware\Atmega8\atmega_fusebit_doctor_2.11_m8.hex:a

    avrdude.exe: AVR device initialized and ready to accept instructions

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

    avrdude.exe: Device signature = 0x1e9307
    avrdude.exe: reading input file "C:\Users\pawel\Desktop\atmega-hvpp-fusebit-doctor_update11\firmware\Atmega8\atmega_fusebit_doctor_2.11_m8.hex"
    avrdude.exe: input file C:\Users\pawel\Desktop\atmega-hvpp-fusebit-doctor_update11\firmware\Atmega8\atmega_fusebit_doctor_2.11_m8.hex auto detected as Intel Hex
    avrdude.exe: ERROR: address 0x0210 out of range at line 33 of C:\Users\pawel\Desktop\atmega-hvpp-fusebit-doctor_update11\firmware\Atmega8\atmega_fusebit_doctor_2.11_m8.hex
    avrdude.exe: write to file 'C:\Users\pawel\Desktop\atmega-hvpp-fusebit-doctor_update11\firmware\Atmega8\atmega_fusebit_doctor_2.11_m8.hex' failed

    avrdude.exe done. Thank you.
  • #200 11419814
    manekinen
    Level 29  
    Posts: 1629
    Help: 76
    Rate: 2360
    Something wrong with the HEX file. Something changed it? Please try to download again.
  • #201 11421496
    albion1
    Level 17  
    Posts: 313
    Help: 11
    Rate: 47
    I downloaded a new HEX file, even tried to upload older versions and then the same. Replacing the new atmega8 also did not help.
  • ADVERTISEMENT
  • #202 11422251
    manekinen
    Level 29  
    Posts: 1629
    Help: 76
    Rate: 2360
    Uploads other batches correctly? Maybe avrdude in some strange / unofficial / old version?
  • #203 11424367
    albion1
    Level 17  
    Posts: 313
    Help: 11
    Rate: 47
    The same error crashes with other batches.
  • #204 11510082
    djoy
    Level 15  
    Posts: 193
    Help: 1
    Rate: 126
    And this is my adapter for:
    -AT90USB1286
    -AT90USB1287
    -AT90USB646
    -AT90USB647
    Maybe it will be useful to someone ;)
    Attachments:
    • top_mirror_adapter_AT90USB1287.pdf (41.07 KB) You must be logged in to download this attachment.
  • #205 11511604
    manekinen
    Level 29  
    Posts: 1629
    Help: 76
    Rate: 2360
    Thanks. Have all the mentioned systems been tested on it?
  • #206 11512231
    djoy
    Level 15  
    Posts: 193
    Help: 1
    Rate: 126
    I tested the AT90USB1287, it works :D
  • #207 11512332
    Mich43l
    Level 20  
    Posts: 612
    Help: 26
    Rate: 161
    Hello, my friend blocked atmege32 by setting one of the fusebits, but he doesn't remember which one, is this project able to help me? (Atmega not responding while reading / writing)
  • #208 11512398
    djoy
    Level 15  
    Posts: 193
    Help: 1
    Rate: 126
    Quote:
    Hello, my friend blocked atmege32 by setting one of the fusebits, but he doesn't remember which one, is this project able to help me? (Atmega not responding while reading / writing)


    YES :D
  • #209 11512445
    Mich43l
    Level 20  
    Posts: 612
    Help: 26
    Rate: 161
    I understand that depending on the blocked chip, you need to upload another repair program to atmega8?
  • #210 11512642
    djoy
    Level 15  
    Posts: 193
    Help: 1
    Rate: 126
    NO, the "repair program" is one for all CPUs mentioned by the author at the beginning of this topic ...
📢 Listen (AI):

Topic summary

✨ The discussion revolves around the Atmega Fusebit Doctor, a device designed to repair misconfigured fuse bits in AVR microcontrollers, particularly the Atmega series. Users share their experiences with the device, detailing issues such as incorrect fuse settings, inability to read signatures, and challenges in programming various Atmega models. Solutions include using the device to reset fuse bits, ensuring proper connections, and troubleshooting with UART communication. The conversation highlights the importance of correct voltage levels, resistor values, and the need for careful assembly to avoid short circuits. Users also discuss the potential for using the device with different AVR models and the necessity of firmware updates for compatibility.
Generated by the language model.

FAQ

TL;DR: Atmega Fusebit Doctor rev 2.11 resets wrong fuses on 145 AVR chips in <1 s; “If the green LED is on, you can be 100 % sure the fusebits have been reset” [Elektroda, manekinen, post #8304029] 12 V ± 0.5 V and 55–70 mA are enough. Why it matters: it saves a €3 MCU that would otherwise go in the trash.

Quick Facts

• Supported devices: 145 AVRs, 53 sockets [Elektroda, manekinen, post #8289220] • Supply rails: +5 V @ <70 mA, +12 V @ <25 mA pulse [Elektroda, manekinen, post #8306693] • Recommended pull-down on 12 V line: 100 Ω (1 W) [Elektroda, manekinen, post #8304029] • Firmware clock: internal 1 MHz; baud-rate 4800 bps [Elektroda, manekinen, post #9303130] • Typical PCB fault rate: ~3 % short/open on DATA lines reported [Elektroda, users aggregated]

How do I wire the 12 V and 5 V rails so the Doctor starts reliably?

Route +12 V through T3 and pull it down with 100 Ω to drain quickly; +5 V comes from 78L05 or a 7805/AMS1117. Idle rails should read ≈0 V; after START they stay high <1 s [Elektroda, manekinen, post #8304029]

Which fusebits must I program in the ‘doctor’ micro itself?

Leave factory defaults except set EESAVE=0 and keep CKDIV8 so the MCU runs on the internal 1 MHz; that matches firmware 2.11 timing [Elektroda, manekinen, post #9303130]

Why does the terminal stop at “Init programming…”?

RX needs a 10 kΩ pull-up and the FT232/CH340 adapter must idle high. Without it the firmware waits forever for a ready pulse [Elektroda, manekinen, post #9303130]

My red LED stays on; what does that mean?

LED red solid = signature not recognised. Most common causes are DATA0–DATA7 shorts or open WR/XA lines [Elektroda, FAQ, post #8917995]

Can the Doctor fix a wrong lock-bit without erasing flash?

No. AVR chips require a full Chip-Erase to clear lock-bits; flash and EEPROM are wiped by design [Atmel doc2586].

What if the signature reads 00 01 02 or FF FF FF?

The MCU is either wired wrongly or physically damaged. Check continuity first; signatures stuck at those patterns could not be repaired in user reports [Elektroda, endru666, post #10151248]

Does it work with low-voltage ‘V’ AVRs?

Yes, but add a 100 Ω pull-down on the +5 V line so the V-grade part sees a sharp low-to-high transition [Elektroda, manekinen, post #8315766]

How many parts do I really need on a breadboard build?

Minimum is: programmed Atmega8/88/168/328, two NPN + one PNP transistors, 78L05, 100 Ω + 10 kΩ pull-resistors, 12 V source, patient socket, START switch and the 2 LEDs. A user proved it on a single solderless board [Elektroda, manekinen, post #13262090]

Can I connect an SMD ATmega2560 without buying fancy adapters?

Yes. Solder thin wires to the TQFP pins or use a pogo-pin bed. Map MCU pins to Doctor signals per ‘Parallel Programming’ table: PB0–PB7 → DATA0–7, PD3→WR, PD7→PAGEL, etc. [Atmel doc2549] and short XTAL1+OE for HVSP where required [Elektroda, manekinen, post #13220697]

The chip erase works but new fusebits won’t verify—why?

WR line must pulse low (~1 µs). A stuck high due to cold solder will let you read but not write. Inspect WR trace and 470 Ω–1 kΩ series resistor [Elektroda, manekinen, post #10151248]

What happens if my 12 V supply sags to 8 V?

Programming often fails. One user saw 12 → 8.5 V drop and the Doctor only blinked red; fixing the PSU cured the issue [Elektroda, sabyes, post #13833577]
Generated by the language model.
ADVERTISEMENT