MLECO-2512: Minor improvement for helper scripts.
Python scripts 'build_default.py' and 'set_up_default_resources.py'
now allow building for non-default Ethos-U configurations: H32, H64,
H256 and Y512.
Change-Id: Iefdbf135410396c4dc0be73462644725d4b47910
diff --git a/scripts/cmake/bare-metal-sources.cmake b/scripts/cmake/bare-metal-sources.cmake
index 3fe9b1b..c797d5f 100644
--- a/scripts/cmake/bare-metal-sources.cmake
+++ b/scripts/cmake/bare-metal-sources.cmake
@@ -60,6 +60,10 @@
"${DEFAULT_NPU_MEM_MODE}"
STRING)
+ USER_OPTION(ETHOS_U_NPU_CONFIG_ID "Specifies the configuration ID for the NPU."
+ "${DEFAULT_NPU_CONFIG_ID}"
+ STRING)
+
if (ETHOS_U_NPU_MEMORY_MODE STREQUAL Sram_Only)
if (ETHOS_U_NPU_ID STREQUAL U55)
diff --git a/scripts/cmake/toolchains/bare-metal-armclang.cmake b/scripts/cmake/toolchains/bare-metal-armclang.cmake
index d07aa9e..c1f066b 100644
--- a/scripts/cmake/toolchains/bare-metal-armclang.cmake
+++ b/scripts/cmake/toolchains/bare-metal-armclang.cmake
@@ -43,7 +43,7 @@
set(FLOAT_ABI hard)
set(ARM_MATH_DSP 1)
set(ARM_MATH_LOOPUNROLL 1)
- set(CPU_LINK_OPT "--cpu=8.1-M.Main.dsp")
+ set(CPU_LINK_OPT "--cpu=Cortex-M55")
elseif(CMAKE_SYSTEM_PROCESSOR STREQUAL cortex-m33)
# Flags for cortex-m33 to go here
endif()