image build for esp32 is so heavy

phuockal
Posts: 5
Joined: Tue Oct 31, 2017 4:23 am

image build for esp32 is so heavy

Postby phuockal » Thu Nov 30, 2017 2:37 am

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,

ESP_igrr
Posts: 2072
Joined: Tue Dec 01, 2015 8:37 am

Re: image build for esp32 is so heavy

Postby ESP_igrr » Thu Nov 30, 2017 4:47 am

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.

phuockal
Posts: 5
Joined: Tue Oct 31, 2017 4:23 am

Re: image build for esp32 is so heavy

Postby phuockal » Thu Nov 30, 2017 7:57 am

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

Who is online

Users browsing this forum: Google [Bot] and 28 guests