bugAVR Downloader/UploaDEr - Bugs: bug #40897, AT Mega2560 not correctly...


You are not allowed to post comments on this tracker with your current authentification level.

bug #40897: AT Mega2560 not correctly programmed with stk500(v1) ISP (solution patch)

Submitted by:  None
Submitted on:  Sat 14 Dec 2013 09:35:02 PM UTC  
Category: NoneSeverity: 3 - Normal
Priority: 5 - NormalItem Group: None
Status: FixedPrivacy: Public
Assigned to: Joerg Wunsch <joerg_wunsch>Originator Name: Alan Horstmann
Originator Email: -unavailable-Open/Closed: Closed

Wed 22 Jan 2014 07:51:44 AM UTC, comment #1:

(Nevermind my remark about opening a patch tracker. Of course,
this bug tracker is fine, too, Alan.)

Patch applied, thanks Alan!

Joerg Wunsch <joerg_wunsch>
Project AdministratorIn charge of this item.
Sat 14 Dec 2013 09:35:02 PM UTC, original submission:

Analysis of the interaction of avrdude and stk500(v1) (as used by Arduino ISP) shows it does not set the extended address byte in the target device, as is required with > 128K flash.

This often manifests as a verify error when programming an alternative bootloader. It would not be possible to program all of the flash.

(Originally reported on mailing list, 7th Dev 2013).

Having studied the avrdude code, I have created a solution patch in a similar way to that used for other protocols using the
OPCODE, if specified, to handle the ext_addr_byte requirement. This is completely effective, ensuring the byte is set once at the beginning of programming, and whenever a 128K boundary is crossed. Hopefully this should be pretty close to the correct solution for avrdude (I have tried to mimmick the native coding style).



Attached Files
file #29921:  stk500-256K-fix2.patch added by None (2kB - text/x-diff - Patch to send the ext-addr byte when required)


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -unavailable- added by joerg_wunsch (Posted a comment)
  • -unavailable- added by None (Submitted the item)

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.


    Please enter the title of George Orwell's famous dystopian book (it's a date):



    Follow 4 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Wed 22 Jan 2014 07:51:44 AM UTCjoerg_wunschStatusNone=>Fixed
      Assigned toNone=>joerg_wunsch
    Sat 14 Dec 2013 09:35:02 PM UTCNoneAttached File-=>Added stk500-256K-fix2.patch, #29921

    Back to the top

    Powered by Savane 3.1-cleanup