| Author |
Message |
ctownsend
Joined: 27 Nov 2004 Posts: 301 Helped: 21 Location: Canada
|
09 May 2009 14:36 avr isp programming failed |
|
|
|
|
| simpsonss wrote: |
hi ctownsend,
i'm facing this problem too. i have a labtool with me. But how am i gonna erase all the fuse bit? i try to execute the erase option but still not working.
thank you. |
Which avr are you using?
why don't you look at the datasheet?
|
|
| Back to top |
|
 |
ckeays
Joined: 17 May 2009 Posts: 1
|
17 May 2009 21:25 clsel reset atmega8 |
|
|
|
|
I got this programmer here to fix my attiny2313.
http://www.microcontrollerprog.com/
No matter what I do, I always seem to corrupt the fuse, and then the program cannot program it again. I am always careful but it seems not enough.
The programmer fixed the attiny easy.
|
|
| Back to top |
|
 |
yv4hn
Joined: 01 Jun 2009 Posts: 1
|
05 Jun 2009 14:16 spien atmega88 |
|
|
|
|
| ctownsend wrote: |
| imam.sumarsono wrote: |
5. (This is the inportant thing that must do)
touch XTAL1 (and also) XTAL2 using your finger
and at the same time click "write" ....
6. ATMEGA8 can write the program again.
regards,
-Imam- |
you've gotta be kidding! |
Yes, agree with imam, I did it and bring back two attiny2313 to live, and going to try on dead atmega8 too. This method realy works! no need for fancy oscilator and cd boot things, just set the ponyprog to default fuse, touch the xtal pin and BAM! it works like charm!
tips: click retry button if your uc didn't reset on the first time and keep touching the xtal pins.
|
|
| Back to top |
|
 |
imam.sumarsono
Joined: 29 Apr 2009 Posts: 9
|
06 Jun 2009 13:17 attiny2313 restore fuse |
|
|
|
|
| yv4hn wrote: |
| ctownsend wrote: |
| imam.sumarsono wrote: |
5. (This is the inportant thing that must do)
touch XTAL1 (and also) XTAL2 using your finger
and at the same time click "write" ....
6. ATMEGA8 can write the program again.
regards,
-Imam- |
you've gotta be kidding! |
Yes, agree with imam, I did it and bring back two attiny2313 to live, and going to try on dead atmega8 too. This method realy works! no need for fancy oscilator and cd boot things, just set the ponyprog to default fuse, touch the xtal pin and BAM! it works like charm!
tips: click retry button if your uc didn't reset on the first time and keep touching the xtal pins. |
Thanks yv4hn, you are right!!
|
|
| Back to top |
|
 |
ginorosi
Joined: 05 Jun 2009 Posts: 4
|
10 Jun 2009 13:11 fbprg16.exe attiny2313 |
|
|
|
|
Sorry, but you get the programmer to direct a parallel atmega168p locked to reprogram the fuse bits?
I have 2 atmega168p 1 which is working with the latest program and put the other not, but neither connects with avrdude via a usb connection with Arduino -> isp, same with 328p Atmega working.
And what and 'the type of high voltage parallel programmer?
thanks
|
|
| Back to top |
|
 |
ctownsend
Joined: 27 Nov 2004 Posts: 301 Helped: 21 Location: Canada
|
10 Jun 2009 15:41 avr fuse recover |
|
|
|
|
| ginorosi wrote: |
Sorry, but you get the programmer to direct a parallel atmega168p locked to reprogram the fuse bits?
I have 2 atmega168p 1 which is working with the latest program and put the other not, but neither connects with avrdude via a usb connection with Arduino -> isp, same with 328p Atmega working.
And what and 'the type of high voltage parallel programmer?
thanks |
they are touching the device, (i am guessing by doing this they are creating a magical clock pulse) which if applied correctly will allow the avr to understand the spi commands, thus resetting the cksel fuses.
I myself do not believe this will allow reprogramming of your avr's fuses, especially if the device in question is one that has had the rstdisbl fuse programmed or the spien fuse erased.
The only REAL and reliable way is with a parallel programmer or a high voltage serial programmer (whichever method your avr supports)
I think (if I am not mistaken) some of the smaller attiny's only support high voltage serial programming, the rest of the avr family requires high voltage parallel programming.
| ckeays wrote: |
I got this programmer here to fix my attiny2313.
http://www.microcontrollerprog.com/
No matter what I do, I always seem to corrupt the fuse, and then the program cannot program it again. I am always careful but it seems not enough.
The programmer fixed the attiny easy. |
Looks like a pretty handy programmer to have around.
ckeays: If you are always corrupting the fuses, maybe you should buy an avrispmkII right from digi-key. You really can't go wrong for $30.
Last edited by ctownsend on 10 Jun 2009 15:47; edited 1 time in total |
|
| Back to top |
|
 |
ginorosi
Joined: 05 Jun 2009 Posts: 4
|
10 Jun 2009 15:46 fuse restore attiny13 |
|
|
|
|
Thanks, but which is' the kind of high voltage parallel programmer?
I did not understand it ....
Sorry for not perfect English but I am Italian and I am translating with google.
|
|
| Back to top |
|
 |
ctownsend
Joined: 27 Nov 2004 Posts: 301 Helped: 21 Location: Canada
|
10 Jun 2009 15:57 interface atmega8 to parallel port |
|
|
|
|
| ginorosi wrote: |
Thanks, but which is' the kind of high voltage parallel programmer?
I did not understand it ....
Sorry for not perfect English but I am Italian and I am translating with google. |
A parallel programmer is one that uses eight data lines for programming along with 6 signal lines and requires 12V applied to the reset input to invoke the parallel interface. An ISP programmer uses 3 signal/data lines and can be programmed in circuit with the same voltage the device is running on. (does not require 12V to rst pin)
You can search for
AVRDRAGON or STK500 programmers (both of which are very difficult to set up if you are new at this)
or
You can look at the site that ckeays mentioned above.
Beware that some sites sell programmers that work on your parallel port of your computer and are not "high Voltage Parallel Programmers".
|
|
| Back to top |
|
 |
ginorosi
Joined: 05 Jun 2009 Posts: 4
|
10 Jun 2009 16:23 attiny2313 fuse bits restoring |
|
|
|
|
Thank you, finally I understand what and 'high voltage programmer, I also found different patterns in the network, now realized this http://mightyohm.com/blog/2008/09/arduino-based-avr-high-voltage-programmer/ on a prototype card.
regards
|
|
| Back to top |
|
 |
atmega_guy
Joined: 30 May 2009 Posts: 1
|
14 Jun 2009 19:55 avr attiny2313 external clk recover fuse |
|
|
|
|
| ckeays wrote: |
I got this programmer here to fix my attiny2313.
http://www.microcontrollerprog.com/
No matter what I do, I always seem to corrupt the fuse, and then the program cannot program it again. I am always careful but it seems not enough.
The programmer fixed the attiny easy. |
Thanks for the tip.
I also got an atmega fuse programmer at
http://www.microcontrollerprog.com/
it works good. It fixed my chips fast. Now I am not afraid to program my atmega anymore.
|
|
| Back to top |
|
 |
pranam77
Joined: 22 Apr 2008 Posts: 1071 Helped: 94 Location: Mangalore(India)
|
15 Jun 2009 6:20 avr910 schematic |
|
|
|
|
| The solution for locked chips by imam.sumarsono really works. No need of spending for any unlocker. This simple trick works well for me too. I sucessfully opened 5-AT Mega 8 and 3 mega16's. Its really a worth try for all of us.
|
|
| Back to top |
|
 |
imam.sumarsono
Joined: 29 Apr 2009 Posts: 9
|
20 Jun 2009 2:26 atmega48 disable reset |
|
|
|
|
| pranam77 wrote: |
| The solution for locked chips by imam.sumarsono really works. No need of spending for any unlocker. This simple trick works well for me too. I sucessfully opened 5-AT Mega 8 and 3 mega16's. Its really a worth try for all of us. |
Yes, it is right, please click Report msg +5pts to my post...
|
|
| Back to top |
|
 |
Google AdSense

|
20 Jun 2009 2:26 Ads |
|
|
|
|
|
|
| Back to top |
|
 |
pranam77
Joined: 22 Apr 2008 Posts: 1071 Helped: 94 Location: Mangalore(India)
|
20 Jun 2009 6:45 original stk500 firmware fuse |
|
|
|
|
| imam.sumarsono wrote: |
| pranam77 wrote: |
| The solution for locked chips by imam.sumarsono really works. No need of spending for any unlocker. This simple trick works well for me too. I sucessfully opened 5-AT Mega 8 and 3 mega16's. Its really a worth try for all of us. |
Yes, it is right, please click Report msg +5pts to my post... |
I think there is nothing wrong in your post to report the same to the moderators and get 5 points. Any ways i have donated 5 points to you. Good luck.
|
|
| Back to top |
|
 |
iqbalz
Joined: 06 Jul 2009 Posts: 11 Location: Indonesia
|
07 Jul 2009 15:05 reset fuse bit for atemega atmel |
|
|
|
|
| ctownsend wrote: |
hook up an oscillator (not a crystal) to the clock line on the atmega.
(any freq, usually 4MHZ)
erase the device with your ISP program, then reprogram the CLSEL fuse.
The above works 99.99% of the time!
Good Luck |
I have done this method and it worked out succesfully. Thanks to CTOWNSEND...
While doin this I figured out something, there's 2 condition in locked ATMega.
1. Wrong fuse bit configuration
2. or It's really locked by bit locks.
For the first problem, you may hook up an oscillator then re-configure the fuse bits. I used AVR OSP II. Here's the configuration:
OxFF
OxDF
OxC1
(or so, if i am not forgot. you might try another confg)
The point is, you have to reset the input osc to internal clock from ATMega.
And the 2nd problem just do ctownsend's advice. Erase it with your ISP program, and reconfig the CLSEL.
I am a newbie by the way. Sorry if i am wrong..
|
|
| Back to top |
|
 |
ctownsend
Joined: 27 Nov 2004 Posts: 301 Helped: 21 Location: Canada
|
07 Jul 2009 16:49 atmega168 stk500 read signature error |
|
|
|
|
Iqbalz,
Glad to see it worked for you! You could just use the boot cd I created, it programs the fuses to factory settings.
I broke down and bought one of the programmers mentioned above.
http://www.microcontrollerprog.com/
I originally built a parallel programmer of my own, but there were just too many wires. The blue board is a nice neat design. (it was only $30) It is a lot easier, less time consuming (and more reliable) than messing around with wires, especially when you only got ONLY ONE Atmega you cannot afford to lose on a weekend, in the evening or a holiday when no Atmel distributors are open for business where you cannot buy another one!
I had some attiny2313's where the RSTDISBL fuse was programmed, so the parallel programmer was necessary. The CD I created would not be able to reset the device in order to program the fuses.
Good Luck!
|
|
| Back to top |
|
 |
iqbalz
Joined: 06 Jul 2009 Posts: 11 Location: Indonesia
|
07 Jul 2009 18:33 atmel programming failed isp locked |
|
|
|
|
Hi ctownsend, thanks for your further advice...
But right now, i still prefer to use your old method cuz I have all the devices needed. I am still in college, lots of my friends are ATMega maniac. They still don't know how to unlock it though. Im sure your method could help them a lot. They used to dump it when it's locked. Though it's not really locked sometimes, just wrong fuse bit config. What a waste.. ^,^ haha...
|
|
| Back to top |
|
 |
ctownsend
Joined: 27 Nov 2004 Posts: 301 Helped: 21 Location: Canada
|
07 Jul 2009 21:27 recover fuse attiny2313 |
|
|
|
|
| iqbalz wrote: |
| They used to dump it when it's locked. Though it's not really locked sometimes, just wrong fuse bit config. What a waste.. ^,^ haha... |
That is a waste! Easy to fix, shame to throw it out! Some of these atmega's are $20 or more! (depending on where you live & your currency) This does not include shipping cost.
|
|
| Back to top |
|
 |
iqbalz
Joined: 06 Jul 2009 Posts: 11 Location: Indonesia
|
08 Jul 2009 17:52 сброс fuses atmega |
|
|
|
|
| no, it's not that expensive. Here in my country (Indonesia) ATMega is popular. We usually use ATMega8, ATMega8535, and ATMega16. About US$ 2-4 each.
|
|
| Back to top |
|
 |
badre2911
Joined: 29 Jul 2009 Posts: 3
|
29 Jul 2009 22:56 atmega16 isp disabled |
|
|
|
|
hi,
i have atmega128 locked, i have tested with stk500 parrallel programma but failed, a window appear showing the clock div etc ..
i have tested with program show in this forum with a cable parrallel and isp connected in my dev board and fail (can't sync).
my atmega is solder cms in a devboard, touch xtal1 with finger is impossible.
How can i dow please, must be buy another devboard ?
thanks for your response
|
|
| Back to top |
|
 |
badre2911
Joined: 29 Jul 2009 Posts: 3
|
30 Jul 2009 15:49 atmega8 fuses repair programer |
|
|
|
|
| any idea ?
|
|
| Back to top |
|
 |
pranam77
Joined: 22 Apr 2008 Posts: 1071 Helped: 94 Location: Mangalore(India)
|
30 Jul 2009 16:20 atmel programming failed isp |
|
|
|
|
| badre2911 wrote: |
hi,
i have atmega128 locked, i have tested with stk500 parrallel programma but failed, a window appear showing the clock div etc ..i have tested with program show in this forum with a cable parrallel and isp connected in my dev board and fail (can't sync).my atmega is solder cms in a devboard, touch xtal1 with finger is impossible.How can i dow please, must be buy another devboard ?
thanks for your response |
If the chip is locked due to a wrong fuse settings, probably you can open it with various techniques mentioned here as many have found one or the other technique as usefull. But if the chip is damaged due to some reason, there is no way getting it right. Confirm your chip is ok and it is only the wrong fuse settings you need to reset. Good luck
|
|
| Back to top |
|
 |
badre2911
Joined: 29 Jul 2009 Posts: 3
|
30 Jul 2009 19:54 entering programming mode failed atmega88 stk500 |
|
|
|
|
i think my atmega128 is not damaged because i can read with high voltage parralel with stk500, but i can't programmed it via stk500 (failed to entering programming),
when i attempt to change fuse or clock in the stk500 when i click to program in high voltage parrallel an error occurs from stk500 (entering programm failed).
i have avrisp mkii and is a same, i have tested with ponyprog and parrallel cable and is a same.
i can erase device and reset but not programmed it.
all lock bits is ok.
why in mode high voltage parrallel is not possible to retrieve my device ?
how can i do if my device is hs ?
Thanks in advance.
Added after 2 hours 21 minutes:
its ok now, i have appliqued a crystal 4Mhz in the pcb in parrallel of quartz from pcp and i have programmed fuse and now is ok.
Thanks.
|
|
| Back to top |
|
 |
thegameabh
Joined: 28 Oct 2009 Posts: 2 Location: Belgaum,India
|
30 Oct 2009 13:29 Locked Atmega ... |
|
|
|
|
@ctownsend:
is it ok to use an external rc oscillator(as per atmega32 datesheet,with capacitor between xtal1 and gnd and R connected to vcc) to revive d fused avr by your method???
will it work? since i cant use a crystal osci also...
pls advise....
thanks in advance
|
|
| Back to top |
|
 |
ctownsend
Joined: 27 Nov 2004 Posts: 301 Helped: 21 Location: Canada
|
31 Oct 2009 13:12 Re: Locked Atmega ... |
|
|
|
|
| thegameabh wrote: |
@ctownsend:
is it ok to use an external rc oscillator(as per atmega32 datesheet,with capacitor between xtal1 and gnd and R connected to vcc) to revive d fused avr by your method???
will it work? since i cant use a crystal osci also...
pls advise....
thanks in advance |
no, you have to use an oscillator. If you don't have an oscillator, you can input a square wave to xtal1. Any frequency will work from 40Khz to 1 MHz.
You can program another avr (if you have one) to output a square wave on one of the pins.
Now if the rstdisbl fuse is programmed, or the spien fuse has not been programmed, the only way is a parallel programmer.
I broke down and bought this parallel programmer that repairs the fuses in one second. It works good, i use it all the time.
see:
www.microcontrollerprog.com
the other day I don't know how it happened, but simply programming the fuses in an atmega8, it crashed. (suddenly can't read chip signature)
I just inserted the chip in the fuse repair programmer, and it was fixed instantly.
I was going to attempt to build an avr High Voltage Parallel programmer myself, but there are many wires to run (too many for a homemade single sided board)
It is nice to have a professional board ready for emergencies.
Good Luck
|
|
| Back to top |
|
 |
thegameabh
Joined: 28 Oct 2009 Posts: 2 Location: Belgaum,India
|
07 Nov 2009 18:49 Locked Atmega ... |
|
|
|
|
thanks ctownsend!!!!!!!!! we were finally able to revive the avr wid ur fuse repair prgram from dos!!
The problem we have now is i am able to program d controller from Ponyprog but not from Imagecraft's ICC AVR. it doesnt detect the avr..Does ICCAVR have any issues wid revived avr's???
thanks
|
|
| Back to top |
|
 |
ctownsend
Joined: 27 Nov 2004 Posts: 301 Helped: 21 Location: Canada
|
08 Nov 2009 13:10 Re: Locked Atmega ... |
|
|
|
|
| thegameabh wrote: |
thanks ctownsend!!!!!!!!! we were finally able to revive the avr wid ur fuse repair prgram from dos!!
The problem we have now is i am able to program d controller from Ponyprog but not from Imagecraft's ICC AVR. it doesnt detect the avr..Does ICCAVR have any issues wid revived avr's???
thanks |
it is difficult to troubleshoot your problem without a schematic diagram of each of your programmers.
does the imagecraft programmer use the parallel port? Are you using windows?
Did this programmer ever work before on your computer? Does the programmer supply a clock signal to the microcontroller?
|
|
| Back to top |
|
 |