Skip to content
Snippets Groups Projects
Commit db984b73 authored by Paul Sokolovsky's avatar Paul Sokolovsky
Browse files

esp8266: Enable stack overflow checking.

parent 1d5d4f49
No related branches found
No related tags found
No related merge requests found
...@@ -41,7 +41,8 @@ ...@@ -41,7 +41,8 @@
STATIC char heap[16384]; STATIC char heap[16384];
STATIC void mp_reset(void) { STATIC void mp_reset(void) {
mp_stack_set_limit(10240); mp_stack_set_top((void*)0x40000000);
mp_stack_set_limit(8192);
mp_hal_init(); mp_hal_init();
gc_init(heap, heap + sizeof(heap)); gc_init(heap, heap + sizeof(heap));
mp_init(); mp_init();
......
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
#define MICROPY_MEM_STATS (0) #define MICROPY_MEM_STATS (0)
#define MICROPY_DEBUG_PRINTERS (1) #define MICROPY_DEBUG_PRINTERS (1)
#define MICROPY_ENABLE_GC (1) #define MICROPY_ENABLE_GC (1)
#define MICROPY_STACK_CHECK (0) #define MICROPY_STACK_CHECK (1)
#define MICROPY_REPL_EVENT_DRIVEN (1) #define MICROPY_REPL_EVENT_DRIVEN (1)
#define MICROPY_HELPER_REPL (1) #define MICROPY_HELPER_REPL (1)
#define MICROPY_HELPER_LEXER_UNIX (0) #define MICROPY_HELPER_LEXER_UNIX (0)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment