Skip to content

Commit c030c6a

Browse files
committed
Use -t ARM for v8m targets
And pick the correct compiler
1 parent 49ae504 commit c030c6a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tools/build_api.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -316,6 +316,10 @@ def prepare_toolchain(src_paths, build_dir, target, toolchain_name,
316316
raise NotSupportedException(
317317
"Target {} is not supported by toolchain {}".format(
318318
target.name, toolchain_name))
319+
if (toolchain_name == "ARM" and
320+
target.core in ("Cortex-M23", "Cortex-M23-NS",
321+
"Cortex-M33", "Cortex-M33-NS")):
322+
toolchain_name = "ARMC6"
319323

320324
try:
321325
cur_tc = TOOLCHAIN_CLASSES[toolchain_name]

0 commit comments

Comments
 (0)