Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[bug #40493] Can't program boot section of xmega256a3 #310

Closed
avrs-admin opened this issue Dec 10, 2021 · 3 comments
Closed

[bug #40493] Can't program boot section of xmega256a3 #310

avrs-admin opened this issue Dec 10, 2021 · 3 comments
Labels
invalid This doesn't seem right

Comments

@avrs-admin
Copy link

avrdude leo.gartz@corenetix.com
Wed 06 Nov 2013 04:14:29 PM UTC

I'm using avrdude 6.01 and JTAGICEmkII and try to programm the boot section
of the xmega256a3 with the following command:

avrdude -c jtag2pdi -P usb -p x256a3 -e -U flash:w:atxmega.hex:i

Output of avrdude:

avrdude: AVR device initialized and ready to accept instructions

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

avrdude: Device signature = 0x1e9842
avrdude: erasing chip
avrdude: reading input file "atxmega.hex"
avrdude: writing flash (262232 bytes):

Writing | ################################################## | 100% 0.05s

avrdude: 262232 bytes of flash written
avrdude: verifying flash memory against atxmega.hex:
avrdude: load data flash data from input file atxmega.hex:
avrdude: input file atxmega.hex contains 262232 bytes
avrdude: reading on-chip flash data:

Reading | ################################################## | 100% 0.03s

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

avrdude done.  Thank you.

When i use the same hex file and program my device with AtmelStudio 6.1
everything is ok. This means my JTAGICEmkII works correct.

file #29547: atxmega.hex

This issue was migrated from https://savannah.nongnu.org/bugs/?40493

@mcuee
Copy link
Collaborator

mcuee commented Jun 6, 2022

This is probably related to #365

Edit: I can confirm #365 is a bug. This is probably not related.

@mcuee mcuee added bug Something isn't working unconfirmed Maybe a bug, needs to be reproduced by someone else and removed bug Something isn't working labels Jun 20, 2022
@mcuee
Copy link
Collaborator

mcuee commented Jul 12, 2022

@MCUdude
Copy link
Collaborator

MCUdude commented Sep 23, 2022

I don't own a JTAGICEmkII, but the AVR Dragon is very similar. Here I'm flashing the stock DFU bootloader to an ATxmega256A3BU Xplained board using a dragon, without any issues. I think we can close this one.

$ ./avrdude -cdragon_jtag -p atxmega256a3bu -Uflash:w:/Users/hans/Downloads/AVR1916/XMEGA_bootloaders_v104/binaries/atxmega256a3u_104.hex -e

avrdude: AVR device initialized and ready to accept instructions

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

avrdude: Device signature = 0x1e9843 (probably x256a3bu)
avrdude: erasing chip
avrdude: reading input file /Users/hans/Downloads/AVR1916/XMEGA_bootloaders_v104/binaries/atxmega256a3u_104.hex for flash
         with 5612 bytes in 2 sections within [0x40000, 0x415f5]
         using 11 pages and 20 pad bytes
avrdude: writing 5612 bytes flash ...

Writing | ################################################## | 100% 0.00s

avrdude: 5612 bytes of flash written
avrdude: verifying flash memory against /Users/hans/Downloads/AVR1916/XMEGA_bootloaders_v104/binaries/atxmega256a3u_104.hex

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

avrdude: 5612 bytes of flash verified

avrdude done.  Thank you.

@MCUdude MCUdude closed this as completed Sep 23, 2022
@mcuee mcuee added invalid This doesn't seem right and removed unconfirmed Maybe a bug, needs to be reproduced by someone else labels Sep 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
invalid This doesn't seem right
Projects
None yet
Development

No branches or pull requests

3 participants