Skip to content

Commit 4c1f325

Browse files
authored
[ESP32] Configure the event logging buffers to reduce dram overflow in all-clusters-app for m5stack (project-chip#34718)
1 parent 53e94d6 commit 4c1f325

File tree

2 files changed

+12
-3
lines changed

2 files changed

+12
-3
lines changed

examples/all-clusters-app/esp32/sdkconfig_m5stack.defaults

+6
Original file line numberDiff line numberDiff line change
@@ -73,3 +73,9 @@ CONFIG_BUILD_CHIP_TESTS=y
7373

7474
# Move functions from IRAM to flash
7575
CONFIG_FREERTOS_PLACE_FUNCTIONS_INTO_FLASH=y
76+
77+
# Reduce the event loggin buffer to reduce the DRAM usage
78+
# TODO: remove this once the underlying issue is fixed
79+
CONFIG_EVENT_LOGGING_CRIT_BUFFER_SIZE=512
80+
CONFIG_EVENT_LOGGING_INFO_BUFFER_SIZE=512
81+
CONFIG_EVENT_LOGGING_DEBUG_BUFFER_SIZE=512

examples/all-clusters-app/esp32/sdkconfig_m5stack_rpc.defaults

+6-3
Original file line numberDiff line numberDiff line change
@@ -78,13 +78,16 @@ CONFIG_BUILD_CHIP_TESTS=y
7878
# Move functions from IRAM to flash
7979
CONFIG_FREERTOS_PLACE_FUNCTIONS_INTO_FLASH=y
8080

81-
# to avoid dram overflow, reduce the critical loggin buffer to 1K
82-
CONFIG_EVENT_LOGGING_CRIT_BUFFER_SIZE=1024
83-
8481
CONFIG_DIAG_USE_EXTERNAL_LOG_WRAP=y
8582

8683
# Memory Optimizations
8784
CONFIG_NIMBLE_MAX_CONNECTIONS=1
8885
CONFIG_BTDM_CTRL_BLE_MAX_CONN=1
8986
CONFIG_BT_NIMBLE_ROLE_CENTRAL=n
9087
CONFIG_BT_NIMBLE_ROLE_OBSERVER=n
88+
89+
# Reduce the event loggin buffer to reduce the DRAM overflow
90+
# TODO: remove this once the underlying issue is fixed
91+
CONFIG_EVENT_LOGGING_CRIT_BUFFER_SIZE=512
92+
CONFIG_EVENT_LOGGING_INFO_BUFFER_SIZE=512
93+
CONFIG_EVENT_LOGGING_DEBUG_BUFFER_SIZE=512

0 commit comments

Comments
 (0)