File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -18,7 +18,6 @@ KERNEL_TYPE = micro
1818# BOARD must be passed on command line from main Makefile
1919#BOARD =
2020CONF_FILE = prj.conf
21- MDEF_FILE = prj.mdef
2221
2322#export SOURCE_DIR = $(ZEPHYR_BASE)/samples/static_lib/hello_world
2423export LDFLAGS_zephyr += -L$(CURDIR)
Original file line number Diff line number Diff line change @@ -64,8 +64,8 @@ int real_main(void) {
6464 int stack_dummy ;
6565 stack_top = (char * )& stack_dummy ;
6666 mp_stack_set_top (stack_top );
67- // Should be set to stack size in prj.mdef minus fuzz factor
68- mp_stack_set_limit (3584 );
67+ // Make MicroPython's stack limit somewhat smaller than full stack available
68+ mp_stack_set_limit (CONFIG_MAIN_STACK_SIZE - 512 );
6969
7070soft_reset :
7171 #if MICROPY_ENABLE_GC
Original file line number Diff line number Diff line change @@ -3,3 +3,4 @@ CONFIG_CONSOLE_HANDLER=y
33CONFIG_UART_CONSOLE_DEBUG_SERVER_HOOKS=y
44CONFIG_NEWLIB_LIBC=y
55CONFIG_FLOAT=y
6+ CONFIG_MAIN_STACK_SIZE=4096
Load diff This file was deleted.
You can’t perform that action at this time.
0 commit comments