diff options
Diffstat (limited to 'esp8266')
-rw-r--r-- | esp8266/main.c | 3 | ||||
-rw-r--r-- | esp8266/mpconfigport.h | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/esp8266/main.c b/esp8266/main.c index 3e12008ce6..062cc6c58a 100644 --- a/esp8266/main.c +++ b/esp8266/main.c @@ -41,7 +41,8 @@ STATIC char heap[16384]; STATIC void mp_reset(void) { - mp_stack_set_limit(10240); + mp_stack_set_top((void*)0x40000000); + mp_stack_set_limit(8192); mp_hal_init(); gc_init(heap, heap + sizeof(heap)); mp_init(); diff --git a/esp8266/mpconfigport.h b/esp8266/mpconfigport.h index 75e3f46c5a..dce8bc3314 100644 --- a/esp8266/mpconfigport.h +++ b/esp8266/mpconfigport.h @@ -10,7 +10,7 @@ #define MICROPY_MEM_STATS (0) #define MICROPY_DEBUG_PRINTERS (1) #define MICROPY_ENABLE_GC (1) -#define MICROPY_STACK_CHECK (0) +#define MICROPY_STACK_CHECK (1) #define MICROPY_REPL_EVENT_DRIVEN (1) #define MICROPY_HELPER_REPL (1) #define MICROPY_HELPER_LEXER_UNIX (0) |