patchAVR Downloader/UploaDEr - Patches: patch #6261, avrdude won't use dragon/debugwire...

 
 

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

patch #6261: avrdude won't use dragon/debugwire to write a file to eeprom

Submitter:  Mark Litwack <mlitwack>
Submitted:  Thu 08 Nov 2007 08:07:03 PM UTC
   
 
Category:  None Priority:  5 - Normal
Status:  Done Privacy:  Public
Assigned to:  joerg_wunsch Open/Closed:  Closed

Thu 08 Nov 2007 08:07:03 PM UTC, original submission:  

If avrdude is given a file to write to eeprom it will try to
write it using page mode (jtagmkII_paged_write()).  However,
page mode writes to eeprom are not allowed when using
dragon/debugwire, thus causing the write to fail.

If avrdude is used in interactive mode, byte-at-a-time
writes (jtagmkII_write_byte()) to eeprom do work correctly
with debugwire.

Avrdude already contains code to detect and prevent paged
writes to eeprom when in debugwire mode.  Instead of simply
returning a failure, this patch calls the routine to write a
byte at a time to the eeprom since that is known to work.
This allows a file to be written to eeprom in debugwire
mode.

This patch probably fixes this problem with other debugwire
programmers as well, but so far has only been tested with
the AVR Dragon.

This patch is for avrdude-5.5, but the problem is also known
to exist in avrdude-5.4.

-mark

Mark Litwack <mlitwack>

 

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

Attached Files
file #14341:  dragon-dw-eeprom.patch added by mlitwack (961B - text/x-patch - Modifies avrdude-5.5/jtagmkII.c)

 

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 (Updated the item)
  • -email is unavailable- added by mlitwack (Proposed bug fix for avrdude-5.5 using dragon&debugwire)
  • -email is unavailable- added by mlitwack (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 5 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2009-02-16 joerg_wunsch StatusNone Done
        Assigned toNone joerg_wunsch
        Open/ClosedOpen Closed
    2007-11-08 mlitwack Attached File- Added dragon-dw-eeprom.patch, #14341
        Carbon-Copy- Added -email is unavailable-

    Back to the top

    Powered by Savane 3.13-0329.
    Corresponding source code