Main thread stack size #333
-
Hello Community! I have run in to a (likely) stack overrun issue trying to use
Doing research I found this thread and based on suggestions found there I changed
This indeed seem to change the linker file as described in the thread but there is no change in behaviour. The thread mentions "bare metal" but I'm unsure about what that means and if it applies in my case? I'm also curious about if this is indeed the correct way to increase the size of the main thread stack in Mbed CE? For context I should mention that I'm building software for an Arduino Opta leveraging the built-in boot software. Thanks for listening! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Ah yes. Boot stack size refers to the stack size used for the first code that boots up. For mbed-baremetal, that's your application thread itself. For mbed-os, that will be the RTOS kernel. If you are using the RTOS, you should in fact be adjusting |
Beta Was this translation helpful? Give feedback.
Ah yes. Boot stack size refers to the stack size used for the first code that boots up. For mbed-baremetal, that's your application thread itself. For mbed-os, that will be the RTOS kernel. If you are using the RTOS, you should in fact be adjusting
rtos.main-thread-stack-size
, which defaults to 4096 bytes.