Files
ZephCore/zephcore/boards/common/debug_esp32.conf
T

23 lines
1.0 KiB
Plaintext

# ESP32 debug overrides — applied automatically after debug.conf on ESP32.
#
# debug.conf is written for nRF52 + SEGGER RTT (J-Link). On ESP32 there is no
# J-Link, so RTT produces no output and only wastes ~4KB RAM; logs go out the
# UART/USB console backend instead. The classic ESP32 (T-Beam) is also DRAM
# bound, so the 8KB deferred log buffer doesn't fit. Drop RTT and shrink the
# log buffer here.
# No SEGGER RTT on ESP32 — use the console (UART) log backend.
CONFIG_USE_SEGGER_RTT=n
CONFIG_LOG_BACKEND_RTT=n
CONFIG_LOG_BACKEND_UART=y
# Smaller deferred log buffer (8KB -> 2KB) for the RAM-tight classic ESP32.
CONFIG_LOG_BUFFER_SIZE=2048
# Reclaim companion DRAM for the log infrastructure. The classic ESP32 companion
# is already ~97% DRAM at production sizes; debug logging needs ~11KB more than
# fits. Trim the contact/offline-queue arrays for debug builds only (production
# board.conf keeps 160/128). Ignored by the repeater role (no contacts there).
CONFIG_ZEPHCORE_MAX_CONTACTS=120
CONFIG_ZEPHCORE_OFFLINE_QUEUE_SIZE=64