From fee9d66e3a7308bd9edffb2624b52f4e04ecc4f3 Mon Sep 17 00:00:00 2001 From: Angus Gratton Date: Tue, 3 Sep 2024 15:39:36 +1000 Subject: [PATCH] esp32: Disable hardware stack protection on ESP32-C3. Workaround for what appears to be an upstream issue: https://github.com/espressif/esp-idf/issues/14456 This work was funded through GitHub Sponsors. Signed-off-by: Angus Gratton --- ports/esp32/boards/ESP32_GENERIC_C3/sdkconfig.c3usb | 3 +++ ports/esp32/boards/LOLIN_C3_MINI/sdkconfig.board | 3 +++ 2 files changed, 6 insertions(+) diff --git a/ports/esp32/boards/ESP32_GENERIC_C3/sdkconfig.c3usb b/ports/esp32/boards/ESP32_GENERIC_C3/sdkconfig.c3usb index 44838c534..70e5f1f0d 100644 --- a/ports/esp32/boards/ESP32_GENERIC_C3/sdkconfig.c3usb +++ b/ports/esp32/boards/ESP32_GENERIC_C3/sdkconfig.c3usb @@ -1 +1,4 @@ CONFIG_ESP32C3_REV_MIN_3=y + +# Workaround for https://github.com/espressif/esp-idf/issues/14456 +CONFIG_ESP_SYSTEM_HW_STACK_GUARD=n diff --git a/ports/esp32/boards/LOLIN_C3_MINI/sdkconfig.board b/ports/esp32/boards/LOLIN_C3_MINI/sdkconfig.board index 44838c534..70e5f1f0d 100644 --- a/ports/esp32/boards/LOLIN_C3_MINI/sdkconfig.board +++ b/ports/esp32/boards/LOLIN_C3_MINI/sdkconfig.board @@ -1 +1,4 @@ CONFIG_ESP32C3_REV_MIN_3=y + +# Workaround for https://github.com/espressif/esp-idf/issues/14456 +CONFIG_ESP_SYSTEM_HW_STACK_GUARD=n