I created a programmer definition in avrdude.conf. I am using Win XP, and have had to start giveio.sys to make AVRdude to access the parallel port. The pins that I've used on the DB25 connector are 5,6,7 and 8 (GND is on pins 18 thru 25), so my programmer is similar to the one you use. I saw some articles about AVRdude and PPI programmers, and they say that sometimes brand new AVR chips have problems with fuses configuration so microcontroller can not enter programming mode. I have to try using "-v" option to see data transferred. Another possible problem would be the parallel port configuration. I will try the following: Start -> Settings -> Control Panel -> System -> Hardware -> Device Manager -> Ports -> LPT1 -> Properties -> disable "Legacy Plug n Play Detection" At this point I think the cause of this problems is fuses configuration or parallel port configuration. Jose --- wbounce <wbounce@safeplace.net> escribió: > > Those are the 5 pins you need. On my cable I have > the following > Grnd <- 18 > MISO <- 10 > MOSI <- 9 > SCK <- 8 > RESET <- 7 > > And for the makefile paramters > MCU = atmega128 > AVRDUDE_PROGRAMMER = bsd > AVRDUDE_PORT = lpt1 > > AVRDUDE_WRITE_FLASH = -U flash:w:$(TARGET).hex > AVRDUDE_FLAGS = -p $(MCU) -P $(AVRDUDE_PORT) -c > $(AVRDUDE_PROGRAMMER) > > Which is basically > Avrdude -p atmega128 -P lpt1 -c bsd -U > flash:w:$(TARGET).hex > Or just to test the connection you can use the -t > > Avrdude -p atmega128 -P lpt1 -c bsd -t > then type help > > > > > -----Original Message----- > From: Jose [mailto:josecarlosfuentes@yahoo.com.ar] > Sent: Friday, December 17, 2004 1:58 PM > To: AVR-Chat@yahoogroups.com > Subject: [AVR-Chat] Re: AVRdude - initialization > failed > > > > > Since I am using a parallel programmer, and I > already used it with > AEC ISP software to program AT89S8252, I am sure it > works fine (it > just a cable that connects MISO, MOSI, SCK, RST and > GND to the > parallel port). > I checked continuity from the DB25 connector to the > ATmega16 > programming pins, and everything is ok. Also, I > verified the power > (5V). > I will check again the board circuit and the > parallel port > configuration. > > Regards, > Jose > > --- In AVR-Chat@yahoogroups.com, "Kenna" > <wbounce@s...> wrote: > > I use it. I do not have a 16 but a 128 so some > thing may be > different. > > First double check the continuity of your cable > end to end for > each wire. My most recent problem with this error > came from my > ground wire coming loose because the board was in a > different > orientation > > > > Second Check you battery power. With my 1st robot > I would get this > error if the 7.2 V battery was low. It would drop > under the voltage > required for the voltage regulator on the board and > so the board > work get < 5V. > > > > Third, after a long discussion someone set me > straight on what > pins are used. for the 128 it is Port B pin 1 for > SCK (clock) and > Port E pin 0 for PDI (input) and Port E pin 1 for > PDO (output) > > Check to see if you have anything external > connected to these. And > Maybe also your reset pin since the programmer needs > to pull reset > to ground for 20ms. > > > > Your mileage may vary. > > > > > > > > ---------- Original Message > ---------------------------------- > > From: "Jose" <josecarlosfuentes@y...> > > Reply-To: AVR-Chat@yahoogroups.com > > Date: Fri, 17 Dec 2004 17:31:21 -0000 > > > > > > > > > > >Does anybody use AVRdude software? I installed > it and tried to > > >program an ATmega16 using a PPI programmer. But > AVRdude shows > the > > >following error message: > > > > > > avrdude: AVR device not responding > > > avrdude: initialization failed, rc=-1 > > > Double check connections and try > again, or use -F to > > >override > > > this check. > > > > > > > > >I checked all the connections and they seems ok. > Since this is > my > > >first AVR board I have no clue about the cause of > this failure. > > > > > >Regards, > > >Jose > > > > > > > > > > > Yahoo! Groups Links > > > > > > > > > > > ------------------------ Yahoo! Groups Sponsor > --------------------~--> > $4.98 domain names from Yahoo!. Register anything. > http://us.click.yahoo.com/Q7_YsB/neXJAA/yQLSAA/dN_tlB/TM > --------------------------------------------------------------------~-> > > > > Yahoo! Groups Links > > > AVR-Chat-unsubscribe@yahoogroups.com > > > > > > ___________________________________________________________ 250MB gratis, Antivirus y Antispam Correo Yahoo!, el mejor correo web del mundo http://correo.yahoo.com.ar
Message
RE: [AVR-Chat] Re: AVRdude - initialization failed
2004-12-18 by Jose Fuentes
Attachments
- No local attachments were found for this message.