Skip to content
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

S1SBP6A: Add bare metal support #14372

Merged
merged 2 commits into from
Mar 11, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,11 @@
#define STACK_SIZE MBED_CONF_TARGET_BOOT_STACK_SIZE
#endif

#define RAM_FIXED_SIZE (MBED_CONF_TARGET_BOOT_STACK_SIZE + NVIC_VECTORS_SIZE)

#define MBED_RAM1_START (MBED_RAM_START + NVIC_VECTORS_SIZE)
#define MBED_RAM1_SIZE (MBED_RAM_SIZE - NVIC_VECTORS_SIZE - STACK_SIZE)

; The vector table is loaded at address 0x00000000 in Flash memory region.
LR_IROM1 MBED_APP_START MBED_APP_SIZE { ; load region size_region
ER_IROM1 MBED_APP_START MBED_APP_SIZE { ; load address = execution address
Expand All @@ -77,9 +82,11 @@ LR_IROM1 MBED_APP_START MBED_APP_SIZE { ; load region size_region
*(+RO)
}
; NVIC_VECTORS_SIZE Total
RW_IRAM1 (MBED_RAM_START + NVIC_VECTORS_SIZE) (MBED_RAM_SIZE - NVIC_VECTORS_SIZE - STACK_SIZE) { ; RW data
RW_IRAM1 MBED_RAM1_START MBED_RAM1_SIZE { ; RW data
*(+RW +ZI)
}
ARM_LIB_HEAP AlignExpr(+0, 16) EMPTY (MBED_RAM_SIZE - RAM_FIXED_SIZE - (AlignExpr(ImageLimit(RW_IRAM1), 16) - MBED_RAM1_START)) { ; Heap growing up
}
ARM_LIB_STACK (MBED_RAM_START + MBED_RAM_SIZE) EMPTY - STACK_SIZE { ; Stack region growing down
}
}
20 changes: 16 additions & 4 deletions targets/targets.json
Original file line number Diff line number Diff line change
Expand Up @@ -7503,8 +7503,7 @@
"core": "Cortex-M7",
"supported_toolchains": [
"GCC_ARM",
"IAR",
"ARMC6"
"ARM"
],
"default_toolchain": "GCC_ARM",
"extra_labels": [
Expand Down Expand Up @@ -7559,7 +7558,7 @@
"core": "Cortex-M4F",
"supported_toolchains": [
"GCC_ARM",
"ARMC6"
"ARM"
],
"default_toolchain": "GCC_ARM",
"extra_labels": [
Expand All @@ -7579,7 +7578,20 @@
"WATCHDOG"
],
"release_versions": ["5"],
"detect_code": ["3703"]
"detect_code": ["3703"],
"supported_c_libs": {
"arm": [
"std",
"small"
],
"gcc_arm": [
"std",
"small"
]
},
"supported_application_profiles": [
"full", "bare-metal"
]
},
"FAMILY_Apollo3": {
"inherits": ["Target"],
Expand Down