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

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

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

Matthijs Kooijman-2
URL:
  <http://savannah.nongnu.org/bugs/?50517>

                 Summary: Reading fails if "immediate mode" for output file
format is selected - fileio: invalid operation=1
                 Project: AVR Downloader/UploaDEr
            Submitted by: heyduds1
            Submitted on: Sun 12 Mar 2017 01:03:02 AM UTC
                Category: None
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: None
                  Status: None
                 Privacy: Public
             Assigned to: None
         Originator Name: Hey Duds
        Originator Email:
             Open/Closed: Open
                 Release: 6.3
         Discussion Lock: Any
     Programmer hardware: AVRISP MKII latest LUFA firmware
             Device type: Atmega M1284P

    _______________________________________________________

Details:

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




    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/bugs/?50517>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.nongnu.org/


_______________________________________________
avrdude-dev mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/avrdude-dev
Reply | Threaded
Open this post in threaded view
|

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

Matthijs Kooijman-2
Update of bug #50517 (project avrdude):

                  Status:                    None => Invalid                

    _______________________________________________________

Follow-up 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.

    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/bugs/?50517>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.nongnu.org/


_______________________________________________
avrdude-dev mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/avrdude-dev