bugAVR Downloader/UploaDEr - Bugs: bug #38023, avrdude doesn't return an error...

 
 

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

bug #38023: avrdude doesn't return an error code when attempting to upload an invalid Intel HEX file

Submitter:  None
Submitted:  Fri 04 Jan 2013 06:42:42 PM UTC
   
 
Category:  None Severity:  3 - Normal
Priority:  5 - Normal Item Group:  None
Status:  Fixed Privacy:  Public
Assigned to:  joerg_wunsch Originator Name:  Mark Greenwood
Originator Email:  -email is unavailable- Open/Closed:  Closed
Release:  None Programmer hardware: 
Device type: 

Mon 02 Sep 2013 06:18:48 PM UTC, comment #1: 

I turned that warning message into an error if no valid record
was found at all.

Fixed in SVN r1195.

Joerg Wunsch <joerg_wunsch>
Group administrator
Fri 04 Jan 2013 06:42:42 PM UTC, original submission:  

If, by mistake, you try and upload a none Intel Hex file with a command such as

/usr/bin/avrdude  -DV -p atmega328p -P /dev/ttyACM0 -c stk500v1 -b 9600 -U flash:w:Blink.ino:i

(i.e. trying to upload a source file instead of the compiled HEX file) avrdude reports a warning rather than an error

WARNING: no end of file record found for Intel Hex file "Blink.ino"

and doesn't upload any bytes. The process, however, exits with a 0 return value, i.e. success. Given that the command hasn't done anything, and certainly hasn't done what you asked it to I think avrdude should exit with an error code (probaly 1 the same as if the file is missing). This would make it easier to respond to errors when using avrdude from within a script or Makefile.

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
    2013-09-02 joerg_wunsch StatusNone Fixed
        Assigned toNone joerg_wunsch
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-3230.
    Corresponding source code