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

Submitted by:  None
Submitted on:  Fri 03 Apr 2015 08:30:20 PM UTC  
 
Category: NoneSeverity: 3 - Normal
Priority: 5 - NormalItem Group: None
Status: InvalidPrivacy: Public
Assigned to: Joerg Wunsch <joerg_wunsch>Originator Name: Dmitry
Originator Email: -unavailable-Open/Closed: Closed
Release: NoneProgrammer 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>
Project AdministratorIn charge of this item.
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>
Project AdministratorIn charge of this item.
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

 

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

    Date Changed By Updated Field Previous Value => Replaced By
    Thu 09 Apr 2015 07:51:02 PM UTCjoerg_wunschOpen/ClosedOpen=>Closed
    Thu 09 Apr 2015 04:29:52 PM UTCjoerg_wunschStatusNone=>Invalid
      Assigned toNone=>joerg_wunsch

    Back to the top


    Powered by Savane 3.1-cleanup1