Skip to content

sckocn/AtmelHVPP

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Atmega 高压熔丝恢复

Atmel HVPP (High Voltage Parallel Programming)

This little project was created after a delivery of some ATMEGA48 from Aliexpress which did not work in the biginning. After some research and asking in a forum, i came to the conclusion that the fuses might be defect and it might be worth fixing them. Most ideas are from Mighty Ohm HV Rescue Shield and Fusebit Doctor. The only problem was, that there is no full description and no sourcecode available, so i started to develop my own code and at the end i successfully revived these ATMega chips. If you have only 3 defect chips like me, then it might not be worth fixing them, i did this, because i was interested on this reviving method and now i have everything to fix any other chips with the same package.

Features

  • shows the signature on the display
  • shows the actual fuses on the display

Needed hadware

Software requrements

  • building environment only tested under linux, might need some adaption for other operating system but using Oracle Virtual Box or other virtualisation, it is easy to run linux on any OS
  • avr tools (apt-get install gcc-avr avr-libc)

How to compile and flash

The makfile has the target "program" which compiles and flashes using the settings in the Makefile. If you only want to build just type "make" in a terminal. Make sure to change the device if you use a different Arduino board, also make sure to change the IO settings in the main.c file at the beginning. If you flash with this Makefile, the bootloader will be removed. You can fix the bootloader with the Arduino IDE and the Atmel ISP device.

disclaimers

This code is provided as-is, with NO guarantees or liabilities. If you dont know how to fix the bootloader of your arduino or dont have an Atmel ISP, you should consider changing the code to Arduino syntax and use the Arduino system to flash the binary. The resistors within the signal lines might be too small if all pins are driven from the Atmel chip with the defect fuses. If you are sure the chip is unprogrammed then this value should work (check data sheet, VCC and resistor value to calculate current of one IO and sum up the current of all IOs of a bank and possible also all IOs, check all values, single IO max current, max current of IO bank and max current of all IOs for specified values). If the maximum current is exceeded both chips may be permanently damaged.

About

Atmel High Voltage Programing to revive Atmel chips with defect fuse settings

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 56.7%
  • Makefile 38.7%
  • C++ 4.6%