-
Notifications
You must be signed in to change notification settings - Fork 3k
Fix baremetal heap and stack initialisation #12225
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
aa6d977
to
252eec2
Compare
@evedon, thank you for your changes. |
Please add "Summary of changes" to the commit itself, would be good to have it in git as well. |
252eec2
to
2c363af
Compare
Done |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Summary of changes:
First line of the commit should contain the "headline" in this case, would be something like : heap stack: initialization fix
Enabled heap_and_stack test for baremetal. Added a test to check that global variables are initialised. In mbed_sdk_boot: - Added initialisation for mbed_stack_isr_start/size and mbed_heap_start/size for all toolchains. - ARM toolchain: - Added call to mbed_toolchain_init() to initialise global variables. - Moved microlib initialisation code from mbed_retarget.cpp to mbed_sdk_boot.c. - IAR toolchain: there is no equivalent to a software init hook that can be called. __low_level_init() was used but since this function is called before RAM initialisation, it cannot be used to initialize global variables. Defined a new __mbed_init() function called from IAR startup file instead.
2c363af
to
3e3af70
Compare
Done. |
CI started |
Test run: SUCCESSSummary: 11 of 11 test jobs passed |
Summary of changes
Fixed baremetal heap and stack initialisation and enabled heap_and_stack test for baremetal.
Added a test to check that global variables are initialised.
In mbed_sdk_boot:
Impact of changes
Heap & stack test is enabled in baremetal mode.
Migration actions required
Documentation
Pull request type
Test results
Reviewers