From b6f67a72eca95358b5ed7870664b98681cd6325e Mon Sep 17 00:00:00 2001 From: Joakim Gebart Date: Thu, 22 Jan 2015 13:36:23 +0100 Subject: [PATCH] stm32f4discovery: Add -mno-thumb-interwork. Cortex-M processors only support Thumb instructions (no ARM mode code). Signed-off-by: Joakim Gebart --- boards/stm32f4discovery/Makefile.include | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/boards/stm32f4discovery/Makefile.include b/boards/stm32f4discovery/Makefile.include index c0940be84e..a063eeaeb5 100644 --- a/boards/stm32f4discovery/Makefile.include +++ b/boards/stm32f4discovery/Makefile.include @@ -31,10 +31,10 @@ export RESET = $(RIOTBOARD)/$(BOARD)/dist/reset.sh # define build specific options CPU_USAGE = -mcpu=cortex-m4 FPU_USAGE = -mfloat-abi=hard -mfpu=fpv4-sp-d16 -export CFLAGS += -ggdb -g3 -std=gnu99 -Os -Wall -Wstrict-prototypes $(CPU_USAGE) $(FPU_USAGE) -mlittle-endian -mthumb -mthumb-interwork -nostartfiles +export CFLAGS += -ggdb -g3 -std=gnu99 -Os -Wall -Wstrict-prototypes $(CPU_USAGE) $(FPU_USAGE) -mlittle-endian -mthumb -mno-thumb-interwork -nostartfiles export CFLAGS += -ffunction-sections -fdata-sections -fno-builtin export ASFLAGS += -ggdb -g3 $(CPU_USAGE) $(FPU_USAGE) -mlittle-endian -export LINKFLAGS += -g3 -ggdb -std=gnu99 $(CPU_USAGE) $(FPU_USAGE) -mlittle-endian -static -lgcc -mthumb -mthumb-interwork -nostartfiles +export LINKFLAGS += -g3 -ggdb -std=gnu99 $(CPU_USAGE) $(FPU_USAGE) -mlittle-endian -static -lgcc -mthumb -mno-thumb-interwork -nostartfiles # $(LINKERSCRIPT) is specified in cpu/Makefile.include export LINKFLAGS += -T$(LINKERSCRIPT) export OFLAGS = -O ihex