-
Notifications
You must be signed in to change notification settings - Fork 145
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 #46843] avrdude=>6 fails to write from 128k-mark onwards, loops back to 0x0000 #404
Comments
The above is saying that this is a regression from 5.11. Not so sure if this has been fixed or not. There are quite some xmega related issues list below but I do not have an xmega to carry out the test. |
This may be the same as #454 and #360. Edit: |
I'm not able to reproduce the issue. I've created two 256kiB hex files using As a test, I've also created a with with 0xAA's that's written from the 128kiB mark and onwards. (My Dragon is a bit flakey, but it gets the job done). I'm pretty sure we can close this issue.
@stefanrueger for some reason, the read and write progress bar for the 0xAA_128kib_256kib.hex immediately jumped up to 100%, even though it took about 2x30 seconds for a read and write operation. I've attached the file for reference. |
Maarten van Eeuwijk maarten.van.eeuwijk@vpinstruments.com
Thu 07 Jan 2016 01:34:16 PM UTC
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.
This issue was migrated from https://savannah.nongnu.org/bugs/?46843
The text was updated successfully, but these errors were encountered: