Rejoice! I just bricked my first AVR!

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

While devising ways to get a stable and reliable timer source for my ATtiny2313 and realizing that I could recycle the /RESET pin as a regular I/O pin in order to have T1 (PD5) free, I absentmindedly flashed the fuses to activate RSTDISBL. Let's just say that now I know that that wire from the ISP connector isn't there just because it looks cute. ;)

So fellow newbies beware: RSTDISBL is potentially destructive, and you need to go for the high voltage programming. In my case I'm just pretending I lost a few coins off my wallet, as I have no such programmer nor I have the desire to build myself one (it looks quite complicated, from what I've seen).

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

Au ma che fai??? :)

Is it a PDIP? Does anyone you know have a STK500 or a Dragon?

John Samperi

Ampertronics Pty. Ltd.

https://www.ampertronics.com.au

* Electronic Design * Custom Products * Contract Assembly

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

jollino wrote:
So fellow newbies beware: RSTDISBL is potentially destructive ...

If you program under AVRStudio, you get a warning message, if you try to disable the reset pin fuse.

jollino wrote:

... and you need to go for the high voltage programming.

No.

If you burn a bootloader into the AVR at first, you can use the reset pin as IO and still reprogram the Flash.

Especially on the small ATtiny13..85 it is very useful, if you have all 6 IOs available for the application.

Peter

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

js wrote:
Au ma che fai??? :)

Is it a PDIP? Does anyone you know have a STK500 or a Dragon?

Italiano? :D

Yes, it's a PDIP but I don't know *anyone* in my area that works with AVRs (or with microcontrollers in general). Just think that to get ahold of the chips I have, I had to order them at a store near here and it took a month for them to arrive. In the meantime I had gotten a few from Distrelec... :)

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

danni wrote:
If you program under AVRStudio, you get a warning message, if you try to disable the reset pin fuse.

Unfortunately I don't use AVRStudio, I'm on OS X and I use the MacAvrSomething package (I originally installed avrdude and avr-gcc + various things through MacPorts, but they are not up-to-date). I just used "write hfuse 0 {whatever}" in avrdude's terminal, and it worked perfectly... until I quit it and tried to access it again. Ah well. :)

danni wrote:
If you burn a bootloader into the AVR at first, you can use the reset pin as IO and still reprogram the Flash.

Especially on the small ATtiny13..85 it is very useful, if you have all 6 IOs available for the application.

Could you give me any pointers about this, please? I'm a little confused. The tinies do not have a bootloader proper, as far as I know. Do you mean writing some sort of "handmade" bootloader to manually receive data on the lines and have it flash itself with it?

Thanks

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

Quote:
I don't know *anyone* in my area that works with AVRs
And if you are south of Rome then you probably don't know anyone that works, full stop!! :lol: or have things changed in the past 40 years?

Maybe if you post here http://www.nntp.it/hobby-elettro... someone may be near enough to help. If you have to drive anywhere of course it will be cheaper throwing the chip away wit the price of petrol.

John Samperi

Ampertronics Pty. Ltd.

https://www.ampertronics.com.au

* Electronic Design * Custom Products * Contract Assembly

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

It's really not a big deal. :) I made worse messes than frying up a 3-euro chip: just a few days ago I was happily soldering a 40-pin LCD display, only to realize that I soldered the lower row of pin backwards as the table on the datasheet has both rows described in the same direction, while obviously the pins are positioned anti-clockwise. I'm going to try to desolder it at some point and see if I can at least recover the display. :D

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

jollino wrote:

Could you give me any pointers about this, please? I'm a little confused. The tinies do not have a bootloader proper, as far as I know. Do you mean writing some sort of "handmade" bootloader to manually receive data on the lines and have it flash itself with it?

https://www.avrfreaks.net/index.p...

The source of the PC tool was included, maybe you can adapt the UART functions to your OS.
Also since I used a very old compiler, there are some awkward helper functions to access above 64kB RAM.

Peter

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

Wow Peter, that is cool. I'll have to try that! Thanks.