To All,
thanks for all your help. I tried several things, and
finally found out that although the cable, port
configuration and fuses were ok, the voltage at the
parallel port pins was not as high as needed by
ATmega16. It was Ok for AT89S8252 but not for AVR. I
assembled a STK200 programmer and it works fine with
AVRdude and PonyProg.
Regards,
Jose
--- wbounce <wbounce@safeplace.net> escribió:
>
> >From a discussion with Brian Dean earlier this week
> or last week he
> suggested as a last resort
>
> "Another common reason for not being able to enter
> programming mode is
> bad fuse bit values. And the most common problem
> there is setting the
> clock selection fuses to use an external clock
> instead of an external
> crystal or internal oscillator. If that's the case,
> try feeding an
> external TTL square wave signal of at least 1 MHz
> (no more than 16
> MHz) into the XTAL1 input, perhaps with a function
> generator or another
> AVR chip programmed to do that. While that is being
> fed, power up the
> board and try to enter program mode. If you can
> enter program mode,
> reset the fuses back to defaults and you should be
> good.
> "
>
> Fortunately for me my problem was my cable. If I did
> have to go that
> route I would have no way of generating a 1MHZ pulse
> on the pin. But I
> have clobbered my fuses in the past and had to reset
> them using the -t
> mode. But that only works if avrdude can get a
> connection.
>
> -----Original Message-----
> From: Jose Fuentes
> [mailto:josecarlosfuentes@yahoo.com.ar]
> Sent: Friday, December 17, 2004 8:56 PM
> To: AVR-Chat@yahoogroups.com
> Subject: RE: [AVR-Chat] Re: AVRdude - initialization
> failed
>
>
>
> 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.
> > > >
> > > >
>
=== message truncated ===
___________________________________________________________
250MB gratis, Antivirus y Antispam
Correo Yahoo!, el mejor correo web del mundo
http://correo.yahoo.com.ar