clang samd51 compile but does not run, rom is correct, but ram is lacking bss. Got stkerr -> hardfault

This commit is contained in:
hathach
2024-04-19 13:40:42 +07:00
parent 824e39ddeb
commit be0d62ba6c
7 changed files with 45 additions and 20 deletions

View File

@@ -6,7 +6,11 @@ if (TOOLCHAIN STREQUAL "gcc")
set(FREERTOS_PORT GCC_ARM_CM3 CACHE INTERNAL "")
elseif (TOOLCHAIN STREQUAL "clang")
message(FATAL_ERROR "Clang is not supported for this target")
set(TOOLCHAIN_COMMON_FLAGS
--target=arm-none-eabi
-mcpu=cortex-m3
)
set(FREERTOS_PORT GCC_ARM_CM3 CACHE INTERNAL "")
elseif (TOOLCHAIN STREQUAL "iar")
set(TOOLCHAIN_COMMON_FLAGS