bugAVR Downloader/UploaDEr - Bugs: bug #50087, option parse error: after -U...


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

bug #50087: option parse error: after -U flash:w:program_to_upload.hex, subsequent -V ignored

Submitter:  None
Submitted:  Thu 19 Jan 2017 09:08:55 AM UTC
Category:  None Severity:  2 - Minor
Priority:  5 - Normal Item Group:  None
Status:  Confirmed Privacy:  Public
Assigned to:  None Originator Name:  Britton Kerin
Originator Email:  -email is unavailable- Open/Closed:  Open
Release:  6.3 Programmer hardware:  arduino
Device type:  atmega328P

Thu 19 Jan 2017 10:38:01 AM UTC, comment #1: 

The problem is that the -U option parser already evaluates
the "verify" flag (see the "HERE!" comment):

      case 'U':
        upd = parse_op(optarg);
        if (upd == NULL) {
          avrdude_message(MSG_INFO, "%s: error parsing update operation '%s'\n",
                  progname, optarg);
        ladd(updates, upd);

        if (/* HERE! */ verify && upd->op == DEVICE_WRITE) {
          upd = dup_update(upd);
          upd->op = DEVICE_VERIFY;
          ladd(updates, upd);

Thus, if the -V option has not been present at this point,
it's being ignored ("verify" defaults to 1).

Unfortunately, there's no easy fix for that.

Joerg Wunsch <joerg_wunsch>
Group administrator
Thu 19 Jan 2017 09:08:55 AM UTC, original submission:  

Moving the -V in front of -U causes the read-back verification to be skipped as expected.

I guess it's probably all options and not just -V.

I wildly guess that it's somehow related to the not-present optional 4th sub-argument to the -U option (the format argument).



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

    Date Changed by Updated Field Previous Value => Replaced by
    2017-01-19 joerg_wunsch Severity3 - Normal 2 - Minor
        StatusNone Confirmed

    Back to the top

    Powered by Savane 3.13-b921.
    Corresponding source code