Skip to content

Commit d09c4b1

Browse files
Add baremetal support to S1SBP6A
1 parent 2660621 commit d09c4b1

File tree

2 files changed

+23
-4
lines changed

2 files changed

+23
-4
lines changed

targets/TARGET_Samsung/TARGET_SIDK_S1SBP6A/device/TOOLCHAIN_ARM_STD/s1sbp6a.sct

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,11 @@
6969
#define STACK_SIZE MBED_CONF_TARGET_BOOT_STACK_SIZE
7070
#endif
7171

72+
#define RAM_FIXED_SIZE (MBED_CONF_TARGET_BOOT_STACK_SIZE + NVIC_VECTORS_SIZE)
73+
74+
#define MBED_RAM1_START (MBED_RAM_START + NVIC_VECTORS_SIZE)
75+
#define MBED_RAM1_SIZE (MBED_RAM_SIZE - NVIC_VECTORS_SIZE - STACK_SIZE)
76+
7277
; The vector table is loaded at address 0x00000000 in Flash memory region.
7378
LR_IROM1 MBED_APP_START MBED_APP_SIZE { ; load region size_region
7479
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
7782
*(+RO)
7883
}
7984
; NVIC_VECTORS_SIZE Total
80-
RW_IRAM1 (MBED_RAM_START + NVIC_VECTORS_SIZE) (MBED_RAM_SIZE - NVIC_VECTORS_SIZE - STACK_SIZE) { ; RW data
85+
RW_IRAM1 MBED_RAM1_START MBED_RAM1_SIZE { ; RW data
8186
*(+RW +ZI)
8287
}
88+
ARM_LIB_HEAP AlignExpr(+0, 16) EMPTY (MBED_RAM_SIZE - RAM_FIXED_SIZE - (AlignExpr(ImageLimit(RW_IRAM1), 16) - MBED_RAM1_START)) { ; Heap growing up
89+
}
8390
ARM_LIB_STACK (MBED_RAM_START + MBED_RAM_SIZE) EMPTY - STACK_SIZE { ; Stack region growing down
8491
}
8592
}

targets/targets.json

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7503,7 +7503,6 @@
75037503
"core": "Cortex-M7",
75047504
"supported_toolchains": [
75057505
"GCC_ARM",
7506-
"IAR",
75077506
"ARMC6"
75087507
],
75097508
"default_toolchain": "GCC_ARM",
@@ -7559,7 +7558,7 @@
75597558
"core": "Cortex-M4F",
75607559
"supported_toolchains": [
75617560
"GCC_ARM",
7562-
"ARMC6"
7561+
"ARM"
75637562
],
75647563
"default_toolchain": "GCC_ARM",
75657564
"extra_labels": [
@@ -7579,7 +7578,20 @@
75797578
"WATCHDOG"
75807579
],
75817580
"release_versions": ["5"],
7582-
"detect_code": ["3703"]
7581+
"detect_code": ["3703"],
7582+
"supported_c_libs": {
7583+
"arm": [
7584+
"std",
7585+
"small"
7586+
],
7587+
"gcc_arm": [
7588+
"std",
7589+
"small"
7590+
]
7591+
},
7592+
"supported_application_profiles": [
7593+
"full", "bare-metal"
7594+
]
75837595
},
75847596
"FAMILY_Apollo3": {
75857597
"inherits": ["Target"],

0 commit comments

Comments
 (0)