Cheapo HVPP for AVR easy fuse repair suggestions - Page 1
Forum section: electronics / general

author: PKTKS
author_rank: Super Contributor
timestamp: December 01, 2021, 06:56:43 pm
content: A friend of mine teaching young people AVRshas asked me if I know some cheap affordable easy torepair bricked ATmegas AVRs..I googled for some thing and wonder if RT809 or MiniProcould be suggested... but I found nothing really suitedto put on students hands..Any suggestion welcome.. shields, known programmersanything that could be used for learning people to UNBRICKbad bricked Atmegas with bad fuses...Cheap, affordable because these students burn a lot of stuff..ThanksPaul

author: PCB.Wiz
author_rank: Super Contributor
timestamp: December 01, 2021, 07:51:08 pm
content: Quote from: PKTKS on December 01, 2021, 06:56:43 pmMost easily available would be a PP9 battery and a resistor/zener ? Use a microswitch so they have to hold it closed to enable 12VOr, if you can find some ST662 / MAX662 are the technically cleanest 12V generation.or, if 10V on a light load is ok, a MAX202 or clone RS232 driver has charge pumps to 2x Vcc, curves say 10V~9.75V at < 0.5mAOr, a diode/capacitor charge pump string, with a zener, and a square wave from a working MCU ?Addit : here is a link of that last onehttps://sites.google.com/site/wayneholder/12-volt-charge-pump

author: WattsThat
author_rank: Frequent Contributor
timestamp: December 01, 2021, 10:09:56 pm
content: The typical bricking involves setting the clock fuses incorrectly that results in a part that will not respond to ISP (in circuit serial programming) due to the lack of a clock. All parts ship from the factory set to use the internal RC clock but changing that to another another clock source that doesn’t exist results in a bricked part. HV programming is not required to recover these parts, it just needs a clock.The easiest and cheapest way to fix this is to use an Uno board with a programming shield that has had simple modification. You create a 1 MHz clock signal using the Uno, the code is already in the ArduinoISP sketch by LadyAda or in various versions on GitHub. Wire the clock to the xtal1 pin of the programmer chip socket and you’re off to the races.Programming shields are available for cheap all over eBay. If you really do need a HV programmer, one of the widely available TL866II units will program the usual AVR parts.https://learn.adafruit.com/arduino-tips-tricks-and-techniques/arduinoisp

author: westfw
author_rank: Super Contributor
timestamp: December 02, 2021, 01:01:49 am
content: QuoteWhich AVRs? In general, HVPP programmers use a lot of resources in order to be able to handle multiple pinouts of multiple chips (and then HVPP protocols vary from chip-to-chip as well.) For example, the famous STK500 board has eoght different sockets that you reconfigure with jumper cables, and is overall about us user-friendly as differential equations. :-(Also: for use by the teacher after kids brick a chip, or for use by the kids themselves?Quotehttps://mightyohm.com/blog/products/hv-rescue-shield-2-x/QuoteThere is a big gap between a 12V power source and successfully un-bricking an AVR microcontroller.

author: PKTKS
author_rank: Super Contributor
timestamp: December 02, 2021, 10:54:35 am
content: Thanks for suggestions...Quote from: westfw on December 02, 2021, 01:01:49 amBoth. The students brick a lot of UNOs and NANOs ... basic atmega328pbut the SMD versions (which are cheaper and more used) are far more trickydue to the QFP package.Solutions should be simple to be handle by absolute newbies..They need to unbrick when totally screwed fuses prevent them to useICSP or other things like other UNOs in breadboard ISPs for DIPsSolutions involving mounting circuits and bread boarding are not suitable.First I thought I would find "professional" programmers like RT809complete with all JIGs could do that using a QFP ZIF adapter..But I got really confused **IF* the programmer supports these specificHVPP demands.. TL866II has advantages by having MiniPro under any LINUX..But so forth i could not determine if the support for bricked ATmegas should workand what type of adapter should be used..That AVRRESCUE is great for DIPs but again QFP packages are damn common.. the students damage UNOs and NANOs primarily by:- dead shorted regulators..- totally wacko FUSE bits.. impossible to say just clock or also ICSP.- dead ATmega.. being each day harder to order .. and very expensive in small qts.Basically I got curious as well how hard could be to find a JIG to HVPP or HVSPATmegas using regular professional like programmers..Got surprised by the lack of ready made solutions.. like adapters w/boostersand sockets...Any suggestions still very welcome even to satisfy my own curiosityThankxPaul

author: Ian.M
author_rank: Super Contributor
timestamp: December 02, 2021, 11:47:28 am
content: For Arduinos with SMD AVR MCUs, WattsThat's suggestion of using theAdafruit modified ArduinoISP sketchis still viable, hooked up to the target ICSP header. The sketch outputs a clock signal for the target on digital pin 9, so if it fails to program, simply connect that to XTAL1 of the target. Its probably easiest to simply hold a needle point probe (with 330R in series to prevent disasters) on the end of the load capacitor for the crystal/resonator that goes to XTAL1, as hooking up direct to the SMD MCU pin is rather fiddly. Hard wire a Nano with the target ICSP cable and extra probe, so you don't have to mess around setting up the programmer end wiring each time you need it.For some AVR Arduinos, it would be possible to use HV parallel programming in-circuit, hooking up via the target Arduino's headers. There are only two issues - what's on the /RESET signal, which needs 12V applied for parallel programming, and hooking up to XTAL1, which is used for the parallel programming command pulse. Unfortunately in-circuit HV parallel programming isn't possible on any Arduino board that includes a clamping diode from /RESET to VCC (e.g. Arduino Uno). You could detect the presence of such a diode by monitoring the /RESET pin voltage. If the programmer HV output is limited to max 2mA, (allowing 250uA for the MCU, and 700uA through a 10K pullup into the Vcc rail) ,no damage will result if the diode is present as the power LED + its series resistor will keep the 5V rail from rising. The coupling capacitor from the USB UART IC RTS or DTR to main AVR's /RESET may also be an issue - you may have to cut the PCB jumper that isolates it, and reconnect it after 'fusebusting'.

author: Alti
author_rank: Frequent Contributor
timestamp: December 02, 2021, 12:04:52 pm
content: Quote from: PKTKS on December 01, 2021, 06:56:43 pmATMega16/32/162/169/64/128.If you provide an on board clock generator then it is impossible to brick the chip by fuses.All of those are are programmable via ISP and debuggable via JTAG with JTAGICE Mk1.BTW, tell your friend there are ARM Cortex chips available.

author: PKTKS
author_rank: Super Contributor
timestamp: December 02, 2021, 12:15:26 pm
content: Quote from: Ian.M on December 02, 2021, 11:47:28 amThat solution of hardwiring something with that sketch maybe enough to bad clock fuses...Easily handled by newbies.ThanksPaul

author: PKTKS
author_rank: Super Contributor
timestamp: December 02, 2021, 12:20:04 pm
content: Quote from: Alti on December 02, 2021, 12:04:52 pmAFAIK the ICSP works only if the respective fuse bit allows it..Which in advance it can not be saidThe clock fuse may be easily fixed..But the other 2 possible bricks of having ICSP disabled and/or RESET pin disabledwould prevent easy fixes..BTW newbies can't handle the more complex tidbits of ESP32 MCUs.They are indeed cheaper and having fully compatibles cores in the IDEbut the things required to understand their advantages are advancedfor newbies.. mostly interested in trivial LED and step motors..light bulb relays..The popcorn really..Paul

author: Alti
author_rank: Frequent Contributor
timestamp: December 02, 2021, 11:24:42 pm
content: Quote from: PKTKS on December 02, 2021, 12:20:04 pmNope, the new bricking feature was introduced later. Those chips that I listed neither can have their ICSP disabled (via ICSP), nor do these posses the infamous "Reset pin disabled, f%$#k". These do not even need RESET pin because JTAG does not use RESET pin and you can program them when held under reset if you wanted to.

author: amyk
author_rank: Super Contributor
timestamp: December 03, 2021, 03:56:31 am
content: Give them the datasheet, a breadboard, some wires, and some pushbuttons..."You break it, you fix it... one bit at a time."

author: PKTKS
author_rank: Super Contributor
timestamp: December 06, 2021, 01:55:49 pm
content: For the record...After a lot of gogglinggg I found that by 20s there is no silver bullet for that...Unique proper advice is by paying a real tool like deprecatedand almost impossible to find today AVR-Dragon or..the expensive and less powerful AVR-ICEAt least this is a de facto advice by having JTAG and proper graded tools..Not cheap and not easy to maintain.. at student handsEven wonder to buy one for myself..Paul

author: sleemanj
author_rank: Super Contributor
timestamp: December 06, 2021, 02:01:35 pm
content: google AVR fuse doctorYou'll have to build it yourself, I made one some years ago, operation is simply insert chip, press button, fuses get reset, job done.

author: Alti
author_rank: Frequent Contributor
timestamp: December 06, 2021, 04:05:45 pm
content: Quote from: PKTKS on December 06, 2021, 01:55:49 pm$4

author: PKTKS
author_rank: Super Contributor
timestamp: December 07, 2021, 09:27:47 am
content: Quote from: sleemanj on December 06, 2021, 02:01:35 pmInteresting.. but I doubt it will last on student hands...Paul

author: PKTKS
author_rank: Super Contributor
timestamp: December 07, 2021, 09:29:24 am
content: Quote from: Alti on December 06, 2021, 04:05:45 pmThis sort of item is more like usbTiny or usbASP....they already use them and the bad use of external bootloadersis the main reason for bad fuses ...Can not tell this particular one if usbTiny or regular STK500 ....I have googled for AVR-Dragon... almost impossible to find old stocks..It still is the best safe option...AVR-ICE available in Farnell and some others..At least over U$100 plus taxes... to arrive here...In dozens? out of the question.Paul

author: Alti
author_rank: Frequent Contributor
timestamp: December 07, 2021, 11:33:49 am
content: Quote from: PKTKS on December 07, 2021, 09:29:24 am

author: PKTKS
author_rank: Super Contributor
timestamp: December 07, 2021, 11:58:59 am
content: Quote from: Alti on December 07, 2021, 11:33:49 amPlease en-light me about thatI can not tell what sort of firmware is bundled inside that AVR...not without buying it first..If you already did .. does it emulates full STK500 ?upgraded versions..or what else can that 5VUSB only device do..besides the claimed JTAG interface..hopefully compatible with AVR5... at least.Paul

author: Alti
author_rank: Frequent Contributor
timestamp: December 07, 2021, 12:15:18 pm
content: Quote from: PKTKS on December 07, 2021, 11:58:59 amI think we all pointed you in the right direction. If the pieces of information provided are not enough then there is no hope for your endeavour.Good luck!

author: PKTKS
author_rank: Super Contributor
timestamp: December 07, 2021, 12:48:26 pm
content: Quote from: Alti on December 07, 2021, 12:15:18 pmThanks...The folk will be using this does not need any luck...besides fixing some bad student gizmos...Here this U$4 unit will cost U$10 each due to shipping costs..on a dozen base...if that only does JTAG without HVPP/HVSPit would be useless.. on the student bench.The other projects will cost less..overall bottom line is getting a decent real AVR programmerfor such cases..I came to that conclusion .. wondering one for me too...nice to have a spare unit...Paul

author: Doctorandus_P
author_rank: Super Contributor
timestamp: December 08, 2021, 12:32:27 pm
content: There have been a bunch of projects (or copies from each other?) for fuse resetters.https://html.duckduckgo.com/html?q=AVR+HVP+fuse+resetter

author: PKTKS
author_rank: Super Contributor
timestamp: December 08, 2021, 01:03:32 pm
content: Quote from: Doctorandus_P on December 08, 2021, 12:32:27 pmThanks.. they all need a careful review to weight costs...ALAS... DUCKDUCK reminded me the good old days when uncle googwas not in the top of the hill... and all the net thing was called AltaVista...long time ..better results as well - less clutterPaul