add flash target for stm32 board using stm32cubeprogammger cli

This commit is contained in:
hathach
2019-03-09 01:04:26 +07:00
parent 57d069981f
commit 0ff7d609f0
2 changed files with 10 additions and 1 deletions

View File

@@ -25,3 +25,10 @@ INC += \
VENDOR = st
CHIP_FAMILY = stm32f4
# Path to STM32 Cube Programmer CLI
STM32Prog = STM32_Programmer_CLI
# flash target to download
flash: $(BUILD)/$(BOARD)-firmware.elf
$(STM32Prog) --connect port=swd --write $< --go