-
Notifications
You must be signed in to change notification settings - Fork 3k
Migrate NUCLEO_F303K8 to Mbed OS 5 baremetal #12663
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
Migrate NUCLEO_F303K8 to Mbed OS 5 baremetal #12663
Conversation
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.
I can't currently test as I didn't plan to work on that target now that we are working at home...
targets/TARGET_STM/TARGET_STM32F3/TARGET_STM32F303x8/device/TOOLCHAIN_ARM_STD/stm32f303x8.sct
Outdated
Show resolved
Hide resolved
edafefb
to
0753eba
Compare
@hugueskamba, thank you for your changes. |
Great to see one more target ported to bare metal! |
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.
Code change looks good.
@hugueskamba @0xc0170 |
Done. |
CI started meanwhile |
Looking at the test failures, #12665 is needed here , I'll set the preceding PR needed |
0753eba
to
e443aa7
Compare
This force-push updates the |
CI started |
Test run: FAILEDSummary: 1 of 6 test jobs failed Failed test jobs:
|
test restarted |
targets/targets.json
Outdated
"release_versions": [ | ||
"2" | ||
], | ||
"supported_application_modes":["bare-metal"], |
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.
Migration guide was updated to use supported_application_profiles
.
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.
Done.
* Use two memory regions in ARM toolchain linker file to support Microlib * Replace `target.default_lib` with `target.c_lib` * Specify supported lib sizes per toolchain * Add support for Mbed OS versions after Mbed 2
e443aa7
to
4e61240
Compare
CI restarted |
Test run: SUCCESSSummary: 6 of 6 test jobs passed |
@@ -3630,12 +3635,14 @@ | |||
} | |||
}, | |||
"overrides": { | |||
"lse_available": 0 | |||
"lse_available": 0, | |||
"boot-stack-size": "0x400", |
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.
Why?
As explained in
https://os.mbed.com/docs/mbed-os/v5.15/porting/porting-bootstrap.html
/* This value is normally defined by the tools to 0x1000 for bare metal and 0x400 for RTOS */
So why don't we keep default 0x1000 value ?
Thx
Summary of changes
target.default_lib
withtarget.c_lib
This was tested with all supported toolchains (GCC_ARM, ARM, and IAR).
This PR is needed to build with the IAR toolchain.
The test included building and running mbed-os-example-blinky-baremetal as well as running the bare metal Greentea test suite (
mbed test -t arm -m NUCLEO_F303K8 --app-config TESTS/configs/baremetal.json
). All tests were successful.Impact of changes
The NUCLEO_F303K8 target can now be built with Mbed OS 5 bare metal profile.
Migration actions required
N/A
Documentation
N/A
Pull request type
Test results
Reviewers
@evedon @jeromecoutant @rajkan01