Reducing Classic Bluetooth library size
Posted: Tue Jun 18, 2024 10:15 am
Adding support for classic BT a2dp increases flash usage by more than half a megabyte.
As reported by idf_size.py --archives :
With debug logs:
With CONFIG_BT_STACK_NO_LOG=y the situation is better, but still problematic:
I have already set the BT controller to BR/EDR only as I am not using BLE, and BT HID is disabled.
Is there a way to further reduce the size ? Are all the 340 KB of code required for Classic BT A2DP ?
Thank you
As reported by idf_size.py --archives :
With debug logs:
Code: Select all
Archive File DRAM .data & 0.bss IRAM0 .text & 0.vectors ram_st_total Flash .text & .rodata & .rodata_noload & .appdesc flash_total
libbt.a 4723 2387 1725 0 8835 416578 119988 0 0 543014
Code: Select all
Archive File DRAM .data & 0.bss IRAM0 .text & 0.vectors ram_st_total Flash .text & .rodata & .rodata_noload & .appdesc flash_total
libbt.a 4722 2387 1725 0 8834 350371 24986 0 0 381804
Is there a way to further reduce the size ? Are all the 340 KB of code required for Classic BT A2DP ?
Thank you