-
Notifications
You must be signed in to change notification settings - Fork 90
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add configuration file for a bootloader with default RoT and internal flash firmware storage for Nucleo_F429ZI and K64F * Application start address can be configured independently of application jump address to support cases where the vector table is not at the start of the firmware image. * Active Metadata Header is no longer required to be directly in front of the the active application. It's location can be independently configured. * Add configuration for new platforms: NRF52, NUCLEO_F411RE * Upgrade to mbed-os-5.9.4 * Downgrade to sd-driver-0.1.2 to reduce binary size * Use NVSTORE API shipped with Mbed-OS instead of SOTP API to retrieve the Root of Trust. * Clean up configuration * Guard sd block device instantiation so that when internal flash firmware storage is used, all sd-driver code can be linked out. * Clean up coding style to conform to [mbed-os coding style](https://os.mbed.com/docs/latest/reference/style.html). * Wrap ARM_UCP_FLASHIAP_BLOCKDEVICE so that it only contains the necessary read functions. This reduces binary size. * SOTP is being replaced with NVSTORE which is shipped in Mbed-OS. As NVSTORE is binary compatible with SOTP there is no breakage. The configuration of offsets are still be the same. * In order to keep bootloader size to a minimum, please use latest arm-none-eabi-gcc. Current version is tested with version 7.3.1 which produces binary size smaller than 32k for K64F, UBLOX_EVK_ODIN_W2 and NUCLEO_F429ZI.
- Loading branch information
Showing
31 changed files
with
595 additions
and
578 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
BUILD | ||
scripts |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
# Mbed OS code style definition file for astyle | ||
|
||
# Don't create backup files, let git handle it | ||
suffix=none | ||
|
||
# K&R style | ||
style=kr | ||
|
||
# 1 TBS addition to k&r, add braces to one liners | ||
# Use -j as it was changed in astyle from brackets to braces, this way it is compatible with older astyle versions | ||
-j | ||
|
||
# 4 spaces, convert tabs to spaces | ||
indent=spaces=4 | ||
convert-tabs | ||
|
||
# Indent switches and cases | ||
indent-switches | ||
|
||
# Remove spaces in and around parentheses | ||
unpad-paren | ||
|
||
# Insert a space after if, while, for, and around operators | ||
pad-header | ||
pad-oper | ||
|
||
# Pointer/reference operators go next to the name (on the right) | ||
align-pointer=name | ||
align-reference=name | ||
|
||
# Attach { for classes and namespaces | ||
attach-namespaces | ||
attach-classes | ||
|
||
# Extend longer lines, define maximum 120 value. This results in aligned code, | ||
# otherwise the lines are broken and not consistent | ||
max-continuation-indent=120 | ||
|
||
|
||
# Style formatting options for Update Client codebase. | ||
|
||
# Each line no greater than 120 characters. | ||
--max-code-length=120 | ||
|
||
# Display only files that have been formatted. | ||
-Q | ||
|
||
# Keep one-line blocks, especially for union initialization of error structs. | ||
--keep-one-line-blocks | ||
|
||
# Indent pre-processor block | ||
# --indent-preproc-block | ||
|
||
# Delete empty lines | ||
# --delete-empty-lines | ||
|
||
# Attach the return type to a function definition or declaration. | ||
--attach-return-type # Definition | ||
--attach-return-type-decl # Declaration |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.