summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Mussared <jim.mussared@gmail.com>2019-11-07 22:00:01 +1100
committerDamien George <damien.p.george@gmail.com>2019-11-11 11:55:58 +1100
commit71299d3224b6f8422f540c91cc0d3f0e89408e90 (patch)
tree3908f9cff0c0f6891d3b800caee3abdf2c58e281
parent799b6d1e0c5bfb2392b7978f549ab2c7d2e0cc29 (diff)
esp32/boards/sdkconfig.base: Resize SSL output buffer from 16 to 4kiB.
The IDF heap is more fragmented with IDF 4 and mbedtls cannot allocate enough RAM with 16+16kiB for both in and out buffers, so reduce output buffer size. Fixes issue #5303.
-rw-r--r--ports/esp32/boards/sdkconfig.base4
1 files changed, 4 insertions, 0 deletions
diff --git a/ports/esp32/boards/sdkconfig.base b/ports/esp32/boards/sdkconfig.base
index 9348f4063..2c77c2090 100644
--- a/ports/esp32/boards/sdkconfig.base
+++ b/ports/esp32/boards/sdkconfig.base
@@ -28,6 +28,10 @@ CONFIG_LWIP_PPP_SUPPORT=y
CONFIG_LWIP_PPP_PAP_SUPPORT=y
CONFIG_LWIP_PPP_CHAP_SUPPORT=y
+# SSL
+# Use 4kiB output buffer instead of default 16kiB (because IDF heap is fragmented in 4.0)
+CONFIG_MBEDTLS_ASYMMETRIC_CONTENT_LEN=y
+
# v3.3-only (renamed in 4.0)
CONFIG_LOG_BOOTLOADER_LEVEL_WARN=y
CONFIG_TASK_WDT_CHECK_IDLE_TASK_CPU0=n