bugAVR Downloader/UploaDEr - Bugs: bug #50517, Reading fails if "immediate...

 
 

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

bug #50517: Reading fails if "immediate mode" for output file format is selected - fileio: invalid operation=1

Submitter:  Hey Duds <heyduds1>
Submitted:  Sun 12 Mar 2017 01:03:02 AM UTC
   
 
Category:  None Severity:  3 - Normal
Priority:  5 - Normal Item Group:  None
Status:  Invalid Privacy:  Public
Assigned to:  joerg_wunsch Originator Name:  Hey Duds
Open/Closed:  Closed Release:  6.3
Programmer hardware:  AVRISP MKII latest LUFA firmware Device type:  Atmega M1284P

Sun 07 Nov 2021 04:22:45 PM UTC, comment #2: 

Added a check for FMT_IMM in update.c:do_op() when trying to write to an "immediate" file format.

Joerg Wunsch <joerg_wunsch>
Group administrator
Sun 12 Mar 2017 08:59:08 AM UTC, comment #1: 

Well, "immediate mode" means that instead of providing a filename, you provide the actual data тик which can only be a single byte.

For output, immediate mode doesn't make any sense at all.

I'm leaving the bug report open, as for writing, it should
simply tell that immediate mode is illegal.

Joerg Wunsch <joerg_wunsch>
Group administrator
Sun 12 Mar 2017 01:03:02 AM UTC, original submission:  

I am using AVRISP MKII with latest LUFA firmware, and reading fails if I choose "immediate mode" for output file format :

sudo avrdude -v -c avrispmkII -p m1284p -B 100 -U flash:r:output.bin:m

However, it reads okay if I select some other output file formats: raw (r), hex (i), moto (s) . Sadly, even at max verbosity levels (-vvvvvv....) I can't get more output information than:

Reading | ################################################## | 100% 431.89s

avrdude: writing output file "output.bin"
avrdude: fileio: invalid operation=1
avrdude: write to file 'output.bin' failed

then it exists with FUSES OK and tells "Thank you".

Why I am getting this problem, and how it could be fixed?

P.S. same problem happens with other memory types, not just flash: also, eeprom, fuses memory, etc., so this problem is not memory dependent. Instead, it depends ONLY on output file format, immediate mode = fail

Hey Duds <heyduds1>

 

(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 heyduds1 (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
    2021-11-07 joerg_wunsch Assigned toNone joerg_wunsch
        Open/ClosedOpen Closed
    2017-03-12 joerg_wunsch StatusNone Invalid

    Back to the top

    Powered by Savane 3.13-758e.
    Corresponding source code