Merge pull request #14372 from harmut01/baremetal_samsung

S1SBP6A: Add bare metal support
pull/14410/head
Martin Kojtal 2021-03-11 11:04:46 +00:00 committed by GitHub
commit ea4aed2d95
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 24 additions and 5 deletions

View File

@ -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
@ -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
}
}

View File

@ -7769,8 +7769,7 @@
"core": "Cortex-M7",
"supported_toolchains": [
"GCC_ARM",
"IAR",
"ARMC6"
"ARM"
],
"default_toolchain": "GCC_ARM",
"extra_labels": [
@ -7825,7 +7824,7 @@
"core": "Cortex-M4F",
"supported_toolchains": [
"GCC_ARM",
"ARMC6"
"ARM"
],
"default_toolchain": "GCC_ARM",
"extra_labels": [
@ -7845,7 +7844,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"],