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 authentification level.

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

Submitted by:  None
Submitted on:  Fri 04 Jan 2013 06:42:42 PM UTC  
 
Category: NoneSeverity: 3 - Normal
Priority: 5 - NormalItem Group: None
Status: FixedPrivacy: Public
Assigned to: Joerg Wunsch <joerg_wunsch>Originator Name: Mark Greenwood
Originator Email: -unavailable-Open/Closed: Closed

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>
Project AdministratorIn charge of this item.
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

 

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
    Mon 02 Sep 2013 06:18:48 PM UTCjoerg_wunschStatusNone=>Fixed
      Assigned toNone=>joerg_wunsch
      Open/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup