bugAVR Downloader/UploaDEr - Bugs: bug #44717, avrdude creates empty flash dump

 
 

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

bug #44717: avrdude creates empty flash dump

Submitter:  None
Submitted:  Fri 03 Apr 2015 08:30:20 PM UTC
   
 
Category:  None Severity:  3 - Normal
Priority:  5 - Normal Item Group:  None
Status:  Invalid Privacy:  Public
Assigned to:  joerg_wunsch Originator Name:  Dmitry
Originator Email:  -email is unavailable- Open/Closed:  Closed
Release:  None Programmer hardware: 
Device type: 

Thu 09 Apr 2015 07:51:02 PM UTC, comment #2: 

OK, finally documented the feature.

In do_op(), also added a warning when about to write a file
that has no contents.

Joerg Wunsch <joerg_wunsch>
Group administrator
Thu 09 Apr 2015 04:29:52 PM UTC, comment #1: 

It's not a bug, it's a feature: your flash is empty (erased),
thus the resulting file is empty, too.  You have chosen raw
file output, so you get a file with length 0.  If you had
chosen e.g. Intel hex output, you'd at least get the terminal
record in the file – as an indication that everything worked
well, but there simple are no data to display.

Without that feature, readout of a partially filled flash
would always get a bunch of 0xFFFF values at the end of the
file.  The feature is only applied to flash, not to EEPROM,
that's why your EEPROM readout indeed yields a file full of
0xFF.  Yes, that's not really quite consistent, but has been
that way since the early days of AVRDUDE.

Joerg Wunsch <joerg_wunsch>
Group administrator
Fri 03 Apr 2015 08:30:20 PM UTC, original submission:  

Ubuntu 14.10
avrdude 6.1

avrdude -v -c usbasp -p m328p -U flash:r:flash.dump:r

works without any error or warnings but file flash.dump is empty

**last output****
Reading | ################################################## | 100% 16.52s

avrdude: writing output file "flash.dump"

avrdude: safemode: lfuse reads as 62
avrdude: safemode: hfuse reads as D9
avrdude: safemode: efuse reads as 7
avrdude: safemode: Fuses OK (E:07, H:D9, L:62)

avrdude done.  Thank you.

*****************

avrdude -v -c usbasp -p m328p -U eeprom:r:eeprom.dump:r

creates file 1024 bytes



Anonymous

 

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

No files currently attached

 

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 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2015-04-09 joerg_wunsch Open/ClosedOpen Closed
    2015-04-09 joerg_wunsch StatusNone Invalid
        Assigned toNone joerg_wunsch

    Back to the top

    Powered by Savane 3.13-caa5.
    Corresponding source code