folpindo / arduino

Automatically exported from code.google.com/p/arduino
0 stars 0 forks source link

Avrdude call retry timeout option for boards without auto-reset #957

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What change would like to see?
An option in boards.txt for when a board doesn't have auto-reset and must be 
reset manually. For example BOARD.upload.timeout = 5 (in seconds, 0 by default)

In Arduino IDE when clicking Upload it would look something like this:
Binary sketch size: 786 bytes (of a 7,680 byte maximum)
Waiting for reset... // calls avrdude over and over until it can transmit data
// proceed as usual

Why?
With a board without auto-reset (just a hardware button) one has to click 
"Upload" and then time the reset button press exactly right, otherwise the 
upload will fail.

Would this cause any incompatibilities with previous versions?  If so, how
can these be mitigated?
This wouldn't cause any problems since the default is 0 which indicates there 
isn't any delay between the end of the compilation, the auto-reset and 
uploading for boards having the auto-reset feature.

Original issue reported on code.google.com by karl.kan...@gmail.com on 12 Jun 2012 at 6:17