Will typically be caused by something bad in your program but a way to force it to complete so you can troubleshoot what is happening is to press the Arduino reset button as soon as you see “Compiling sketch” change to “Uploading…” as you program the Arduino.

Possible causes we’ve come across

wdt if used, disabling it solved issue implying there was some level of fighting between it and programming completing?

You are using the UART pins and driving the RX pin (your circuits use of UART pins will override the USB serial interface to the Arduino IDE).

USEFUL?
We benefit hugely from resources on the web so we decided we should try and give back some of our knowledge and resources to the community by opening up many of our company’s internal notes and libraries through mini sites like this. We hope you find the site helpful.
Please feel free to comment if you can add help to this page or point out issues and solutions you have found, but please note that we do not provide support on this site. If you need help with a problem please use one of the many online forums.

Comments

Your email address will not be published.