esp8266: Enable stack overflow checking.

This commit is contained in:
Paul Sokolovsky
2016-02-13 15:44:53 +02:00
parent 1d5d4f49d9
commit db984b73f3
2 changed files with 3 additions and 2 deletions

View File

@@ -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();