-
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
Adjust heap size on stm32f207 #8252
Conversation
@0xc0170 @juhoeskeli the sizing of heap and stack sizes is rather an application dependent thing. How do we want to cope with this in long term ? Could this be considered a Change Request to mbed-os to deal with this constraint ? |
Yes, stack & heap should. @bulislaw / @SenRamakri please review |
Related issue: #4067 |
A change request sounds reasonable. In the meantime can we go forward with the changes in values? |
To next patch release, please. |
/morph build |
Build : SUCCESSBuild number : 3276 Triggering tests/morph test |
Exporter Build : SUCCESSBuild number : 2901 |
Test : SUCCESSBuild number : 3084 |
Description
The board has 128kB of RAM. Currently in mbed-os the RAM usage has increased with cloud client so that on this board the code does not fit with the current heap size. This seems to be ongoing trend that with every release the memory usage grows and the linker files need to be adjusted accordingly. Instead of adjusting the linker files and creating PR it would make sense to allow the application to configure the heap like so:
stm32f207xx.icf:
if (!isdefinedsymbol(MBED_APP_HEAP_SIZE)) {
define symbol size_heap = 0xF000;
} else {
define symbol size_heap = MBED_APP_HEAP_SIZE;
}
This PR does not implement that. I just want to hear what you think how this should be handled, because this will not be the last time adjustments are required.
Pull request type