Page 1 of 1

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

Posted: Mon Apr 27, 2020 12:24 pm
by abansal22
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 2319 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 2319 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?

Code: Untitled.cpp Select all

extern "C" {
void app_main(){
initArduino();
#ifdef ARDUINO_ARCH_ESP32
if (!btStart()) {
ret = ESP_FAIL;
return;
}