From 7eb2122f6347ec5492616a9c40ee59a1f6060e76 Mon Sep 17 00:00:00 2001 From: Harrison Mutai Date: Wed, 3 Mar 2021 11:06:31 +0000 Subject: [PATCH] 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. --- targets/TARGET_NUVOTON/CMakeLists.txt | 1 + targets/targets.json | 76 +++++++++++++++++++++------ 2 files changed, 62 insertions(+), 15 deletions(-) diff --git a/targets/TARGET_NUVOTON/CMakeLists.txt b/targets/TARGET_NUVOTON/CMakeLists.txt index 174b848b1a..bb2d5a7517 100644 --- a/targets/TARGET_NUVOTON/CMakeLists.txt +++ b/targets/TARGET_NUVOTON/CMakeLists.txt @@ -25,3 +25,4 @@ target_sources(mbed-nuvoton ) target_link_libraries(mbed-nuvoton INTERFACE mbed-cmsis-cortex-m) + diff --git a/targets/targets.json b/targets/targets.json index 32711baa82..4b394b75d1 100644 --- a/targets/targets.json +++ b/targets/targets.json @@ -6006,9 +6006,7 @@ "is_disk_virtual": true, "supported_toolchains": [ "ARM", - "uARM", - "GCC_ARM", - "IAR" + "GCC_ARM" ], "config": { "gpio-irq-debounce-enable": { @@ -6081,6 +6079,19 @@ }, "detect_code": [ "1302" + ], + "supported_c_libs": { + "arm": [ + "std", + "small" + ], + "gcc_arm": [ + "std", + "small" + ] + }, + "supported_application_profiles": [ + "full", "bare-metal" ] }, "NUMAKER_PFM_M453": { @@ -6308,9 +6319,7 @@ "is_disk_virtual": true, "supported_toolchains": [ "ARM", - "uARM", - "GCC_ARM", - "IAR" + "GCC_ARM" ], "config": { "spim-ccm-enable": { @@ -6414,7 +6423,20 @@ "overrides": { "deep-sleep-latency": 1, "tickless-from-us-ticker": true - } + }, + "supported_c_libs": { + "arm": [ + "std", + "small" + ], + "gcc_arm": [ + "std", + "small" + ] + }, + "supported_application_profiles": [ + "full", "bare-metal" + ] }, "NUMAKER_PFM_M487": { "inherits": [ @@ -6649,9 +6671,8 @@ "LPTICKER_DELAY_TICKS=4" ], "supported_toolchains": [ - "ARMC6", - "GCC_ARM", - "IAR" + "ARM", + "GCC_ARM" ], "config": { "usb-uart": { @@ -6742,7 +6763,20 @@ 512 ] ], - "bootloader_supported": true + "bootloader_supported": true, + "supported_c_libs": { + "arm": [ + "std", + "small" + ], + "gcc_arm": [ + "std", + "small" + ] + }, + "supported_application_profiles": [ + "full", "bare-metal" + ] }, "NUMAKER_IOT_M252": { "inherits": [ @@ -7560,9 +7594,8 @@ ], "is_disk_virtual": true, "supported_toolchains": [ - "ARMC6", - "GCC_ARM", - "IAR" + "ARM", + "GCC_ARM" ], "config": { "usb-uart": { @@ -7653,7 +7686,20 @@ "deep-sleep-latency": 1, "tickless-from-us-ticker": true }, - "forced_reset_timeout": 3 + "forced_reset_timeout": 3, + "supported_c_libs": { + "arm": [ + "std", + "small" + ], + "gcc_arm": [ + "std", + "small" + ] + }, + "supported_application_profiles": [ + "full", "bare-metal" + ] }, "NUMAKER_IOT_M263A": { "inherits": [