Add memory diagnostics and optimize PSRAM usage
This commit is contained in:
@@ -5,6 +5,13 @@ CONFIG_SPIRAM_MODE_OCT=y
|
||||
CONFIG_SPIRAM_SPEED_80M=y
|
||||
CONFIG_SPIRAM_BOOT_INIT=y
|
||||
CONFIG_SPIRAM_USE_CAPS_ALLOC=y
|
||||
# Preserve internal DMA/task memory by placing Wi-Fi and lwIP payload buffers in PSRAM first.
|
||||
CONFIG_SPIRAM_TRY_ALLOCATE_WIFI_LWIP=y
|
||||
# Retain the previously validated bounded Wi-Fi/lwIP capacities explicitly;
|
||||
# ESP-IDF changes their defaults when PSRAM-first allocation is enabled.
|
||||
CONFIG_ESP_WIFI_STATIC_RX_BUFFER_NUM=10
|
||||
CONFIG_ESP_WIFI_RX_BA_WIN=6
|
||||
CONFIG_LWIP_TCP_OOSEQ_MAX_PBUFS=4
|
||||
|
||||
# Keep concurrent HTTPS handshakes from exhausting scarce internal DRAM.
|
||||
# Active TLS material remains unencrypted in PSRAM until the hardening phase.
|
||||
|
||||
Reference in New Issue
Block a user