Skip to content

Commit

Permalink
[ESP32] Configure the event logging buffers to reduce dram overflow i…
Browse files Browse the repository at this point in the history
…n all-clusters-app for m5stack (#34718)
  • Loading branch information
shubhamdp authored Aug 1, 2024
1 parent 53e94d6 commit 4c1f325
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
6 changes: 6 additions & 0 deletions examples/all-clusters-app/esp32/sdkconfig_m5stack.defaults
Original file line number Diff line number Diff line change
Expand Up @@ -73,3 +73,9 @@ CONFIG_BUILD_CHIP_TESTS=y

# Move functions from IRAM to flash
CONFIG_FREERTOS_PLACE_FUNCTIONS_INTO_FLASH=y

# Reduce the event loggin buffer to reduce the DRAM usage
# TODO: remove this once the underlying issue is fixed
CONFIG_EVENT_LOGGING_CRIT_BUFFER_SIZE=512
CONFIG_EVENT_LOGGING_INFO_BUFFER_SIZE=512
CONFIG_EVENT_LOGGING_DEBUG_BUFFER_SIZE=512
Original file line number Diff line number Diff line change
Expand Up @@ -78,13 +78,16 @@ CONFIG_BUILD_CHIP_TESTS=y
# Move functions from IRAM to flash
CONFIG_FREERTOS_PLACE_FUNCTIONS_INTO_FLASH=y

# to avoid dram overflow, reduce the critical loggin buffer to 1K
CONFIG_EVENT_LOGGING_CRIT_BUFFER_SIZE=1024

CONFIG_DIAG_USE_EXTERNAL_LOG_WRAP=y

# Memory Optimizations
CONFIG_NIMBLE_MAX_CONNECTIONS=1
CONFIG_BTDM_CTRL_BLE_MAX_CONN=1
CONFIG_BT_NIMBLE_ROLE_CENTRAL=n
CONFIG_BT_NIMBLE_ROLE_OBSERVER=n

# Reduce the event loggin buffer to reduce the DRAM overflow
# TODO: remove this once the underlying issue is fixed
CONFIG_EVENT_LOGGING_CRIT_BUFFER_SIZE=512
CONFIG_EVENT_LOGGING_INFO_BUFFER_SIZE=512
CONFIG_EVENT_LOGGING_DEBUG_BUFFER_SIZE=512

0 comments on commit 4c1f325

Please sign in to comment.