AVR Downloader/UploaDEr - Bugs: bug #46843, avrdude=>6 fails to write from...
You are not allowed to post comments on this tracker with your current authentication level.
bug #46843: avrdude=>6 fails to write from 128k-mark onwards, loops back to 0x0000
Submitter: | None | ||
Submitted: | Thu 07 Jan 2016 01:34:16 PM UTC | ||
Category: | None | Severity: | 3 - Normal |
Priority: | 5 - Normal | Item Group: | None |
Status: | None | Privacy: | Public |
Assigned to: | None | Originator Name: | Maarten van Eeuwijk |
Originator Email: | -email is unavailable- | Open/Closed: | Open |
Release: | None | Programmer hardware: | |
Device type: |
No files currently attached
Depends on the following items: None found
Items that depend on this one: None found
Carbon-Copy List
There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.
No changes have been made to this item
Powered by Savane 3.13-02a9.
Corresponding source code
avrdude version 6 series fails to write programs bigger than 131.072 bytes to flash on my atxmega256a3bu. Instead of continuing onwards from the 131.072 byte (128kb) mark, the write procedure loops back to 0x0000, corrupting data from there on.
Or to put it an another way: When I flash a program 130kb in size, I end up with 128k of data in my flash, whereof the first 2kb is corrupted.
This problem was introduced in the version 6 series of avrdude (I tried 6.0.1, 6.1, 6.1-svn-20131205 and 6.2). Version 5.11 works fine for me.
No errors show up during writing, the bug manifests itself during verification and of course execution of the program, as the mangled program crashes the MCU.
Curiously this 128k mark is exactly on the second time an offset is defined in my intel .hex file. To rule out problems with the file reader code for that format I also tried .srec and .elf; same result for all.