We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 882ec01 commit 00e7176Copy full SHA for 00e7176
1 file changed
stmhal/main.c
@@ -508,8 +508,8 @@ int main(void) {
508
// Stack limit should be less than real stack size, so we have a chance
509
// to recover from limit hit. (Limit is measured in bytes.)
510
// Note: stack control relies on main thread being initialised above
511
- mp_stack_ctrl_init();
512
- mp_stack_set_limit((char*)&_ram_end - (char*)&_heap_end - 1024);
+ mp_stack_set_top(&_estack);
+ mp_stack_set_limit((char*)&_estack - (char*)&_heap_end - 1024);
513
514
// GC init
515
gc_init(&_heap_start, &_heap_end);
0 commit comments