PDA

View Full Version : AVR DEVICE NOT RESPONDING..plz help



mandvi_87
07-09-2009, 04:11 PM
WE ARE USING ATMEGA8L FOR PROGRAMMING ON READY MADE PCB.
WE ARE GETTING AN ERROR WHILE LOADING THE PROGRAM AS :


> "make.exe" program
avrdude -p atmega8 -P com1 -c ponyser -U

flash:w:main.hex

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.

make.exe: *** [program] Error 1

> Process Exit Code: 2
> Time Taken: 00:01

WE HAVE BEEN DEALIN WITH THE FUSE AND OTHER SETTINGS TO RUN THE PROGRAM BUT ALL IN VEIN!

ITS VERY SURPRIZING THAT ITS SHOWING THE SAME ERROR EVEN WITHOUT THE POWER SUPPLY

plz suggest sumthin.

vikas
07-09-2009, 04:29 PM
Have u checked the connection ? Checked the programmer ? There can be a lot of things that can go wrong.


Start by checking the circuit. Which programmer are you using ? self made or off the shelf ?

asimov_18
07-10-2009, 10:03 PM
Hi there,
I need to know is ur USBASP programming running on an ATMEGA8L micro controller or r u trying to program an ATMEGA8L Uc. This is because USBASP can program ATMEGA8L but runs (the programming board) on an ATMEGA8 there is a diffrence between the two .


secondly try using and other GUI software for programming eg: Progisp
(google it out).

asimov

mandvi_87
07-11-2009, 10:31 AM
we have used " ponyser" programmer...... and we have checked the circuit/connection..... n we didnt found ny problem in tht....

vikas
07-11-2009, 11:12 AM
Are you using a USB to serial then itll not work , Most such serial programmers dont work.

Also serial programmer have other related issues as not generating the correct voltages for programming etc.On older PC's it might have worked fine.

A USB programmer is recommended any day.

asimov_18
07-12-2009, 12:55 AM
TRY USBASP its USB and for free!!!!long live GNU!!!!!!

asimov

rao
07-16-2009, 02:12 AM
Debug info

If you get:
avrdude -p atmega164p -P com1 -c ponyser -V -U flash:w:test1.hex

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.

make: *** [program] Fel 1

Compilation exited abnormally with code 2 at Fri May 30 02:40:40

Then you might need to lessen the load (increase the resistance) on your ISP pins (MOSI/MISO/etc). e.g. in my case from 150 Ohm to 1k.

# E.g. MISO,MOSI.. pins to LED's to 150 Ohm resistors to VCC won't work if you try to program at 5V, but will work if you run at 3V instead. And then again, if you change to 1k Ohm resistors it will work at 5V. Then I get

avrdude -p atmega164p -P com1 -c ponyser -V -U flash:w:test1.hex

avrdude: AVR device initialized and ready to accept instructions

Reading | ################################################## | 100% 0.02s

avrdude: Device signature = 0x1e940a
avrdude: NOTE: FLASH memory has been specified, an erase cycle will be performed
To disable this feature, specify the -D option.
avrdude: erasing chip
avrdude: reading input file "test1.hex"
avrdude: input file test1.hex auto detected as Intel Hex
avrdude: writing flash (260 bytes):

Writing | ################################################## | 100% 0.70s

avrdude: 260 bytes of flash written

avrdude done. Thank you.

Compilation finished at Fri May 30 02:52:59


taken from http://core.st/projects/Serial_programmer/index.html

Hope this helps

Rao