diff --git a/bare-arm/main.c b/bare-arm/main.c
index fb9ec60379e4fe33378db6610a91471a0b02d07a..a1e94313c54dace9484a7cbe0eea4aecd6a39bcb 100644
--- a/bare-arm/main.c
+++ b/bare-arm/main.c
@@ -6,7 +6,6 @@
 #include "py/parsehelper.h"
 #include "py/compile.h"
 #include "py/runtime.h"
-#include "py/stackctrl.h"
 #include "py/repl.h"
 #include "py/pfenv.h"
 
@@ -48,7 +47,6 @@ void do_str(const char *src) {
 }
 
 int main(int argc, char **argv) {
-    mp_stack_set_limit(10240);
     mp_init();
     do_str("print('hello world!', list(x+1 for x in range(10)), end='eol\n')");
     mp_deinit();
diff --git a/esp8266/mpconfigport.h b/esp8266/mpconfigport.h
index 7d1d6e1b7b32889ac22a1616a8b7ba0eeedf2e38..2782ceace33419ac344f9624479d19d5e13280ed 100644
--- a/esp8266/mpconfigport.h
+++ b/esp8266/mpconfigport.h
@@ -9,6 +9,7 @@
 #define MICROPY_MEM_STATS           (0)
 #define MICROPY_DEBUG_PRINTERS      (0)
 #define MICROPY_ENABLE_GC           (1)
+#define MICROPY_STACK_CHECK         (1)
 #define MICROPY_HELPER_REPL         (1)
 #define MICROPY_HELPER_LEXER_UNIX   (0)
 #define MICROPY_ENABLE_SOURCE_LINE  (1)
diff --git a/py/mpconfig.h b/py/mpconfig.h
index 491fa5ea5def3e2bba8736147f32e2dd3711cd68..57f54a590ed3e232beb6b5a5a5e715ea49dc2617 100644
--- a/py/mpconfig.h
+++ b/py/mpconfig.h
@@ -205,7 +205,7 @@
 // Whether to check C stack usage. C stack used for calling Python functions,
 // etc. Not checking means segfault on overflow.
 #ifndef MICROPY_STACK_CHECK
-#define MICROPY_STACK_CHECK (1)
+#define MICROPY_STACK_CHECK (0)
 #endif
 
 // Whether to have an emergency exception buffer
diff --git a/qemu-arm/mpconfigport.h b/qemu-arm/mpconfigport.h
index 32ed77c1d904f61b3550447176bd0c02c9d9c177..f9f0486558114f241859c3fcd9c2db0b08d7ceb0 100644
--- a/qemu-arm/mpconfigport.h
+++ b/qemu-arm/mpconfigport.h
@@ -9,6 +9,7 @@
 #define MICROPY_MEM_STATS           (0)
 #define MICROPY_DEBUG_PRINTERS      (0)
 #define MICROPY_ENABLE_GC           (0)
+#define MICROPY_STACK_CHECK         (1)
 #define MICROPY_HELPER_REPL         (0)
 #define MICROPY_HELPER_LEXER_UNIX   (0)
 #define MICROPY_ENABLE_SOURCE_LINE  (0)
diff --git a/stmhal/mpconfigport.h b/stmhal/mpconfigport.h
index 15d84e85fdadb26dd11bfee95f7592e462e4957d..86682d87bc010f3ea3a5c588f568d7901e71d5fc 100644
--- a/stmhal/mpconfigport.h
+++ b/stmhal/mpconfigport.h
@@ -35,6 +35,7 @@
 #define MICROPY_EMIT_INLINE_THUMB   (1)
 #define MICROPY_ENABLE_GC           (1)
 #define MICROPY_ENABLE_FINALISER    (1)
+#define MICROPY_STACK_CHECK         (1)
 #define MICROPY_HELPER_REPL         (1)
 #define MICROPY_ENABLE_SOURCE_LINE  (1)
 #define MICROPY_LONGINT_IMPL        (MICROPY_LONGINT_IMPL_MPZ)
diff --git a/teensy/mpconfigport.h b/teensy/mpconfigport.h
index 63f0ee7b70c04214d95edd448709ae6f66b0ee5e..57e4c36b080433c6a458595deb7ab3c23ba6f6f1 100644
--- a/teensy/mpconfigport.h
+++ b/teensy/mpconfigport.h
@@ -7,6 +7,7 @@
 #define MICROPY_EMIT_INLINE_THUMB   (1)
 #define MICROPY_ENABLE_GC           (1)
 #define MICROPY_ENABLE_FINALISER    (1)
+#define MICROPY_STACK_CHECK         (1)
 #define MICROPY_HELPER_REPL         (1)
 #define MICROPY_ENABLE_SOURCE_LINE  (1)
 #define MICROPY_LONGINT_IMPL        (MICROPY_LONGINT_IMPL_MPZ)
diff --git a/unix/mpconfigport.h b/unix/mpconfigport.h
index 29492a7f962e3cc7f567afba170cd07bb5273420..463907eb8e7adfdf6671a276f4764a6fb462b36d 100644
--- a/unix/mpconfigport.h
+++ b/unix/mpconfigport.h
@@ -41,6 +41,7 @@
 #endif
 #define MICROPY_ENABLE_GC           (1)
 #define MICROPY_ENABLE_FINALISER    (1)
+#define MICROPY_STACK_CHECK         (1)
 #define MICROPY_MEM_STATS           (1)
 #define MICROPY_DEBUG_PRINTERS      (1)
 #define MICROPY_HELPER_REPL         (1)