avrdude-dev
[Top][All Lists]
Advanced

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

[avrdude-dev] programming XMega D3 boot section


From: Ralf Glaser, track IT
Subject: [avrdude-dev] programming XMega D3 boot section
Date: Wed, 25 Jul 2012 16:40:57 +0200
User-agent: Mozilla/5.0 (Windows NT 5.1; rv:14.0) Gecko/20120713 Thunderbird/14.0

Hi @all,

i'm trying to program the boot section of an ATXMega128D3 and it doesn't seem to work.

Im using a JTAGICEMK2 in PDI mode with avrdude 5.10.

I can read/write/verify the application section.
I can read the boot section (programmed with AVRStudo 5.1 before) with:
avrdude -px128d3 -cjtag2pdi -Pusb -D -Uboot:r:boot.bin:r

I try to re-program the boot section (after a chip erase) with:
avrdude -px128d3 -cjtag2pdi -Pusb -Uboot:w:boot.bin:r
but the section is still erased even though avrdude pretends to have programmed it (avrdude output at end of mail).

I've also tried and failed with the following commands:
avrdude -px128d3 -cjtag2pdi -Pusb -Uboot:w:boot.hex:a
avrdude -px128d3 -cjtag2pdi -Pusb -Uflash:w:boot.hex:a
as well as using a concatenated bootloader+application file (intel hex format concatenated with srec_cat).

My question now is: Is this a problem of me using my ATXMega-D definitions or is this function not available with my version of avrdude/ avrdude in general/ the JTAGICEMK2 / on D devices or am i just missing something?

Any feedback from somebody who is using avrdude to program the boot section on any XMega device would be welcome to narrow down this problem.

Best reagrds,
Ralf


avrdude: AVR device initialized and ready to accept instructions

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

avrdude: Device signature = 0x1e9748
avrdude: reading input file "boot.bin"
avrdude: writing boot (8192 bytes):

Writing | ################################################## | 100% 0.52s

avrdude: 8192 bytes of boot written
avrdude: verifying boot memory against boot.bin:
avrdude: load data boot data from input file boot.bin:
avrdude: input file boot.bin contains 8192 bytes
avrdude: reading on-chip boot data:

Reading | ################################################## | 100% 0.52s

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

avrdude done.  Thank you.




reply via email to

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