From c030c6a52b4b774b241c05ee0de9509813c3c583 Mon Sep 17 00:00:00 2001 From: Jimmy Brisson Date: Thu, 19 Jul 2018 10:48:35 -0500 Subject: [PATCH] Use `-t ARM` for v8m targets And pick the correct compiler --- tools/build_api.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tools/build_api.py b/tools/build_api.py index 0b127700ac..55f8712505 100644 --- a/tools/build_api.py +++ b/tools/build_api.py @@ -316,6 +316,10 @@ def prepare_toolchain(src_paths, build_dir, target, toolchain_name, raise NotSupportedException( "Target {} is not supported by toolchain {}".format( target.name, toolchain_name)) + if (toolchain_name == "ARM" and + target.core in ("Cortex-M23", "Cortex-M23-NS", + "Cortex-M33", "Cortex-M33-NS")): + toolchain_name = "ARMC6" try: cur_tc = TOOLCHAIN_CLASSES[toolchain_name]