ESP32 Project Build time

ashigupta9
Posts: 13
Joined: Thu Nov 28, 2019 9:48 am

ESP32 Project Build time

Postby ashigupta9 » Wed Sep 30, 2020 8:21 am

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.

PeterR
Posts: 621
Joined: Mon Jun 04, 2018 2:47 pm

Re: ESP32 Project Build time

Postby PeterR » Wed Sep 30, 2020 10:32 am

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.
& I also believe that IDF CAN should be fixed.

ashigupta9
Posts: 13
Joined: Thu Nov 28, 2019 9:48 am

Re: ESP32 Project Build time

Postby ashigupta9 » Wed Sep 30, 2020 2:45 pm

i have also tried using ESP-IDF command prompt but still the build time is almost same.
No specific reason of using GNU.

PeterR
Posts: 621
Joined: Mon Jun 04, 2018 2:47 pm

Re: ESP32 Project Build time

Postby PeterR » Wed Sep 30, 2020 4:26 pm

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.
& I also believe that IDF CAN should be fixed.

username
Posts: 536
Joined: Thu May 03, 2018 1:18 pm

Re: ESP32 Project Build time

Postby username » Sat Oct 03, 2020 3:05 am

@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.

ashigupta9
Posts: 13
Joined: Thu Nov 28, 2019 9:48 am

Re: ESP32 Project Build time

Postby ashigupta9 » Fri Jun 25, 2021 6:32 pm

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.

Who is online

Users browsing this forum: No registered users and 320 guests