diff --git a/main.c b/main.c index 1d67424e28..4a1201f56c 100644 --- a/main.c +++ b/main.c @@ -776,7 +776,7 @@ STATIC void __attribute__ ((noinline)) run_boot_py(safe_mode_t safe_mode) { // Do USB setup even if boot.py is not run. - supervisor_allocation *pystack; + volatile supervisor_allocation *pystack; #if MICROPY_ENABLE_PYSTACK pystack = allocate_pystack(); #else