Open
Description
Answers checklist.
- I have read the documentation ESP-IDF Programming Guide and the issue is not addressed there.
- I have updated my IDF branch (master or release) to the latest version and checked that the issue is present there.
- I have searched the issue tracker for a similar issue and not found a similar issue.
General issue report
Hi everyone,
After upgrading the ESP-IDF used in a Bluetooth (NimBLE) project for ESP32-C3, I noticed that the reported Total image size became significantly larger than before.
What I’ve tried
- Started from the official example examples/bluetooth/nimble/bleprph.
- Added the line
to the example’s sdkconfig so the test is locked to ESP32-C3.
CONFIG_IDF_TARGET="esp32c3"
- Built the same example on the following ESP-IDF tags: v5.0.0 → v5.2.5.
- Recorded the Total image size reported by the build system for each version.
---
config:
xyChart:
width: 1000
height: 600
themeVariables:
xyChart:
plotColorPalette: "#ff0000"
---
xychart-beta
title "Total image sizes"
x-axis [v50, v501, v502, v503, v504, v505, v506, v507, v508, v51, v511, v512, v513, v514, v515, v516, v52, v521, v522, v523, v524, v525]
y-axis "Size" 530000 --> 610000
line [546106, 551748, 553620, 557374, 560728, 571998, 572984, 588358, 585172, 565152, 566690, 574562, 584242, 591456, 609714, 598026, 591676, 597348, 600910, 610666, 599684, 599684]
While all sections grow slightly, the size-components output shows that the libbtdm_app.a
flash_total field increases the most—and appears to account for nearly all of the overall growth.
Questions
- As ESP-IDF versions advance, is the increase in Total image size caused by the expanding
libbtdm_app.a
essentially unavoidable? - Besides the optimizations listed in the Size Optimization Guide (https://docs.espressif.com/projects/esp-idf/en/v5.4.1/esp32/api-guides/performance/size.html), are there any additional, Bluetooth-specific techniques to keep the image size under control?
Any help would be greatly appreciated. Thanks!