avrdude ERROR: address...

Hi,

I have some Duemilanove I want to give a bootloader that support the avr watchdog feature.

I found that adaboot fixes this compared to that standard boot loader.

I though get this whenever i try to install the new boot loader

avrdude -p m168 -c avrisp -P /dev/tty.usbserial-A700e1ay -b 57600 -F -U flash:w:ATmegaBOOT_xx8_adaboot328.hex 

avrdude: AVR device initialized and ready to accept instructions

Reading | ################################################## | 100% 0.05s

avrdude: Device signature = 0x1e950f
avrdude: Expected signature for ATMEGA168 is 1E 94 06
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 "ATmegaBOOT_xx8_adaboot328.hex"
avrdude: input file ATmegaBOOT_xx8_adaboot328.hex auto detected as Intel Hex
avrdude: ERROR: address 0x7810 out of range at line 1 of ATmegaBOOT_xx8_adaboot328.hex
avrdude: write to file 'ATmegaBOOT_xx8_adaboot328.hex' failed

avrdude: safemode: Fuses OK

avrdude done.  Thank you.

I did try other booloaders and they have same problem.

I have OS X.

Now I got this

avrdude -c arduino -B 1 -p m328p -P /dev/tty.usbserial-A9007VJJ -U flash:w:ATmegaBOOT_xx8_adaboot328.hex  -b 57600 -F -D

avrdude: AVR device initialized and ready to accept instructions

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

avrdude: Device signature = 0x1e950f
avrdude: reading input file "ATmegaBOOT_xx8_adaboot328.hex"
avrdude: input file ATmegaBOOT_xx8_adaboot328.hex auto detected as Intel Hex
avrdude: writing flash (32746 bytes):

Writing | ################################################## | 100% 0.77s

avrdude: 32746 bytes of flash written
avrdude: verifying flash memory against ATmegaBOOT_xx8_adaboot328.hex:
avrdude: load data flash data from input file ATmegaBOOT_xx8_adaboot328.hex:
avrdude: input file ATmegaBOOT_xx8_adaboot328.hex auto detected as Intel Hex
avrdude: input file ATmegaBOOT_xx8_adaboot328.hex contains 32746 bytes
avrdude: reading on-chip flash data:

Reading | ################################################## | 100% 13.88s

avrdude: verifying ...
avrdude: verification error, first mismatch at byte 0x0000
         0xff != 0x0c
avrdude: verification error; content mismatch

avrdude: safemode: Fuses OK

avrdude done.  Thank you.

Try it with larger values for B, like -B 10 etc. This will slow down the process of writing/reading and might help.

Edit: are you trying to upload a new bootloader using the current bootloader in the chip? That can't work!

Hi,

Got it running via,

avrdude -p m328p -c avrisp -P /dev/tty.usbserial-A700e08D -b 19200 -F -U flash:w:ATmegaBOOT_xx8_adaboot328.hex

I am uploading via the ArduinoISP....