-
Notifications
You must be signed in to change notification settings - Fork 3k
Remove main stack customizations #2984
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
Conversation
Set all platforms to have a main stack twice as big as the default.
/morph test |
So much more room for activities! 😄 |
Result: FAILUREYour command has finished executing! Here's what you wrote!
|
The targets should change the default stack size and not to edit sources, shouldn't they? Just to confirm that this change is to unify one place to edit the default main stack size? |
The intention is to have the default stack the same across all platforms. That way code written for one device will not overflow if used on another. |
Set the interrupt stack on the NUCLO_F070RB and NUCLO_F072RB to 1K so it matches ARM and GCC_ARM. This also frees up enough space to allow tests to build.
/morph test-nightly |
Result: FAILUREYour command has finished executing! Here's what you wrote!
Outputmbed Build Number: 0 Test failed! |
Fixed the TLS failures! Awesome! |
@pan- This doubles the size of the nrf51 stacks. Do you expect this to break any of the BLE examples? |
I'm sorry but I don't get why the main stack should depends on Looking at the configuration: // <o>Main Thread stack size [bytes] <64-32768:8><#/4>
#ifndef OS_MAINSTKSIZE
#error "no target defined"
#endif There is a define for the main stack size and every targets defines it. @c1728p9 It won't break anything if it remains configurable like it was before (5.1.1). |
@c1728p9 was there intention to make it non-configurable? This PR needs much more details ! Please amend the commit messages: at least to add - explaining why we are changing and what are the consequences. Because my question above was mainly about that one, same from @pan- . |
Set all platforms to have a main stack twice as big as the default.