Slow upload speed

Hi All

Brand New to Arduino. I have the arduino uno R3. Uploading the sketches takes 15 to 20 minutes is this normal?

No. 15 to 20 seconds would be more like it. I just timed an upload (write only, no verify) to an R3 using arduino-cli and it came in at 12 seconds.

I moved your topic to an appropriate forum category @bruce_salmon.

In the future, please take some time to pick the forum category that best suits the subject of your topic. There is an "About the _____ category" topic at the top of each category that explains its purpose.

This is an important part of responsible forum usage, as explained in the "How to get the best out of this forum" guide. The guide contains a lot of other useful information. Please read it.

Thanks in advance for your cooperation.

Hi @bruce_salmon. How long does it take if you select Sketch > Verify/Compile from the Arduino IDE menus?

When you upload a sketch, two distinct operations are performed:

  1. Compile program
  2. Flash program to the Uno R3 board

It is likely that the exceptional duration is specific to one of those two operations. Understanding which of the two is the problematic one will allow us to focus the troubleshooting efforts.

Sketch Verify/Compile took quite a while 10 mins plus

A common cause of slow compilation is your antivirus software doing an on-access scan. Arduino IDE creates a ton of short processes during the compilation, so if each of these has to wait to be scanned before running, it slows things way down.

Try TEMPORARILY disabling your antivirus for a single compilation to see if you notice that it makes it significantly faster, then turn the antivirus back on. If the compilation is faster with the antivirus off you will need to adjust the settings of your antivirus to put the appropriate file, folder, or process on the antivirus software's "allow list" so it doesn't interfere with compilation.

Please be cautious about working without an antivirus. This is only about temporarily disabling it for a quick test. If you don't feel comfortable doing that, fine. You can try going straight to configuring the antivirus "allow list" for the Arduino software.

Note that Arduino IDE does caching during compilation, so subsequent compilations will be faster than the first one. So make sure to not let that throw off your results when you are comparing compilation time.

Hey
I had success with your information it looks like. Things are working better. I had to disable the firewall for Public and Domain , keeping only he private tab "on". in the arduino program listing there was one program that was keyed to be allowed in the private and in the public. I removed the check in the public box to align the arduino with the sole private firewall listing.

So the firewall is now private only, and the arduino is private only. This seems to be the correct setup.

If you see issue with this please advise.

Thanks Again

I'm glad it is working better now. I am not qualified to advise you on specific configuration of your security software.

I recommend that you use the minimum necessary scope for any configurations. For example, rather than disabling a problematic security feature universally, exclude only the specific trusted application/process/path it is interfering with. Security software will often have a configuration mechanism like an "allow list" for doing this.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.