diff options
| author | hathach <[email protected]> | 2019-03-09 01:04:26 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2019-03-09 01:04:26 +0700 |
| commit | 0ff7d609f0268d4abcec9c6ba2f3e24104a3fd96 (patch) | |
| tree | 2d6ece0939636373e39070b5d68ce6d473c79888 /hw | |
| parent | 57d069981fb3b2e18d282ecfb72ecbf2093bdebd (diff) | |
add flash target for stm32 board using stm32cubeprogammger cli
Diffstat (limited to 'hw')
| -rw-r--r-- | hw/bsp/stm32f407g_disc1/board.mk | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/hw/bsp/stm32f407g_disc1/board.mk b/hw/bsp/stm32f407g_disc1/board.mk index bc8396723..0fc35cee7 100644 --- a/hw/bsp/stm32f407g_disc1/board.mk +++ b/hw/bsp/stm32f407g_disc1/board.mk @@ -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 |
