URL: <http://savannah.nongnu.org/bugs/?38023>
Summary: avrdude doesn't return an error code when attempting to upload an invalid Intel HEX file Project: AVR Downloader/UploaDEr Submitted by: None Submitted on: Fri 04 Jan 2013 06:42:42 PM UTC Category: None Severity: 3 - Normal Priority: 5 - Normal Item Group: None Status: None Privacy: Public Assigned to: None Originator Name: Mark Greenwood Originator Email: m...@dcs.shef.ac.uk Open/Closed: Open Discussion Lock: Any _______________________________________________________ Details: 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. _______________________________________________________ Reply to this item at: <http://savannah.nongnu.org/bugs/?38023> _______________________________________________ Message sent via/by Savannah http://savannah.nongnu.org/ _______________________________________________ avrdude-dev mailing list avrdude-dev@nongnu.org https://lists.nongnu.org/mailman/listinfo/avrdude-dev