Rapid Reupload *FEATURE*

Just add this. After the upload to a micro fails for whatever reason it keeps uploading it as long as I want it to. Yes it does work.

Thank you.

I have no idea what you are talking about

Would you care to explain ?

Do you mean that the uploading notification remains spinning endlessly? It happened a few time for me even though the Output said the upload was finished.

No what I mean you often get upload errors then you have to manually wait for the errors and push the damn upload button a million times afterward until it gets uploaded. Why can't we just automate this that it keeps trying to upload it in case of an error forever also killing avrdude on failure immediately would be quite useful because basically the scenario is:

-avr dude keep bitching with upload failed
-you keep pushing the reupload while that crap running in the background
-then the ide will compile your code again but since avrdude running in the background it will not really try to reupload it

it's a mess believe me especially if you program arduinos from a vmware

Thanks for your suggestion @defilerden

Is it really so often for you? What are the most common causes of these frequent errors?

Why are you needing to make so many upload attempts before getting a successful upload?

On the rare occasion I get an upload error, it is usually that I had the wrong board/port selected. The upload fails, I notice the problem, fix it, then upload successfully. So I only ever need to click the button twice at the very most.

Because 99.99% of the time, the upload failure is not automatically recoverable. If it failed the first time, it is going to fail the second time and the hundredth time as well. The user must take action to fix whatever caused the upload to fail (e.g., wrong board, wrong port, something connected to pins 0 and 1, board is "soft bricked", missing Linux permissions to access port, board is damaged).

If the upload process continued to make attempts over and over again forever, users would only waste their time waiting in vain for an upload process that will never complete successfully.

I agree that it is annoying how AVRDUDE retries the upload 10 times. After 10 years of using Arduino, I have never once seen a case where this resulted in a successful upload after the first attempt failed.

There is no good way for Arduino IDE to detect this situation. It only knows the upload failed once AVRDUDE exits with non-zero exit status. However, the ability to configure the number of attempts was recently added to AVRDUDE:

Arduino is not yet using the version of AVRDUDE (7.0) that contains that feature, but once Arduino (or any 3rd party boards platform author) updates to AVRDUDE >=7.0, it would be possible to configure it to only make one attempt, and I would very much support that change.


Another idea would be to allow the user to manually terminate an upload process early when it is clear to them it is not going to succeed. This feature request is tracked by the Arduino IDE developers here:

Which version of Arduino IDE are you using? I just tried it with 2.0.2 and could not reproduce this. If I click the "Upload" button again while an upload is ongoing, it has no effect.