From 13cd6144af900de0b4821a871693b67cb4e8eacc Mon Sep 17 00:00:00 2001 From: Shubham Patil Date: Tue, 1 Aug 2023 15:47:36 +0530 Subject: [PATCH] Pull in few dram optimizations from temperature app --- .../esp32/sdkconfig_m5stack_rpc.defaults | 12 ++++++++++++ .../esp32/sdkconfig_m5stack_rpc.defaults | 12 ++++++++++++ 2 files changed, 24 insertions(+) diff --git a/examples/all-clusters-app/esp32/sdkconfig_m5stack_rpc.defaults b/examples/all-clusters-app/esp32/sdkconfig_m5stack_rpc.defaults index 11a61a39d0ed02..43f48c5461f8e0 100644 --- a/examples/all-clusters-app/esp32/sdkconfig_m5stack_rpc.defaults +++ b/examples/all-clusters-app/esp32/sdkconfig_m5stack_rpc.defaults @@ -77,3 +77,15 @@ CONFIG_BUILD_CHIP_TESTS=y # Move functions from IRAM to flash CONFIG_FREERTOS_PLACE_FUNCTIONS_INTO_FLASH=y + +# to avoid dram overflow +CONFIG_NIMBLE_MAX_CONNECTIONS=1 +CONFIG_BTDM_CTRL_BLE_MAX_CONN=1 +CONFIG_BT_NIMBLE_MAX_CONNECTIONS=1 +CONFIG_BTDM_CTRL_BLE_MAX_CONN_EFF=1 +CONFIG_BTDM_CONTROLLER_BLE_MAX_CONN=1 +CONFIG_BTDM_CONTROLLER_BLE_MAX_CONN_EFF=1 + +CONFIG_ESP32_WIFI_STATIC_RX_BUFFER_NUM=4 +CONFIG_ESP32_WIFI_DYNAMIC_RX_BUFFER_NUM=8 +CONFIG_ESP32_WIFI_DYNAMIC_TX_BUFFER_NUM=16 diff --git a/examples/all-clusters-minimal-app/esp32/sdkconfig_m5stack_rpc.defaults b/examples/all-clusters-minimal-app/esp32/sdkconfig_m5stack_rpc.defaults index 11a61a39d0ed02..43f48c5461f8e0 100644 --- a/examples/all-clusters-minimal-app/esp32/sdkconfig_m5stack_rpc.defaults +++ b/examples/all-clusters-minimal-app/esp32/sdkconfig_m5stack_rpc.defaults @@ -77,3 +77,15 @@ CONFIG_BUILD_CHIP_TESTS=y # Move functions from IRAM to flash CONFIG_FREERTOS_PLACE_FUNCTIONS_INTO_FLASH=y + +# to avoid dram overflow +CONFIG_NIMBLE_MAX_CONNECTIONS=1 +CONFIG_BTDM_CTRL_BLE_MAX_CONN=1 +CONFIG_BT_NIMBLE_MAX_CONNECTIONS=1 +CONFIG_BTDM_CTRL_BLE_MAX_CONN_EFF=1 +CONFIG_BTDM_CONTROLLER_BLE_MAX_CONN=1 +CONFIG_BTDM_CONTROLLER_BLE_MAX_CONN_EFF=1 + +CONFIG_ESP32_WIFI_STATIC_RX_BUFFER_NUM=4 +CONFIG_ESP32_WIFI_DYNAMIC_RX_BUFFER_NUM=8 +CONFIG_ESP32_WIFI_DYNAMIC_TX_BUFFER_NUM=16