espressif / esp-faq

Apache License 2.0
35 stars 10 forks source link

Ask issue: ESP32 C3 MINI ROM consumption is Enormous with BLE in Sample GATT client project . Unable to get the ROM consumption break down from EPS espressif resources #5

Open yshivam909 opened 2 years ago

yshivam909 commented 2 years ago

ESP-IDF Sample GATT Client project

Ask Issue

yshivam909 commented 2 years ago

Memory Requirement – GattClient Sample project

Used stat D/IRAM: 84132 bytes ( 243548 remain, 25.7% used) ------ 82KB

  .data size:    9076 bytes

  .bss  size:   17200 bytes

  .text size:   57856 bytes

Used Flash size : 1246800 bytes ------1MB

  .text     :  539000 bytes

  .rodata   :  117720 bytes

Total image size: 1313732 bytes (.bin may be padded larger)

yshivam909 commented 2 years ago

I have also made a "Simple" app for the ESP32 with a Web Interface to change data and a BLE Interface to read it, and the size is almost 1.5 MB!

The library sizes really limit the applications that the ESP32 can be used for - certainly no real commercial applications.

zztiger123 commented 2 years ago

Hi yshivam909

About ESP technical issue, you can raise an issue on ESP-IDF github, the link is as follows: https://github.com/espressif/esp-idf/issues

you can try to enable the "Optimize for size (-Os)" option(menuconfig -> Compiler option -> Optimization Level -> Optimize for size (-Os)) to reduce the firmware size.