diff options
author | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2016-02-13 15:44:53 +0200 |
---|---|---|
committer | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2016-03-07 14:15:00 +0700 |
commit | db984b73f3673b525ff7c1e1525bdc146d518dca (patch) | |
tree | b64e0446a526f35f04bc2e1872700c82b57b030c /esp8266/main.c | |
parent | 1d5d4f49d9bf7dd4930a2b00a0ce2ee7ffbbd604 (diff) | |
download | micropython-db984b73f3673b525ff7c1e1525bdc146d518dca.tar.gz micropython-db984b73f3673b525ff7c1e1525bdc146d518dca.zip |
esp8266: Enable stack overflow checking.
Diffstat (limited to 'esp8266/main.c')
-rw-r--r-- | esp8266/main.c | 3 |
1 files changed, 2 insertions, 1 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(); |