From d60a6045d8ae4244446f2c543f32fd0237e8e22c Mon Sep 17 00:00:00 2001 From: Joakim Gebart Date: Thu, 22 Jan 2015 13:36:23 +0100 Subject: [PATCH] nucleo-f334: Add -mno-thumb-interwork. Cortex-M processors only support Thumb instructions (no ARM mode code). Signed-off-by: Joakim Gebart --- boards/nucleo-f334/Makefile.include | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/boards/nucleo-f334/Makefile.include b/boards/nucleo-f334/Makefile.include index 089b30718a..a861d93e70 100644 --- a/boards/nucleo-f334/Makefile.include +++ b/boards/nucleo-f334/Makefile.include @@ -36,10 +36,10 @@ export CXXEXFLAGS += # define build specific options export CPU_USAGE = -mcpu=cortex-m4 export FPU_USAGE = -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 += -ggdb -g3 -std=gnu99 $(CPU_USAGE) $(FPU_USAGE) -mlittle-endian -static -lgcc -mthumb -mthumb-interwork -nostartfiles +export LINKFLAGS += -ggdb -g3 -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 binary