Skip to content

Commit e854af4

Browse files
Add bare metal support to Nuvoton targets
Modify `targets.json` to configure bare metal for the following targets: NUMAKER_IOT_M252, NUMAKER_IOT_M263A, NUMAKER_IOT_M487, NUMAKER_PFM_M487, NUMAKER_PFM_NUC472. Add target link interface between nuvoton library and mbed-cmsis-cortex-m.
1 parent acde733 commit e854af4

File tree

2 files changed

+61
-13
lines changed

2 files changed

+61
-13
lines changed

targets/TARGET_NUVOTON/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,5 @@ target_sources(mbed-nuvoton
2323
nu_timer.c
2424
USBEndpoints_Nuvoton.cpp
2525
)
26+
27+
target_link_libraries(mbed-nuvoton INTERFACE mbed-cmsis-cortex-m)

targets/targets.json

Lines changed: 59 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -5870,9 +5870,7 @@
58705870
"is_disk_virtual": true,
58715871
"supported_toolchains": [
58725872
"ARM",
5873-
"uARM",
5874-
"GCC_ARM",
5875-
"IAR"
5873+
"GCC_ARM"
58765874
],
58775875
"config": {
58785876
"gpio-irq-debounce-enable": {
@@ -5945,6 +5943,19 @@
59455943
},
59465944
"detect_code": [
59475945
"1302"
5946+
],
5947+
"supported_c_libs": {
5948+
"arm": [
5949+
"std",
5950+
"small"
5951+
],
5952+
"gcc_arm": [
5953+
"std",
5954+
"small"
5955+
]
5956+
},
5957+
"supported_application_profiles": [
5958+
"bare-metal"
59485959
]
59495960
},
59505961
"NUMAKER_PFM_M453": {
@@ -6172,9 +6183,7 @@
61726183
"is_disk_virtual": true,
61736184
"supported_toolchains": [
61746185
"ARM",
6175-
"uARM",
6176-
"GCC_ARM",
6177-
"IAR"
6186+
"GCC_ARM"
61786187
],
61796188
"config": {
61806189
"spim-ccm-enable": {
@@ -6278,7 +6287,20 @@
62786287
"overrides": {
62796288
"deep-sleep-latency": 1,
62806289
"tickless-from-us-ticker": true
6281-
}
6290+
},
6291+
"supported_c_libs": {
6292+
"arm": [
6293+
"std",
6294+
"small"
6295+
],
6296+
"gcc_arm": [
6297+
"std",
6298+
"small"
6299+
]
6300+
},
6301+
"supported_application_profiles": [
6302+
"bare-metal"
6303+
]
62826304
},
62836305
"NUMAKER_PFM_M487": {
62846306
"inherits": [
@@ -6494,8 +6516,7 @@
64946516
],
64956517
"supported_toolchains": [
64966518
"ARMC6",
6497-
"GCC_ARM",
6498-
"IAR"
6519+
"GCC_ARM"
64996520
],
65006521
"config": {
65016522
"usb-uart": {
@@ -6586,7 +6607,20 @@
65866607
512
65876608
]
65886609
],
6589-
"bootloader_supported": true
6610+
"bootloader_supported": true,
6611+
"supported_c_libs": {
6612+
"arm": [
6613+
"std",
6614+
"small"
6615+
],
6616+
"gcc_arm": [
6617+
"std",
6618+
"small"
6619+
]
6620+
},
6621+
"supported_application_profiles": [
6622+
"bare-metal"
6623+
]
65906624
},
65916625
"NUMAKER_IOT_M252": {
65926626
"inherits": [
@@ -7395,8 +7429,7 @@
73957429
"is_disk_virtual": true,
73967430
"supported_toolchains": [
73977431
"ARMC6",
7398-
"GCC_ARM",
7399-
"IAR"
7432+
"GCC_ARM"
74007433
],
74017434
"config": {
74027435
"usb-uart": {
@@ -7487,7 +7520,20 @@
74877520
"deep-sleep-latency": 1,
74887521
"tickless-from-us-ticker": true
74897522
},
7490-
"forced_reset_timeout": 3
7523+
"forced_reset_timeout": 3,
7524+
"supported_c_libs": {
7525+
"arm": [
7526+
"std",
7527+
"small"
7528+
],
7529+
"gcc_arm": [
7530+
"std",
7531+
"small"
7532+
]
7533+
},
7534+
"supported_application_profiles": [
7535+
"full", "bare-metal"
7536+
]
74917537
},
74927538
"NUMAKER_IOT_M263A": {
74937539
"inherits": [

0 commit comments

Comments
 (0)