We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0e8ae78 commit 69ffc98Copy full SHA for 69ffc98
src/codal_port/main.c
@@ -48,7 +48,7 @@ void microbit_pyexec_file(const char *filename);
48
49
void mp_main(void) {
50
mp_stack_ctrl_init();
51
- mp_stack_set_limit(8 * 1024);
+ mp_stack_set_limit(8 * 1024 - 512); // include 512 byte buffer zone for overflow
52
53
for (;;) {
54
microbit_system_init();
src/codal_port/mpconfigport.h
@@ -47,6 +47,7 @@
47
#define MICROPY_VM_HOOK_LOOP MICROPY_VM_HOOK_POLL
#define MICROPY_VM_HOOK_RETURN MICROPY_VM_HOOK_POLL
#define MICROPY_ENABLE_GC (1)
+#define MICROPY_STACK_CHECK (1)
#define MICROPY_KBD_EXCEPTION (1)
#define MICROPY_HELPER_REPL (1)
#define MICROPY_REPL_AUTO_INDENT (1)
0 commit comments