When I initially compile a sketch it takes 5-10minutes. I need to sit through this as I must press the boot button to pack the sketch when compiling is finiburned. (The sketches I’m compiling are easy ie bconnect and so on.)

It takes slightly much less time on future compiles yet is still 2-3minutes.

You are watching: Why does arduino take so long to compile

On my Arduino Mega sketches are compiled in well under a minute.

Is this numerous minutes normal?


*
Steve Mercer answered 11 months ago

It’s somewhat dependent on the speed of your computer yet this is my experience too. From what I watch it compiles all the libraries (Including ESP32 Core) every time. I believe through the ESP32 having points choose WiFi, Bluetooth, SD Card etc that it just takes longer than other Arduino’s that don’t have actually those. Also, I think the Arduino IDE just offers one core of your processor.

You might like to attempt PlatformIO. It caches whatever it has actually currently compiled so subsequent compiles are exceptionally snappy. It also appears to manipulate all cores obtainable so is much faster on initial compile also.

These are my monitorings. I don’t know whether it’s all actually correct.

Also you may prefer to get yourself a board that does not need pushing a switch. Two of my boards (Heltec WiFi Kit 32 and also Arduelectronic camera IOTAI) will certainly upload and also run without the switch press.


1Vote UpVote Down
*
Sara Santos Staff answered 11 months ago

Hi Jim.It is normal for the ESP32 to take a little more time to compile than the Arduino.However before, 5 to 10 minutes is many time. As Steve pointed out it might be concerned the speed of your computer.You might also attempt Steve’s pointer and also view if making use of PlatformIO is quicker than Arduino IDE.Here’s a tutorial on how to acquire started: https://randomnerdtutorials.com/vs-code-platformio-ide-esp32-esp8266-arduino/Regards,Sara


0Vote UpVote Down
*
Sara Santos Staff answered 11 months ago

As for the boot switch, you might take a look at this “solution”: https://randomnerdtutorials.com/solved-failed-to-connect-to-esp32-timed-out-waiting-for-packet-header/Regards,Sara


0Vote UpVote Down
*
Jim Roberts answered 11 months ago

Thanks for that.I’ve done a little bit of messing roughly this day and also found, through my Task Manager, that tbelow is an IBM Trusteer Rapport regime (which is forced by digital banking) that offers several sources in the time of the compile (no principle why). If I shut this dvery own the compile time drops to Still not brilliant yet I deserve to live via this.Even more liveable via if I usage among the boards you indicate which don’t need the boot button pressing,


0Vote UpVote Down
*
Sara Santos Staff answered 11 months ago

Hi Jim.I likewise think that some antivirus slow-moving dvery own the compilation time. But, I’m not certain if that’s your case.Regards,Sara


0Vote UpVote Down
*
Jim Roberts answered 11 months ago

Thanks for answers Sara, lots to look right into below.

See more: What Would You Do If We Were Stuck In A Box ? Template Meme Generator


Key Sidebar


Login to Ask or Answer Questions

This Forum is exclusive and also it’s just accessible for members enrolled in our Courses.Login »


Latest Course Updates


You should be logged in to watch this content.