BLE iBeacon example uses +100k of DRAM
Posted: Thu Nov 19, 2020 2:39 pm
I am using the ibeacon example found in the IDF repo here:
https://github.com/espressif/esp-idf/bl ... con_demo.c
If you look at the code you can see that it is using the function which appears to have a minor improvement.
What I have discovered is:
- if the BT component is enabled in memuconfig if reserves 52K of DRAM
- at run time once it goes through the init part of the code, as shown in the code at the link provided above, about 60K of heap is used
Questions:
- is this memory usage unavoidable
- are the some configurations that can be set to get back some of the memory
https://github.com/espressif/esp-idf/bl ... con_demo.c
If you look at the code you can see that it is using the
Code: Select all
esp_bt_controller_mem_release(ESP_BT_MODE_CLASSIC_BT)
What I have discovered is:
- if the BT component is enabled in memuconfig if reserves 52K of DRAM
- at run time once it goes through the init part of the code, as shown in the code at the link provided above, about 60K of heap is used
Questions:
- is this memory usage unavoidable
- are the some configurations that can be set to get back some of the memory