"dimax un" <[EMAIL PROTECTED]> wrote:

> The result is not good. I still get a delay and error message but
> also it stuck in Writing flash. See below. Running it second time
> did not produce error in USB device but it still got stuck in Flash
> writing.  ( BTW why expected signature for atmega -s FF FF FF. I
> have to use -F flag to work it around )

That looks as if you were using the wrong avrdude.conf file.  If you
run avrdude with -v, it will tell you which file it is using.  You can
always specify a particular avrdude.conf using the -C option.  The
ATmega128's device signature has been known to avrdude.conf for quite
a while now, so it's not supposed to be expected as FF FF FF.

I just tried that using the CVS version under FreeBSD:

$ ./avrdude -C avrdude.conf -p m128 -c avrispmkii -P usb -U 
~/src/avr-libc/doc/examples/demo/demo.hex 

avrdude: AVR device initialized and ready to accept instructions

Reading | ################################################## | 100% 0.01s

avrdude: Device signature = 0x1e9702
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 
"/home/joerg/src/avr-libc/doc/examples/demo/demo.hex"
avrdude: input file /home/joerg/src/avr-libc/doc/examples/demo/demo.hex auto 
detected as Intel Hex
avrdude: writing flash (372 bytes):

Writing | ################################################## | 100% 1.71s

avrdude: 372 bytes of flash written
avrdude: verifying flash memory against 
/home/joerg/src/avr-libc/doc/examples/demo/demo.hex:
avrdude: load data flash data from input file 
/home/joerg/src/avr-libc/doc/examples/demo/demo.hex:
avrdude: input file /home/joerg/src/avr-libc/doc/examples/demo/demo.hex auto 
detected as Intel Hex
avrdude: input file /home/joerg/src/avr-libc/doc/examples/demo/demo.hex 
contains 372 bytes
avrdude: reading on-chip flash data:

Reading | ################################################## | 100% 1.67s

avrdude: verifying ...
avrdude: 372 bytes of flash verified

avrdude: safemode: Fuses OK

avrdude done.  Thank you.

-- 
cheers, J"org               .-.-.   --... ...--   -.. .  DL8DTL

http://www.sax.de/~joerg/                        NIC: JW11-RIPE
Never trust an operating system you don't have sources for. ;-)



_______________________________________________
AVR-GCC-list mailing list
AVR-GCC-list@nongnu.org
http://lists.nongnu.org/mailman/listinfo/avr-gcc-list

Reply via email to