summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhathach <[email protected]>2023-01-24 12:57:07 +0700
committerhathach <[email protected]>2023-01-24 12:57:07 +0700
commitdf2ebe5d1a5da6b232704c2b6a35e66823f4127d (patch)
tree61655957624128bf6d38e3ebc8e470f5192551f8
parent0a4e611e3738189f00ec17ebd831436ed51e15ec (diff)
add iar --fpu option
-rw-r--r--hw/bsp/stm32f4/family.mk4
-rw-r--r--hw/bsp/stm32f7/family.mk4
2 files changed, 4 insertions, 4 deletions
diff --git a/hw/bsp/stm32f4/family.mk b/hw/bsp/stm32f4/family.mk
index 3da4f7bf8..e8352bad7 100644
--- a/hw/bsp/stm32f4/family.mk
+++ b/hw/bsp/stm32f4/family.mk
@@ -27,8 +27,8 @@ GCC_CFLAGS += \
GCC_CFLAGS += -Wno-error=cast-align
# IAR Flags
-IAR_CFLAGS += --cpu cortex-m4
-IAR_ASFLAGS += --cpu cortex-m4
+IAR_CFLAGS += --cpu cortex-m4 --fpu VFPv4
+IAR_ASFLAGS += --cpu cortex-m4 --fpu VFPv4
# -----------------
# Sources & Include
diff --git a/hw/bsp/stm32f7/family.mk b/hw/bsp/stm32f7/family.mk
index 733769d8b..781b8bb18 100644
--- a/hw/bsp/stm32f7/family.mk
+++ b/hw/bsp/stm32f7/family.mk
@@ -40,8 +40,8 @@ GCC_CFLAGS += \
GCC_CFLAGS += -Wno-error=shadow -Wno-error=cast-align
# IAR Flags
-IAR_CFLAGS += --cpu cortex-m7
-IAR_ASFLAGS += --cpu cortex-m7
+IAR_CFLAGS += --cpu cortex-m7 --fpu VFPv5_D16
+IAR_ASFLAGS += --cpu cortex-m7 --fpu VFPv5_D16
# -----------------
# Sources & Include