diff options
author | Paul Selkirk <paul@psgd.org> | 2016-06-07 11:59:43 -0400 |
---|---|---|
committer | Paul Selkirk <paul@psgd.org> | 2016-06-07 11:59:43 -0400 |
commit | 2dd70b171bde90620a631b6ba8d129acc911f93e (patch) | |
tree | 11c0c83e21c34dea4f9d6914908d03dce8835add /projects/bootloader/Makefile | |
parent | ea4eda95284cd3d34b9956bf1e27046a0d8c3cf6 (diff) |
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).
Diffstat (limited to 'projects/bootloader/Makefile')
-rw-r--r-- | projects/bootloader/Makefile | 13 |
1 files changed, 13 insertions, 0 deletions
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) |