[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[avr-chat] avrdude possibly flashes last part in wrong page of ATmega256
From: |
Harald Kipp |
Subject: |
[avr-chat] avrdude possibly flashes last part in wrong page of ATmega2561 |
Date: |
Tue, 01 May 2007 20:34:25 +0200 |
User-agent: |
Thunderbird 1.5.0.10 (Windows/20070221) |
Hi,
When using avrdude Version 5.3.1, compiled on Jan 1 2007 at 14:25:19
(WinAVR) with the SP Duo firmware version 2.2, one of the Nut/OS samples
is not flashed correctly.
avrdude -p atmega2561 -P com2 -c stk500v2 -U flash:w:inetq.hex
gives
avrdude: verification error, first mismatch at byte 0x10000
0x90 != 0xff
avrdude: verification error; content mismatch
The SP Duo emulates the STK500v2 protocol. In case you'd need more
infos, see
http://www.ethernut.de/en/isp/spduo.html
With AVR Studio 4.13 Build 528 the same programmer programs the same
target with the same hex file correctly.
Anyone with an ATmega2561 board with a different STK500v2 programmer,
who can verify this? I'm almost sure, that the problem is cause by
avrdude...but often I overlook the most obvious.
This archive
http://www.ethernut.de/arc/inetq-spduo.zip
contains the application build, including elf, bin, map and other files
including
inetq.hex - the original hex file
image-spduo.hex - image of the failed avrdude programming, read back
with AVR Studio and JTAGICE
image-jtagice.hex - image of correct programming (at least this one
runs fine)
Many thanks for taking the time,
Harald
- [avr-chat] avrdude possibly flashes last part in wrong page of ATmega2561,
Harald Kipp <=