summaryrefslogtreecommitdiff
path: root/chip/stm32/build.mk
diff options
context:
space:
mode:
Diffstat (limited to 'chip/stm32/build.mk')
-rw-r--r--chip/stm32/build.mk2
1 files changed, 2 insertions, 0 deletions
diff --git a/chip/stm32/build.mk b/chip/stm32/build.mk
index 8db57f86bf..957478282c 100644
--- a/chip/stm32/build.mk
+++ b/chip/stm32/build.mk
@@ -8,6 +8,8 @@
# STM32 SoC family has a Cortex-M3 ARM core
CORE:=cortex-m
+# Force Cortex-M3 subset of instructions
+CFLAGS_CPU+=-march=armv7-m -mcpu=cortex-m3
chip-y=dma.o hwtimer.o system.o uart.o
chip-y+=jtag-$(CHIP_FAMILY).o clock-$(CHIP_FAMILY).o gpio-$(CHIP_FAMILY).o