Page 1 of 1

image build for esp32 is so heavy

Posted: Thu Nov 30, 2017 2:37 am
by phuockal
hello ESP32 team,

I am using ESP-wrom-32. IDE is VS code with PlatformIO integrated.

I have just create simple project, but after build it, the image size approximately reach to 1MB.

I have some question?
1. What is included by default when create a new project?
2. How can I remove some of component inserted by default?
3. How can I set optimize for size during build the project?

Thank you and best regards,

Re: image build for esp32 is so heavy

Posted: Thu Nov 30, 2017 4:47 am
by ESP_igrr
Can't say for the case of building with Platformio, but with ESP-IDF only the components which are actually used in the application will get linked. For example, blink example is around 125kB, FATFS example is about 300KB, Iperf is around 500kB, if you enable Bluetooth the size will about 1MB or above. Lowering debug level can reduce binary size significantly, also there is an option for "silent assertions" which will remove assertion text strings from the output binary.

Re: image build for esp32 is so heavy

Posted: Thu Nov 30, 2017 7:57 am
by phuockal
Thank you for your information,

I just guess that there are some other component like boot loader or some other thing will be included automatically to the project.

May I ask what is default boot loader for the ESP-wrom-32 module? is that Over the air boot loader?

Best regards