summaryrefslogtreecommitdiff
path: root/examples/build_system/make/cpu
diff options
context:
space:
mode:
authorHa Thach <[email protected]>2025-06-12 21:50:23 +0700
committerGitHub <[email protected]>2025-06-12 21:50:23 +0700
commit99b4ebeb10535e7a10cdfcac29723286b7bc4f0d (patch)
tree4a42611449e2adcf33c0947b6c8074a83cfb3edc /examples/build_system/make/cpu
parent170de855a36dd329911e53e1e9e29fb161867821 (diff)
parent7d66a3e7758665138f495b5d9174c1874332ce1a (diff)
Merge pull request #3140 from james-advatek/stm32n657nucleo
Add STM32N657 Nucleo Board support
Diffstat (limited to 'examples/build_system/make/cpu')
-rw-r--r--examples/build_system/make/cpu/cortex-m55.mk28
1 files changed, 28 insertions, 0 deletions
diff --git a/examples/build_system/make/cpu/cortex-m55.mk b/examples/build_system/make/cpu/cortex-m55.mk
new file mode 100644
index 000000000..de627caed
--- /dev/null
+++ b/examples/build_system/make/cpu/cortex-m55.mk
@@ -0,0 +1,28 @@
+ifeq ($(TOOLCHAIN),gcc)
+ CFLAGS += \
+ -mthumb \
+ -mcpu=cortex-m55 \
+ -mfloat-abi=hard \
+ -mfpu=fpv5-d16 \
+ -mcmse
+
+else ifeq ($(TOOLCHAIN),clang)
+ CFLAGS += \
+ --target=arm-none-eabi \
+ -mcpu=cortex-m55 \
+ -mfpu=fpv5-d16 \
+
+else ifeq ($(TOOLCHAIN),iar)
+ CFLAGS += \
+ --cpu cortex-m55 \
+ --fpu VFPv5_D16 \
+
+ ASFLAGS += \
+ --cpu cortex-m55 \
+ --fpu VFPv5_D16 \
+
+else
+ $(error "TOOLCHAIN is not supported")
+endif
+
+FREERTOS_PORTABLE_SRC ?= $(FREERTOS_PORTABLE_PATH)/ARM_CM55_NTZ/non_secure