bugAVR Downloader/UploaDEr - Bugs: bug #38951, AVR109 use byte offset instead of...

 
 

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

bug #38951: AVR109 use byte offset instead of word offset

Submitted by:  Fred <magister>
Submitted on:  Thu 09 May 2013 03:36:01 PM UTC  
 
Category: NoneSeverity: 3 - Normal
Priority: 5 - NormalItem Group: None
Status: FixedPrivacy: Public
Assigned to: Joerg Wunsch <joerg_wunsch>Originator Name: Magister
Open/Closed: Closed

Thu 09 May 2013 06:05:41 PM UTC, comment #2:

What's impressive is that this bug is here since the beginning of the project, but what the code was doing was to send a "A 00 00" then send in a while() all the data by after. Auto-incrementing doing its job.

It's only since SVN1007 that the bug surfaced.

Fred <magister>
Thu 09 May 2013 05:38:11 PM UTC, comment #1:

I made the patch #8045 to fix it

Fred <magister>
Thu 09 May 2013 03:36:01 PM UTC, original submission:

The 'A' command must send the address in word offset, it is currently sent in byte offset.

For instance with a 128 bytes buffer, avrdude send:

A 00 00
A 00 80
A 01 00
A 01 80
etc

each command followed by 128 bytes of data.

This is wrong, the correct offset is:

A 00 00
A 00 40
A 00 80
A 00 C0
etc

for flash data you have to >>1 the address before sending it with 'A' command.

Fred <magister>

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by joerg_wunsch (Updated the item)
  • -unavailable- added by magister (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 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Tue 03 Sep 2013 09:24:53 PM UTCjoerg_wunschStatusNone=>Fixed
      Assigned toNone=>joerg_wunsch
      Open/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup