Skip to content

Commit a6d2c5f

Browse files
Add bare metal support to NXP targets
Modify linker scripts to add heap to memory map, add list of supported c libs and "bare-metal" to supported_application_profiles.
1 parent d6b6da9 commit a6d2c5f

File tree

3 files changed

+44
-6
lines changed

3 files changed

+44
-6
lines changed

targets/TARGET_NXP/TARGET_MCUXpresso_MCUS/TARGET_LPC54114/device/TARGET_LPC54114_M4/TOOLCHAIN_ARM_STD/LPC54114J256_cm4.sct

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,8 @@ LR_IROM1 m_interrupts_start m_text_start+m_text_size-m_interrupts_start { ; load
121121
}
122122
RW_IRAM1 ((ImageLimit(RW_m_data) == m_data_start) ? ImageLimit(RW_m_data) : +0) EMPTY Heap_Size { ; Heap region growing up
123123
}
124+
ARM_LIB_HEAP AlignExpr(+0, 16) EMPTY Heap_Size{ ; Heap region growing up
125+
}
124126
ARM_LIB_STACK m_data_start+m_data_size EMPTY -Stack_Size { ; Stack region growing down
125127
}
126128

targets/TARGET_NXP/TARGET_MCUXpresso_MCUS/TARGET_MCU_LPC546XX/device/TOOLCHAIN_ARM_STD/LPC54628J512.sct

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,8 @@ LR_IROM1 m_interrupts_start m_text_start+m_text_size-m_interrupts_start { ; load
109109
}
110110
RW_IRAM1 +0 EMPTY Heap_Size { ; Heap region growing up
111111
}
112+
ARM_LIB_HEAP AlignExpr(+0, 16) EMPTY Heap_Size{ ; Heap region growing up
113+
}
112114
ARM_LIB_STACK m_data_start+m_data_size EMPTY -Stack_Size { ; Stack region growing down
113115
}
114116
}

targets/targets.json

Lines changed: 40 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -295,9 +295,7 @@
295295
],
296296
"supported_toolchains": [
297297
"ARM",
298-
"uARM",
299-
"GCC_ARM",
300-
"IAR"
298+
"GCC_ARM"
301299
],
302300
"detect_code": [
303301
"1010"
@@ -345,7 +343,19 @@
345343
},
346344
"overrides": {
347345
"network-default-interface-type": "ETHERNET"
348-
}
346+
},
347+
"supported_c_libs": {
348+
"arm": [
349+
"std", "small"
350+
],
351+
"gcc_arm": [
352+
"std", "small"
353+
]
354+
},
355+
"c_lib": "small",
356+
"supported_application_profiles": [
357+
"full", "bare-metal"
358+
]
349359
},
350360
"ARCH_PRO": {
351361
"supported_form_factors": [
@@ -4409,7 +4419,19 @@
44094419
"post_binary_hook": {
44104420
"function": "LPCTargetCode.lpc_patch"
44114421
},
4412-
"device_name": "LPC54114J256BD64"
4422+
"device_name": "LPC54114J256BD64",
4423+
"supported_c_libs": {
4424+
"arm": [
4425+
"std", "small"
4426+
],
4427+
"gcc_arm": [
4428+
"std", "small"
4429+
]
4430+
},
4431+
"c_lib": "small",
4432+
"supported_application_profiles": [
4433+
"full", "bare-metal"
4434+
]
44134435
},
44144436
"MCU_LPC546XX": {
44154437
"core": "Cortex-M4F",
@@ -4463,7 +4485,19 @@
44634485
"device_name": "LPC54628J512ET180",
44644486
"post_binary_hook": {
44654487
"function": "LPCTargetCode.lpc_patch"
4466-
}
4488+
},
4489+
"supported_c_libs": {
4490+
"arm": [
4491+
"std", "small"
4492+
],
4493+
"gcc_arm": [
4494+
"std", "small"
4495+
]
4496+
},
4497+
"c_lib": "small",
4498+
"supported_application_profiles": [
4499+
"full", "bare-metal"
4500+
]
44674501
},
44684502
"LPC546XX": {
44694503
"supported_form_factors": [

0 commit comments

Comments
 (0)