Page 1 of 1

ESP32 Project Build time

Posted: Wed Sep 30, 2020 8:21 am
by ashigupta9
Hello All,

This is regarding the build time of ESP32 Project on windows 10 machine.
I have tried using Eclipse / mingw32 / esp-idf command prompt but the build time for my project is very high i.e. it almost takes 5 mins to build my project and similar time for clean and flash. My project has just LED Blink example.

I have tried disabling Windows defender on my machine also tried using "make -jx" option where x= number of logical processors in my machine but still the build time remains very high.

Is there any way on how i can reduce the build time for ESP32 project.

Re: ESP32 Project Build time

Posted: Wed Sep 30, 2020 10:32 am
by PeterR
The new native CMake build system is supposed to very much faster.
There is a project conversion utility but it did not work for me.

Is there any reason why you still use GNU? I only do because of time pressures.

Re: ESP32 Project Build time

Posted: Wed Sep 30, 2020 2:45 pm
by ashigupta9
i have also tried using ESP-IDF command prompt but still the build time is almost same.
No specific reason of using GNU.

Re: ESP32 Project Build time

Posted: Wed Sep 30, 2020 4:26 pm
by PeterR
i have also tried using ESP-IDF command prompt
You mean MIMGW?

This has been fairly well covered in the forum over the years.
My understanding is that you need to use the CMake build system with an up to date IDF
https://docs.espressif.com/projects/esp ... index.html

Legacy GNU & MINGW just won't cut it. The new build system is native (the MINGW problem was down to forking a process to compile each file & how long that takes in Windows through MINGW).

I agree, its a major pain & especially early in development when you change the odd menuconfig setting. I tend to unit test first so its not so painful that way than recompiling my full application.

Re: ESP32 Project Build time

Posted: Sat Oct 03, 2020 3:05 am
by username
@ashigupta9. It might be time to get a new computer, sounds like your might be many, many years old.
Even on my oldest i7 computer a new build only takes like 15-20 seconds.
On my new one, a new build is done in like 8 seconds.

Re: ESP32 Project Build time

Posted: Fri Jun 25, 2021 6:32 pm
by ashigupta9
I am using ESP-IDF v4.2 and Eclipse. ( Windows 10, i7 with 32GB RAM ).
Compile time depends on number of components enabled in esp-idf or project files.
I have many files in my project and also using many esp-idf components and re-build ( Clean and Build) time is still 12-15 mins.
Let me know if some one has identified any solution for increasing compile time.