diff --git a/windows/mpconfigport.h b/windows/mpconfigport.h
index befd1d9ec239fc0b4d17c1ef91e192e6cf83b12f..9103d08f1330e1ff6778ff77b7774954d411335e 100644
--- a/windows/mpconfigport.h
+++ b/windows/mpconfigport.h
@@ -38,6 +38,7 @@
 #define MICROPY_COMP_MODULE_CONST   (1)
 #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)