summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAngus Gratton <angus@redyak.com.au>2024-09-03 15:39:36 +1000
committerDamien George <damien@micropython.org>2024-09-04 15:15:26 +1000
commitfee9d66e3a7308bd9edffb2624b52f4e04ecc4f3 (patch)
treefd0f1eaa290a86be4157b8d82f5013775053e88e
parenta6c35aeee873953bd9016cf63feb1a6772bdd6af (diff)
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 <angus@redyak.com.au>
-rw-r--r--ports/esp32/boards/ESP32_GENERIC_C3/sdkconfig.c3usb3
-rw-r--r--ports/esp32/boards/LOLIN_C3_MINI/sdkconfig.board3
2 files changed, 6 insertions, 0 deletions
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