-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Stack overflow in tickless mode with debug profile on NUCLEO-L476RG #8184
Comments
cc @ARMmbed/team-st-mcd |
This stack size is defined in /** The idle thread's stack size can be configured by the application, if not explicitly specified, it'll default to 512 */ As this value can be changed by the application I don't know what can we do on our side ? |
Are you expecting something like: #ifndef MBED_CONF_APP_IDLE_THREAD_STACK_SIZE |
@bcostm I know that it can be set by the application, but enabling tickless (a supported feature) mode on a NUCLEO board (a supported board) should never return in an instant hard fault. I thought this was acknowledged and fixed in #7222. If we cannot reduce stack usage in debug builds when using tickless we should increase idle thread stack size as @jeromecoutant is suggesting (I'd rather optimize this in a way that it's not required, but OK). |
Hi For information, I am currently testing TICKLESS feature with NUCLEO-L476RG. Maybe ARM core experts can double check ? Thx |
Internal Jira reference: https://jira.arm.com/browse/IOTPART-6578 |
@janjongboom do you any internal ARM contact to start the discussion about IDLE_THREAD_STACK_SIZE, |
I took a look at the stack overflow on debug builds with the NUCLEO-L476RG and can confirm that the background thread is overflowing. It looks like most of the extra stack usage is coming from the low power ticker wrapper which is used on the background thread when tickless is enabled. Below is a breakdown of the stack usage.
|
@janjongboom Could you review #8551 ? |
This issue should be fixed by #8551 |
Please test and reopen if there is still issue |
Description
Same as #7222? This is on Mbed OS 5.9 (949cb49) with mbed-os-example-lorawan on NUCLEO-L476RG:
Upping the idle thread stack size to 0x400 solves the issue.
Issue request type
[ ] Question
[ ] Enhancement
[X] Bug
The text was updated successfully, but these errors were encountered: