Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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 this issue Feb 16, 2022 · 3 comments

Comments

@yshivam909
Copy link

yshivam909 commented Feb 16, 2022

ESP-IDF Sample GATT Client project

  • Chip used: ESP32 C3 Mini
  • SDK version V4.4

Ask Issue

  • Q: I am using the BLE bluedroid stack for BLE central application. The sample code for GATT client itself take 1.2MB of ROM . Unable to track where all the ROM get consumed in sample project only . So any information for storage consumption of BLE Stack & Library files will be helpful . In the further stage of project , I will also be adding Wifi & OTA part . Knowing the sample projects itself has consumed 1.2MB ROM .Is it feasible ?
@yshivam909 yshivam909 changed the title Ask issue: I am using the BLE bluedroid stack for BLE central application. 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 Feb 16, 2022
@yshivam909
Copy link
Author

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
Copy link
Author

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
Copy link

zztiger123 commented Mar 4, 2022

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants