Skip to content

Commit 78c6a34

Browse files
committed
【修改】提示运行 micropython 的线程栈必须大于 8k
1 parent b51c31e commit 78c6a34

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

port/mpy_main.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,8 @@ void mpy_main(const char *filename) {
7373
mp_getchar_init();
7474
mp_putsn_init();
7575

76-
if (rt_thread_self()->stack_size < 4096) {
77-
mp_printf(&mp_plat_print, "The stack (%.*s) size for executing MicroPython must be >=4096\n", RT_NAME_MAX, rt_thread_self()->name);
76+
if (rt_thread_self()->stack_size < 8192) {
77+
mp_printf(&mp_plat_print, "The stack (%.*s) size for executing MicroPython must be >= 8192\n", RT_NAME_MAX, rt_thread_self()->name);
7878
}
7979

8080
#if MICROPY_PY_THREAD

0 commit comments

Comments
 (0)