From 4f45071940bd14233d3bf5d17944b8be2c7cbd2b Mon Sep 17 00:00:00 2001 From: Pavol Rusnak Date: Sun, 19 Mar 2017 15:29:48 +0100 Subject: [PATCH] bootloader: add flash target to makefile --- Makefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Makefile b/Makefile index 9ac949bbb..8be830b44 100644 --- a/Makefile +++ b/Makefile @@ -3,6 +3,7 @@ JOBS=4 MAKE=make -j $(JOBS) +BOOTLOADER_BUILD_DIR=micropython/bootloader/build TREZORHAL_BUILD_DIR=micropython/firmware/build TREZORHAL_PORT_OPTS=FROZEN_MPY_DIR=src @@ -60,6 +61,9 @@ clean_cross: ## clean mpy-cross build flash: ## flash firmware using st-flash st-flash write $(TREZORHAL_BUILD_DIR)/firmware.bin 0x8000000 +flash_bootloader: ## flash bootloader using st-flash + st-flash write $(BOOTLOADER_BUILD_DIR)/bootloader.bin 0x8000000 + flash_openocd: $(TREZORHAL_BUILD_DIR)/firmware.hex ## flash firmware using openocd openocd -f interface/stlink-v2.cfg -f target/stm32f4x.cfg \ -c "init" \