avrdude-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[avrdude-dev] Verification errors with TPI and PDI programming


From: Joakim Lubeck
Subject: [avrdude-dev] Verification errors with TPI and PDI programming
Date: Thu, 29 Aug 2013 11:03:40 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130330 Thunderbird/17.0.5

Hello,

I heve been using the svn-version of avrdude for a while now, and it works well most of the time. But there are some combinations that doesn't work for me.

When I use usbasp (latest firmware) with TPI (tested tiny10, 20, 40) it gives me verification errors, like

---
 $ avrdude -p attiny10 -P usb -c usbasp -e   -U flash:w:main.hex

avrdude: AVR device initialized and ready to accept instructions

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

avrdude: Device signature = 0x1e9003
avrdude: erasing chip
avrdude: reading input file "main.hex"
avrdude: input file main.hex auto detected as Intel Hex
avrdude: writing flash (330 bytes):

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

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

Reading | ################################################## | 100% 0.21s

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

avrdude done.  Thank you.
---

But it works without problems if I use the version RELEASE_5_11_1.

I see the same problems with both Ubuntu 10.04 and Ubuntu 12.10.


Now I bought an AVRISPmkII yesterday (updated the firmware with Atmel Studio 6.1sp1). And it gives me the same problem when I program an XMega128a1, but works without problems with avrdude 5.11.1.

---
$ avrdude -p atxmega128a1 -P usb -c avrispmkii -U flash:w:main.hex

avrdude: AVR device initialized and ready to accept instructions

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

avrdude: Device signature = 0x1e974c
avrdude: NOTE: Programmer supports page erase for Xmega devices.
Each page will be erased before programming it, but no chip erase is performed. To disable page erases, specify the -D option; for a chip-erase, use the -e option.
avrdude: reading input file "main.hex"
avrdude: input file main.hex auto detected as Intel Hex
avrdude: writing flash (43140 bytes):

Writing | ################################################## | 100% 2.34s

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

Reading | ################################################## | 100% 0.53s

avrdude: verifying ...
avrdude: verification error, first mismatch at byte 0x0006
         0x04 != 0x06
avrdude: verification error; content mismatch

avrdude done.  Thank you.
---

Any idea what's going on here? Please ask for more specific information if needed.

/Joakim



reply via email to

[Prev in Thread] Current Thread [Next in Thread]