Go Down

Topic: Might have fried my chip need help (Read 1 time) previous topic - next topic

otkaz

Hi I'm new to using micro controllers. I've built a breadboard arduino with an atmega328p and a dapa parallel programmer. I was in the middle of uploading a sketch when a stray wire bumped into the programmer interrupting it. Now I can't get the chip to respond. Here is the output from avrdude.
Code: [Select]
avrdude -p m328p -c dapa

avrdude: AVR device not responding
avrdude: initialization failed, rc=-1
         Double check connections and try again, or use -F to override
         this check.


avrdude done.  Thank you.

Code: [Select]
avrdude -p m328p -c dapa -v -v

avrdude: Version 5.10, compiled on Mar 23 2010 at 21:36:40
         Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
         Copyright (c) 2007-2009 Joerg Wunsch

         System wide configuration file is "/etc/avrdude.conf"
         User configuration file is "/home/otkaz/.avrduderc"
         User configuration file does not exist or is not a regular file, skipping

         Using Port                    : /dev/parport0
         Using Programmer              : dapa
         AVR Part                      : ATMEGA328P
         Chip Erase delay              : 9000 us
         PAGEL                         : PD7
         BS2                           : PC2
         RESET disposition             : dedicated
         RETRY pulse                   : SCK
         serial program mode           : yes
         parallel program mode         : yes
         Timeout                       : 200
         StabDelay                     : 100
         CmdexeDelay                   : 25
         SyncLoops                     : 32
         ByteDelay                     : 0
         PollIndex                     : 3
         PollValue                     : 0x53
         Memory Detail                 :

                                  Block Poll               Page                       Polled
           Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           eeprom        65     5     4    0 no       1024    4      0  3600  3600 0xff 0xff
           flash         65     6   128    0 yes     32768  128    256  4500  4500 0xff 0xff
           lfuse          0     0     0    0 no          1    0      0  4500  4500 0x00 0x00
           hfuse          0     0     0    0 no          1    0      0  4500  4500 0x00 0x00
           efuse          0     0     0    0 no          1    0      0  4500  4500 0x00 0x00
           lock           0     0     0    0 no          1    0      0  4500  4500 0x00 0x00
           calibration    0     0     0    0 no          1    0      0     0     0 0x00 0x00
           signature      0     0     0    0 no          3    0      0     0     0 0x00 0x00

         Programmer Type : PPI
         Description     : Direct AVR Parallel Access cable
           VCC     = 3
           BUFF    =  (not used)
           RESET   = 16
           SCK     = 1
           MOSI    = 2
           MISO    = 11
           ERR LED = 0
           RDY LED = 0
           PGM LED = 0
           VFY LED = 0

avrdude: Calibrating delay loop... calibrated to 263 cycles per us
bitbang_cmd(): [ AC 53 00 00 ] [ FF FF FF FF ]
bitbang_cmd(): [ AC 53 00 00 ] [ FF FF FF FF ]
bitbang_cmd(): [ AC 53 00 00 ] [ FF FF FF FF ]
bitbang_cmd(): [ AC 53 00 00 ] [ FF FF FF FF ]
bitbang_cmd(): [ AC 53 00 00 ] [ FF FF FF FF ]
bitbang_cmd(): [ AC 53 00 00 ] [ FF FF FF FF ]
bitbang_cmd(): [ AC 53 00 00 ] [ FF FF FF FF ]
bitbang_cmd(): [ AC 53 00 00 ] [ FF FF FF FF ]
bitbang_cmd(): [ AC 53 00 00 ] [ FF FF FF FF ]
bitbang_cmd(): [ AC 53 00 00 ] [ FF FF FF FF ]
bitbang_cmd(): [ AC 53 00 00 ] [ FF FF FF FF ]
bitbang_cmd(): [ AC 53 00 00 ] [ FF FF FF FF ]
bitbang_cmd(): [ AC 53 00 00 ] [ FF FF FF FF ]
bitbang_cmd(): [ AC 53 00 00 ] [ FF FF FF FF ]
bitbang_cmd(): [ AC 53 00 00 ] [ FF FF FF FF ]
bitbang_cmd(): [ AC 53 00 00 ] [ FF FF FF FF ]
bitbang_cmd(): [ AC 53 00 00 ] [ FF FF FF FF ]
bitbang_cmd(): [ AC 53 00 00 ] [ FF FF FF FF ]
bitbang_cmd(): [ AC 53 00 00 ] [ FF FF FF FF ]
bitbang_cmd(): [ AC 53 00 00 ] [ FF FF FF FF ]
bitbang_cmd(): [ AC 53 00 00 ] [ FF FF FF FF ]
bitbang_cmd(): [ AC 53 00 00 ] [ FF FF FF FF ]
bitbang_cmd(): [ AC 53 00 00 ] [ FF FF FF FF ]
bitbang_cmd(): [ AC 53 00 00 ] [ FF FF FF FF ]
bitbang_cmd(): [ AC 53 00 00 ] [ FF FF FF FF ]
bitbang_cmd(): [ AC 53 00 00 ] [ FF FF FF FF ]
bitbang_cmd(): [ AC 53 00 00 ] [ FF FF FF FF ]
bitbang_cmd(): [ AC 53 00 00 ] [ FF FF FF FF ]
bitbang_cmd(): [ AC 53 00 00 ] [ FF FF FF FF ]
bitbang_cmd(): [ AC 53 00 00 ] [ FF FF FF FF ]
bitbang_cmd(): [ AC 53 00 00 ] [ FF FF FF FF ]
bitbang_cmd(): [ AC 53 00 00 ] [ FF FF FF FF ]
bitbang_cmd(): [ AC 53 00 00 ] [ FF FF FF FF ]
bitbang_cmd(): [ AC 53 00 00 ] [ FF FF FF FF ]
bitbang_cmd(): [ AC 53 00 00 ] [ FF FF FF FF ]
bitbang_cmd(): [ AC 53 00 00 ] [ FF FF FF FF ]
bitbang_cmd(): [ AC 53 00 00 ] [ FF FF FF FF ]
bitbang_cmd(): [ AC 53 00 00 ] [ FF FF FF FF ]
bitbang_cmd(): [ AC 53 00 00 ] [ FF FF FF FF ]
bitbang_cmd(): [ AC 53 00 00 ] [ FF FF FF FF ]
bitbang_cmd(): [ AC 53 00 00 ] [ FF FF FF FF ]
bitbang_cmd(): [ AC 53 00 00 ] [ FF FF FF FF ]
bitbang_cmd(): [ AC 53 00 00 ] [ FF FF FF FF ]
bitbang_cmd(): [ AC 53 00 00 ] [ FF FF FF FF ]
bitbang_cmd(): [ AC 53 00 00 ] [ FF FF FF FF ]
bitbang_cmd(): [ AC 53 00 00 ] [ FF FF FF FF ]
bitbang_cmd(): [ AC 53 00 00 ] [ FF FF FF FF ]
bitbang_cmd(): [ AC 53 00 00 ] [ FF FF FF FF ]
bitbang_cmd(): [ AC 53 00 00 ] [ FF FF FF FF ]
bitbang_cmd(): [ AC 53 00 00 ] [ FF FF FF FF ]
bitbang_cmd(): [ AC 53 00 00 ] [ FF FF FF FF ]
bitbang_cmd(): [ AC 53 00 00 ] [ FF FF FF FF ]
bitbang_cmd(): [ AC 53 00 00 ] [ FF FF FF FF ]
bitbang_cmd(): [ AC 53 00 00 ] [ FF FF FF FF ]
bitbang_cmd(): [ AC 53 00 00 ] [ FF FF FF FF ]
bitbang_cmd(): [ AC 53 00 00 ] [ FF FF FF FF ]
bitbang_cmd(): [ AC 53 00 00 ] [ FF FF FF FF ]
bitbang_cmd(): [ AC 53 00 00 ] [ FF FF FF FF ]
bitbang_cmd(): [ AC 53 00 00 ] [ FF FF FF FF ]
bitbang_cmd(): [ AC 53 00 00 ] [ FF FF FF FF ]
bitbang_cmd(): [ AC 53 00 00 ] [ FF FF FF FF ]
bitbang_cmd(): [ AC 53 00 00 ] [ FF FF FF FF ]
bitbang_cmd(): [ AC 53 00 00 ] [ FF FF FF FF ]
bitbang_cmd(): [ AC 53 00 00 ] [ FF FF FF FF ]
bitbang_cmd(): [ AC 53 00 00 ] [ FF FF FF FF ]
avrdude: AVR device not responding
avrdude: initialization failed, rc=-1
         Double check connections and try again, or use -F to override
         this check.


avrdude done.  Thank you.

Code: [Select]
avrdude -p m328p -c dapa -F

avrdude: AVR device not responding
avrdude: initialization failed, rc=-1
avrdude: AVR device initialized and ready to accept instructions
avrdude: Device signature = 0x000000
avrdude: Yikes!  Invalid device signature.
avrdude: Expected signature for ATMEGA328P is 1E 95 0F

avrdude done.  Thank you.

I can program another chip so I know the programmer is fine.

otkaz

Anyone think a high voltage programmer might remedy this?

CrossRoads

I think it might. Can do a whole chip erase & start over.
Designing & building electrical circuits for over 25 years.  Screw Shield for Mega/Due/Uno,  Bobuino with ATMega1284P, & other '328P & '1284P creations & offerings at  my website.

otkaz

I've been looking for a good diy high voltage programmers. Not too much out on the net for the atmega series seems like most are designed for the attinys. This one looks promising http://mightyohm.com/blog/2008/09/arduino-based-avr-high-voltage-programmer/ but the sketch seems to only reset fuses doesn't do a full erase. A newer version of his board does, but it also takes a lot more components that I don't have readily available. I might try building it on a breadboard and seeing if I can change the sketch to do a full erase, but wanted to ask if anyone has a suggestion on a quick basic easy design that can do a full erase? I'm not familiar with setting fuses or doing a full erase yet. Is there a good source of information I should read about how the high voltage erase process works before attempting all this?

CrossRoads

"good source of information I should read about how the high voltage erase process works"
Section 25-26-27 of the data sheet have all the details.
http://www.atmel.com/dyn/resources/prod_documents/doc8271.pdf
27.6 & 27.7 in particular.
Designing & building electrical circuits for over 25 years.  Screw Shield for Mega/Due/Uno,  Bobuino with ATMega1284P, & other '328P & '1284P creations & offerings at  my website.

HugoPT

Hello dude
You must try to burn the firmware on it again
It already happen to me trying some crazy sketchs and them the atmega gets stuck and never more alow uploads
Use this tuturial
I have used it alots of times on arduino Duemilanove with atmega 328P
If you have any questions just reply

http://www.geocities.co.jp/arduino_diecimila/bootloader/index_en.html
Debian,Mint,Ubuntu
Arduino Mega 2560
Arduino Nano
Arduino Duemilanove
MAC OS Montain Lion
Raspberry PI Model B

CrossRoads

Yes, that works nicely.
There's a few steps involved in getting it setup: downloading, unzipping, moving files, and adding the pins to your duemilanove.
I have one set up now  and have loaded bootloaders onto blank parts from mouser.com

If the OP does not have a duemilanove, then I Think this board
http://store.yahoo.com/yhst-27389313707334/ftusbtouabrb.html (access is blocked for me at work)
breaks out the needed signals from the FTDI chip so that a atmega328 on a breadboard could be programmed as if it were a duemilanove. Check the duemilanove schematic against this one to be sure.

Or just geta duemilanove and set it up to use a programmer.
Designing & building electrical circuits for over 25 years.  Screw Shield for Mega/Due/Uno,  Bobuino with ATMega1284P, & other '328P & '1284P creations & offerings at  my website.

Go Up