summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDamien George <damien@micropython.org>2024-01-05 16:54:33 +1100
committerDamien George <damien@micropython.org>2024-01-08 23:24:39 +1100
commit2ed976f1406e33a266d25cb6505020c76746ecbc (patch)
tree0c9502030c031218d373a0c068572e5bcb672d4f
parente456ee40e0df65ccda628ecce010c558bb44ca72 (diff)
samd/mcu/samd21: Enable MICROPY_STACK_CHECK on SAMD21.
Increases firmware size by +140 bytes and uses +4 extra bytes of RAM, but allows the test suite to run without crashing. Signed-off-by: Damien George <damien@micropython.org>
-rw-r--r--ports/samd/mcu/samd21/mpconfigmcu.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/ports/samd/mcu/samd21/mpconfigmcu.h b/ports/samd/mcu/samd21/mpconfigmcu.h
index 8e4071b64..fdad3fee4 100644
--- a/ports/samd/mcu/samd21/mpconfigmcu.h
+++ b/ports/samd/mcu/samd21/mpconfigmcu.h
@@ -16,6 +16,7 @@
// Selected extensions beyond the basic features set.
#define MICROPY_ENABLE_FINALISER (1)
+#define MICROPY_STACK_CHECK (1)
#define MICROPY_KBD_EXCEPTION (1)
#define MICROPY_HELPER_REPL (1)
#define MICROPY_REPL_AUTO_INDENT (1)