From 204222653edbc2d01b5aed38b1de71a767cb5748 Mon Sep 17 00:00:00 2001 From: Paul Sokolovsky Date: Wed, 19 Oct 2016 00:20:34 +0300 Subject: esp8266/main: Mark nlr_jump_fail() as MP_FASTCODE. It's probably not strictly needed so far, but serves as an example of MP_FASTCODE use and may be helpful in the future. --- esp8266/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'esp8266/main.c') diff --git a/esp8266/main.c b/esp8266/main.c index c938dcb30b..033ab7afed 100644 --- a/esp8266/main.c +++ b/esp8266/main.c @@ -141,7 +141,7 @@ mp_obj_t mp_builtin_open(uint n_args, const mp_obj_t *args, mp_map_t *kwargs) { } MP_DEFINE_CONST_FUN_OBJ_KW(mp_builtin_open_obj, 1, mp_builtin_open); -void nlr_jump_fail(void *val) { +void MP_FASTCODE(nlr_jump_fail)(void *val) { printf("NLR jump failed\n"); for (;;) { } -- cgit v1.2.3 From a6c9060d818c38a72ba2758dfaeadd722f2294b8 Mon Sep 17 00:00:00 2001 From: Paul Sokolovsky Date: Wed, 2 Nov 2016 00:22:43 +0300 Subject: esp8266/main: Bump heap size to 36K. ESP8266 SDK2.0 fixes (at least, I can't reproduce it) an infamous bug with crash during scan. 36K seams to be a safe value based on a download test (test_dl.py), over 1GB was downloaded. More testing is needed, but let's have other people participate by committing it now. --- esp8266/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'esp8266/main.c') diff --git a/esp8266/main.c b/esp8266/main.c index 033ab7afed..a2e747d211 100644 --- a/esp8266/main.c +++ b/esp8266/main.c @@ -39,7 +39,7 @@ #include "gccollect.h" #include "user_interface.h" -STATIC char heap[28 * 1024]; +STATIC char heap[36 * 1024]; STATIC void mp_reset(void) { mp_stack_set_top((void*)0x40000000); -- cgit v1.2.3