aboutsummaryrefslogtreecommitdiff
path: root/examples/stm32/f4
diff options
context:
space:
mode:
authorMike Smith2012-01-02 21:03:22 -0800
committerPiotr Esden-Tempski2012-02-12 15:00:08 -0800
commitcdcfaaf6889929d376d99af83ce56b5ac22a8878 (patch)
tree600b63379384c8791de6e70f81009cec7645c0d5 /examples/stm32/f4
parent1a3ad6e998e169f04317a942719f22e85363f0d9 (diff)
F4 examples should build for F4, pass consistent arguments to the compiler and linker to ensure that compatible libraries are linked.
Diffstat (limited to 'examples/stm32/f4')
-rw-r--r--examples/stm32/f4/Makefile.include4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/stm32/f4/Makefile.include b/examples/stm32/f4/Makefile.include
index bed1aa8..801fa90 100644
--- a/examples/stm32/f4/Makefile.include
+++ b/examples/stm32/f4/Makefile.include
@@ -30,12 +30,12 @@ GDB = $(PREFIX)-gdb
#TOOLCHAIN_DIR := $(shell dirname `which $(CC)`)/../$(PREFIX)
TOOLCHAIN_DIR = ../../../../..
CFLAGS += -Os -g -Wall -Wextra -I$(TOOLCHAIN_DIR)/include \
- -fno-common -mcpu=cortex-m3 -mthumb -msoft-float -MD -DSTM32F4
+ -fno-common -mcpu=cortex-m4 -mthumb -msoft-float -MD -DSTM32F4
LDSCRIPT ?= $(BINARY).ld
LDFLAGS += -lc -lnosys -L$(TOOLCHAIN_DIR)/lib \
-L$(TOOLCHAIN_DIR)/lib/stm32/f4 \
-T$(LDSCRIPT) -nostartfiles -Wl,--gc-sections \
- -mthumb -march=armv7 -mfix-cortex-m3-ldrd -msoft-float
+ -mthumb -mcpu=cortex-m4 -march=armv7 -mfix-cortex-m3-ldrd -msoft-float
OBJS += $(BINARY).o
OOCD ?= openocd