The avrdude man page indicates that debugWire doesn't support an
explicit flash erase command, but that the erase is handled implicity
by the JTAG ICE mkII during a write operation. debugWire is working
well, but the erasing part of the programming doesn't seem to be
working.

avrdude 5.3.1
JTAG ICE mkII
AT90PWM3B

Thanks,
Shaun

$ avrdude -Pusb -cjtag2dw -ppwm2b -B9 -u -U/tmp/pwmdriver.bin
avrdude: AVR device initialized and ready to accept instructions

Reading | ################################################## | 100% 0.00s

avrdude: Device signature = 0x1e9383
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: Chip erase not supported in debugWire mode
avrdude: reading input file "/tmp/pwmdriver.bin"
avrdude: input file /tmp/pwmdriver.bin auto detected as raw binary
avrdude: writing flash (5474 bytes):

Writing | ################################################## | 100% 3.11s

avrdude: 5474 bytes of flash written
avrdude: verifying flash memory against /tmp/pwmdriver.bin:
avrdude: load data flash data from input file /tmp/pwmdriver.bin:
avrdude: input file /tmp/pwmdriver.bin auto detected as raw binary
avrdude: input file /tmp/pwmdriver.bin contains 5474 bytes
avrdude: reading on-chip flash data:

Reading | ################################################## | 100% 0.63s

avrdude: verifying ...
avrdude: verification error, first mismatch at byte 0x0018
        0x25 != 0x09
avrdude: verification error; content mismatch

avrdude done.  Thank you.


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

Reply via email to