From 2dd70b171bde90620a631b6ba8d129acc911f93e Mon Sep 17 00:00:00 2001 From: Paul Selkirk Date: Tue, 7 Jun 2016 11:59:43 -0400 Subject: Check the HARDWARE_EARLY_DFU_JUMP flag as soon as possible in the boot process. This avoids the situation where the bootloader systick happens during firmware initialization, and freaks out. Also build the bootloader with the minimum resources needed (no RTOS, no SPI, no I2C). --- projects/bootloader/Makefile | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'projects/bootloader/Makefile') diff --git a/projects/bootloader/Makefile b/projects/bootloader/Makefile index 4eef758..1e489c2 100644 --- a/projects/bootloader/Makefile +++ b/projects/bootloader/Makefile @@ -2,6 +2,19 @@ PROG = bootloader OBJS = crc32.o dfu.o +BOARD_OBJS = \ + ./stm-init.o \ + $(TOPLEVEL)/stm-fmc.o \ + $(TOPLEVEL)/stm-uart.o \ + $(TOPLEVEL)/stm-flash.o \ + $(TOPLEVEL)/syscalls.o \ + $(BOARD_DIR)/system_stm32f4xx.o \ + $(BOARD_DIR)/stm32f4xx_hal_msp.o \ + ./startup_stm32f429xx.o \ + ./stm32f4xx_it.o + +LIBS = $(MBED_DIR)/libstmf4.a + all: $(PROG:=.elf) %.elf: %.o $(BOARD_OBJS) $(OBJS) $(LIBS) -- cgit v1.2.3