Use `-t ARM` for v8m targets

And pick the correct compiler
pull/7558/head
Jimmy Brisson 2018-07-19 10:48:35 -05:00
parent 49ae504d97
commit c030c6a52b
1 changed files with 4 additions and 0 deletions

View File

@ -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]