Esp_idf takes more time to compile the same code than Arduino in Plarformio

abansal22
Posts: 105
Joined: Wed Apr 22, 2020 8:24 am

Esp_idf takes more time to compile the same code than Arduino in Plarformio

Postby abansal22 » Mon Apr 27, 2020 12:24 pm

Hello,

I am build the code from the example.
https://github.com/espressif/esp-idf/bl ... ttc_demo.c

I uses the platformio as an IDE. I select the arduino as a framework and set the CONFIG_AUTOSTART_ARDUINO 0 in sdkconfig (also check my main function). the building time is very low.
arduino.JPG
arduino.JPG (44.19 KiB) Viewed 1933 times
after that i compile the same code in esp idf. what I found that it take more time in compilation than the arduino. even after building 2-3 times, I found that arduino code build faster. what is the reason behind this?
esp_idf.JPG
esp_idf.JPG (41.39 KiB) Viewed 1933 times
Also the the first build of the project takes significant time in esp idf(about 200 sec as compated to 45 sec in arduino). Can I do something to speed up the build process significantly?
  1. extern "C" {
  2.   void app_main(){
  3.     initArduino();
  4.      #ifdef ARDUINO_ARCH_ESP32
  5.         if (!btStart()) {
  6.             ret = ESP_FAIL;
  7.             return;
  8.         }

Who is online

Users browsing this forum: No registered users and 132 guests