Skip to content

Commit f9f901a

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 b91e105 commit f9f901a

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": [
@@ -4293,7 +4303,19 @@
42934303
"post_binary_hook": {
42944304
"function": "LPCTargetCode.lpc_patch"
42954305
},
4296-
"device_name": "LPC54114J256BD64"
4306+
"device_name": "LPC54114J256BD64",
4307+
"supported_c_libs": {
4308+
"arm": [
4309+
"std", "small"
4310+
],
4311+
"gcc_arm": [
4312+
"std", "small"
4313+
]
4314+
},
4315+
"c_lib": "small",
4316+
"supported_application_profiles": [
4317+
"full", "bare-metal"
4318+
]
42974319
},
42984320
"MCU_LPC546XX": {
42994321
"core": "Cortex-M4F",
@@ -4347,7 +4369,19 @@
43474369
"device_name": "LPC54628J512ET180",
43484370
"post_binary_hook": {
43494371
"function": "LPCTargetCode.lpc_patch"
4350-
}
4372+
},
4373+
"supported_c_libs": {
4374+
"arm": [
4375+
"std", "small"
4376+
],
4377+
"gcc_arm": [
4378+
"std", "small"
4379+
]
4380+
},
4381+
"c_lib": "small",
4382+
"supported_application_profiles": [
4383+
"full", "bare-metal"
4384+
]
43514385
},
43524386
"LPC546XX": {
43534387
"supported_form_factors": [

0 commit comments

Comments
 (0)