[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[avrdude-dev] [bug #38023] avrdude doesn't return an error code when att
From: |
anonymous |
Subject: |
[avrdude-dev] [bug #38023] avrdude doesn't return an error code when attempting to upload an invalid Intel HEX file |
Date: |
Fri, 04 Jan 2013 18:42:43 +0000 |
User-agent: |
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:19.0) Gecko/20121227 Firefox/19.0 |
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: address@hidden
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/
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [avrdude-dev] [bug #38023] avrdude doesn't return an error code when attempting to upload an invalid Intel HEX file,
anonymous <=