Author Topic: Bricked atmega 1284 with avrdude! Can it be saved?  (Read 2676 times)

0 Members and 1 Guest are viewing this topic.

Offline belzrebuthTopic starter

  • Frequent Contributor
  • **
  • Posts: 484
  • Country: gr
Re: Bricked atmega 1284 with avrdude! Can it be saved?
« Reply #25 on: October 14, 2022, 04:04:19 pm »
I didn't know about -B option, regardless I still get the same response even with -B 300..
if the RESETDISABLE fuse is set, then you need high voltage programmer, this thread might give some tips... https://www.avrfreaks.net/forum/reset-disable-preventing-serial-programming with this anomaly, i'll bring up my ISP Mk2 programmer instead of avrdude. your general purpose programmer TL866A + Func Gen may give some more light if you dont have Mk2.. set ISP freq to much slower KHz while clock is in MHz range. disconnect everything from the MCU except programmer, fg (clock) and power supply. ymmv.

I have a ISP Mk2 as well. I think it only works with atmel studio tho, I need to change the driver for it or flash it with another firmware.
I used to have the mk2 for the atmel studio (university stuff) and the usbtiny for avrdude (home stuff) and I ended up only using the usbtiny for everything.
I can find  my MK2 if needed no problem.
How do I change the ISP frequency of TL866, I don't see any option for it.
 

Offline Mechatrommer

  • Super Contributor
  • ***
  • Posts: 11694
  • Country: my
  • reassessing directives...
Re: Bricked atmega 1284 with avrdude! Can it be saved?
« Reply #26 on: October 14, 2022, 04:32:06 pm »
How do I change the ISP frequency of TL866, I don't see any option for it.
i'm not sure with your tools. but avr (now microchip) studio we can change isp frequency. i have newer TL866II, but i only used it once to read a flash's memory, nothing more. what i know is different adapter is needed to read/progam avr mcu. if all tools/aspects are tried and still failed, maybe its the RESETDISABLE fuse, beyond that, the mcu maybe fried and the fix is $8 ;D... ymmv
Nature: Evolution and the Illusion of Randomness (Stephen L. Talbott): Its now indisputable that... organisms “expertise” contextualizes its genome, and its nonsense to say that these powers are under the control of the genome being contextualized - Barbara McClintock
 

Offline belzrebuthTopic starter

  • Frequent Contributor
  • **
  • Posts: 484
  • Country: gr
Re: Bricked atmega 1284 with avrdude! Can it be saved?
« Reply #27 on: October 14, 2022, 05:06:49 pm »
It's not the $8; it's that they're always backordered and the delivery dates are insane..
I'll see what I can do; I believe it's only a matter of high voltage programming.

It's not my first fail with AVR devices; I've goofed up the fuses a lot of times in the past and it always a DIP package so I revived it without ever messing with all of this.
It was just a matter of plugging it into the TL866 and by hitting "program" with the check ID option unchecked; the fuses were restored and the chip was back to action.
I never tried that procedure with ICSP but apparently it doesn't work.
That's why I'm asking which pins are necessary to perform a high voltage parallel programming; maybe I could just bite the bullet and solder 40 cables in a couple of 20pin headers and be done with it.
More often than not time spent just talking about something is more than the actual time to do it..
 

Offline belzrebuthTopic starter

  • Frequent Contributor
  • **
  • Posts: 484
  • Country: gr
Re: Bricked atmega 1284 with avrdude! Can it be saved?
« Reply #28 on: October 14, 2022, 05:47:32 pm »
An update:
I just included -B 123 without any external clock and got this:
Code: [Select]
avrdude -c usbtiny -p m1284p -F  -B 123

avrdude: AVR device initialized and ready to accept instructions

Reading | ################################################## | 100% 0.07s

avrdude: Device signature = 0x1e9706
avrdude: Expected signature for ATMEGA1284P is 1E 97 05

avrdude: safemode: Fuses OK

avrdude done.  Thank you.
:wtf:
 

Offline belzrebuthTopic starter

  • Frequent Contributor
  • **
  • Posts: 484
  • Country: gr
Re: Bricked atmega 1284 with avrdude! Can it be saved?
« Reply #29 on: October 14, 2022, 08:04:29 pm »
The chip now works even with a 20MHz I don't know what was causing this.

I consistenly get this error though :
avrdude: verifying ...
avrdude: verification error, first mismatch at byte 0x10000
         0xff != 0xb2
avrdude: verification error; content mismatch

The error stays the same even with a different firmware so I hope it's not a hardware problem...
edit: I tried burning a MightyCore bootloader and it works so the chip is okay. There might be something wrong with the firmware I'm trying to upload.
« Last Edit: October 14, 2022, 08:18:26 pm by belzrebuth »
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf