Arduino Portenta H7 Compiling very slow

Hello.

You want to use Portenta Machine Control based on PortentaH7.

Trying to operate a basic LED Blink.
Default Example Code
(https://docs.arduino.cc/tutorials/portenta-machine-control/user-manual/)

There is no time difference between the initial compilation speed and the subsequent compilation speed. It is taking about 10 minutes or more.

I've done something about the mention of speed-up processing in other forums, but the compilation speed is not improving.(https://support.arduino.cc/hc/en-us/articles/7213793867036-Improve-compilation-time-with-Arduino-IDE)

I would like to inquire about how to improve compilation speed for Portenta Machine Control based on PortentaH7.

Hi @pantech0. When people report exceptionally slow compilations, we often find that it was caused by security/antivirus software on the user's computer. Arduino IDE creates a large number of short duration processes during the compilation. Some antiviruses do "real-time"/"on access" scanning of processes. The process is blocked until the scan is completed. The added time for each scan is quite significant in relation to the duration of the process, so the total impact of the many scans is a great increase in the length of the compilation.

As an experiment, you can try :warning: TEMPORARILY :warning: disabling the security software/antivirus on your computer for a single compilation to see if the problem goes away:

  1. Disable the security software/antivirus software.
  2. Compile the sketch, just as you did before.
  3. Wait for the compilation to finish.
  4. Immediately enable the security software/antivirus software again.

If the problem doesn't occur when you tried a compilation while the security software was disabled, you will need to adjust the settings of your antivirus to put the appropriate file, folder, or process on the "allowlist" so it doesn't interfere with compilation.

:warning: Please be cautious about working with the security software disabled. 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 security software so that it does not interfere with the Arduino software.


Arduino IDE does caching during compilation, so subsequent compilations will be faster than the first one. So take care to avoid that unrelated difference throw off your results when you are comparing compilation times.


Hi..

  1. Disable the security software/antivirus software.
  2. Compile the sketch, just as you did before.
  3. Wait for the compilation to finish.
  4. Immediately enable the security software/antivirus software again.

I processed it the way above, but the compilation speed is still very slow.

I'm inquiring about other options.

Hi!

Could you share your computer specs?

Have you tried in another computer?