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

 
 

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

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

Submitter:  None
Submitted:  Sat 14 Dec 2013 09:35:02 PM UTC
   
 
Category:  None Severity:  3 - Normal
Priority:  5 - Normal Item Group:  None
Status:  Fixed Privacy:  Public
Assigned to:  joerg_wunsch Originator Name:  Alan Horstmann
Originator Email:  -email is unavailable- Open/Closed:  Closed
Release:  None Programmer hardware: 
Device type: 

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>
Group administrator
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).

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attached Files
file #29921:  stk500-256K-fix2.patch added by None (2KiB - 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
  • -email is unavailable- added by joerg_wunsch (Posted a comment)
  • -email is unavailable- added by None (Submitted the item)
  •  

    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.

     

    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2014-01-22 joerg_wunsch StatusNone Fixed
        Assigned toNone joerg_wunsch
        Open/ClosedOpen Closed
    2013-12-14 None Attached File- Added stk500-256K-fix2.patch, #29921

    Back to the top

    Powered by Savane 3.13-4448.
    Corresponding source code