High voltage programming

Go To Last Post
20 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hi

Having tried feeding clock to get some M8 and M88 going.... I suppose High voltage is last resort.

 

Surfing some I came across this link, however the author used EAGLE and posted .scr file, no visual like .pdf or picture format unfortunately.

Though a picture of the board seems simple enough.

 

two questions;

-- what d you think, is this a viable way to get a HV reset ?

 

-- has anyone an eagle schematter that could post a visible schema ?

 

https://www.instructables.com/AV...

 

/ george

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 1

Seriously, HV programming is a waste of money and time, it will cost more to build then the chip is worth, throw it away and don't repeat the same mistake that caused you to lose control of your AVR! think, then verify before burning fuses, Chalk it up to experience and buy another AVR and move on... 

Here is one ready made HV programmer for your UNO: https://mightyohm.com/blog/produ... I'm sure there are others....

 

Jim

 

Keys to wealth:

Invest for cash flow, not capital gains!

Wealth is attracted, not chased! 

Income is proportional to how many you serve!

Lets go Brandon!

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0


Throw them away. buy fresh chip--maybe??  taken from what you posted...

When in the dark remember-the future looks brighter than ever.   I look forward to being able to predict the future!

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

gechxx wrote:
Having tried feeding clock to get some M8 and M88 going.
There's a few ways to put the recovery clock.

gechxx wrote:
... is this a viable way to get a HV reset ?
Likely yes; some have tried and succeeded.

gechxx wrote:
-- has anyone an eagle schematter that could post a visible schema ?
Eagle 6, and subsequent, files can be transformed into web documents.

 

P.S.

gechxx wrote:
M88
A mega88 follow-on might be AVR32DA28 (PDIP, lead time : 32 weeks and 22 weeks, UPDI instead of ICSP)

 


Pololu - 5.10. Using the clock output to revive AVRs

...

8. If you still cannot get the chip erase to work, then there is probably something wrong with the AVR besides its clock settings, and you will not be able to revive it using these steps.

...

via Pololu USB AVR Programmer v2.1

[TUT][SOFT] Recovering from a "locked out" AVR | AVR Freaks

 

Nerd Ralph: PiggyFuse HVSP AVR fuse programmer (ralphd here, https://www.avrfreaks.net/search/site/ralphd?solrsort=ds_created%20desc&filter_by=9631)

High Voltage Programming Protocol Question | AVR Freaks (AtomicZombie, context is tiny85)

oh ... 12V parallel programming for mega88

 

CADLAB | Integrate CADLAB with your favorite PCB tool

 

Migration from the megaAVR® to AVR® Dx Microcontroller Families

Lead Time | World's Largest Inventory of Microchip Products

 

"Dare to be naïve." - Buckminster Fuller

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Well I think your advice is right, but... Im no good at soldering loose chips from boards, and these have some effort in mounting and some other chips on them, so throwing the board feels a bit of a waist. AND I can count on continuing being stupid, doing stupid things (if I dont just give up, for same reason i.e.) So it might come handy to have an escape. And the project doesnt so far seem overwhelmingly complicated. Decision not yet made :)

 

Thanks !

/george

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Well, HV programming usually requires a bare chip, as the other components on a board may not tolerate the added voltage anyway, so spend some time with a soldering iron and/or hot air gun and have fun burning up some chips, who knows the skill may come in handy some day.  laugh

 

 

Jim

 

 

Keys to wealth:

Invest for cash flow, not capital gains!

Wealth is attracted, not chased! 

Income is proportional to how many you serve!

Lets go Brandon!

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

OK, now I see! The chip need to be set in socket, since there is parallell feed of bytes...... so many more pins need to be accessed.

Well, good to have seen the schematic...... And yes, if the chip anyway need to come loose, a throwaway is certainly more practical.....

(guess there would be some upsetting of the other chips using a clamp onto the chip on the boards.....)

 

/george

 

PS - ED: sooo  this is actually the basis for ISP..... IN SERVICE.... (serial) ... Pr  , I see; its the "old way of programming chips" reverting to stoneage like...

 

Ok, Jim, guess Ill fire up, scold fingers, swear long latin phrases, and then throw away bords with come loose lanes..  :)

     well, I might just get the other chips off reusable...

Last Edited: Mon. Oct 11, 2021 - 08:18 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

What is your problem?

ISP programming with an external clock should recover most AVRs.

 

The only way to "go wrong" with mega8, mega88, ... is to set the RSTDISBL fuse.

Since mega8, mega88, ... have plenty of GPIO pins there is never any point in using RSTDISBL.

 

If you have inadvertently set RSTDISBL fuse on socketed DIP chips,   you can send them to a Swedish neighbour with STK500, Dragon, ...

If they are soldered DIP or TQFP it is simpler to just replace the chips.

 

David.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Well, guess avrdude "rewriting" fuses to 0 ... zero, would get RSTDISBL set.... . Have no other explanation, I dont get them to wake.

Ok so those can still unlock.

But yes they are DIP, so solder is possible.

 

Thanks

/george

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

 

You can also CUT the chip's pins, very carefully, with an x-acto knife.

Then the chip falls off the PCB.

And then you can (easily) use your soldering iron to remove the rest of the chip's pins from the pads, one by one.

 

This will let you re-use your PCB and the other parts that are on it.

 

JC

 

 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

wow, of cause, that sounds like more successful than I usually am ! Cut the legs of and the rest falls. Nice. Guess suction will take the pin residue with the solder as well.

 

/george

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 1

 

Example of another HVP session that went wrong...

 

You can put lipstick on a pig, but it is still a pig.

I've never met a pig I didn't like, as long as you have some salt and pepper.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

gechxx wrote:

wow, of cause, that sounds like more successful than I usually am ! Cut the legs of and the rest falls. Nice. Guess suction will take the pin residue with the solder as well.

 

With a bit of practice you will find that if you cut the leg close to the body of the DIP then you are left with a 'j' shaped leg sticking out of the board, with the curve at the top. By melting the solder from the top of the board you can use the tip of the iron to hook under the curve on the leg and lift it out of the hole.

#1 Hardware Problem? https://www.avrfreaks.net/forum/...

#2 Hardware Problem? Read AVR042.

#3 All grounds are not created equal

#4 Have you proved your chip is running at xxMHz?

#5 "If you think you need floating point to solve the problem then you don't understand the problem. If you really do need floating point then you have a problem you do not understand."

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

david.prentice wrote:

The only way to "go wrong" with mega8, mega88, ... is to set the RSTDISBL fuse.

Since mega8, mega88, ... have plenty of GPIO pins there is never any point in using RSTDISBL.

Correction - the only way to "go wrong" with a mega8 is, indeed, to have programmed RSTDISBL (any other fuse setting can be recovered by a clock injected to XTAL1). But this is not true for mega88. You can tie yourself in knots with DWEN too. If you have then hopefully you have a debugger and can just start a debug session then ask to switch back. But otherwise it can make chips look "uncontactable" too.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Yes,  the mega88 has debugWIRE.   You can recover from DWEN via a  debugWIRE hardware debugger e.g. SNAP, PicKit4, ATMEL-ICE, ...

You can also recover by bit-banging with another AVR.

 

Simple Rules:

 

1.  NEVER use RSTDISBL.

2.  Do not attempt to enable DWEN unless you possess a hardware debugger. And actually want to use debugWIRE on the mega88, 168, 328, ... chips)

 

David.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

For people having the tendency to make the mistake of programming the "External Clock" fuse on AVRs, instead of "External Crystal", I would recommend to program a small AVR, like AtTiny13 to produce a simple square clock out of a GPIO pin, and use it as the "External Clock" to the XTAL1 pin of the mistakenly programmed AVR.  Of course, having a frequency generator will do the same, but I guess who has a function generator over the bench will not do such mistake... ;-).

 

Assembly and program the AtTiny13 flash with the following code, and have a 1.6MHz clock on PortB2 (pin 7),

just feed +4.5V (3 x AA/AAA cells) to pin 8 and ground to pin 4:

 

Program fuses:

LOW:  0x7A

HIGH: 0xFF

 

.org $0

reset:

          SER R16              ; R16=$FF

          OUT DDRB, R16    ; PORTB=OUTPUT

          SBI PINB,2           ; TOGGLE PORTB, pin 2

          RJMP PC-1            ; REPEAT

 

Here is the hex file data for the AtTiny13:

 

:020000020000FC
:080000000FEF07BBB29AFECF1F
:00000001FF

 

Wagner Lipnharski
Orlando Florida USA

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Easier still. Take a new 48/88/168/328 out of the tube. Program the CKOUT fuse. Job done. 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hi, thanks all. Got one out and new in.

 

Realize my "environment" is no good, something has happened. (been off since I bricked 3 in a row, some months ago)

Avrdude has error in communications some 1 of 3 attempts, and at some of them, kindly asks if I want to rewrite fuse(s) that "was 0 and now is xx" Y/N...

answering Y here, and if communications now happens to work, will do it.

 

Have no idea how what has happended.

 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

clawson wrote:

Easier still. Take a new 48/88/168/328 out of the tube. Program the CKOUT fuse. Job done. 

 

Yes, works fine, I was thinking a sub-dollar chip... wink

Wagner Lipnharski
Orlando Florida USA

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Yes and I just realized that ist very hard getting the legs back to resurrect the chip, when you cut them   I have work coming  ;)