diff options
| author | hathach <[email protected]> | 2020-01-10 15:22:45 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2020-01-10 15:22:45 +0700 |
| commit | 82c2674b192c0f4ef01632ee5538846b524c8893 (patch) | |
| tree | c08081e5fe83297e01ea45f67af754d47a90944f | |
| parent | 287d45155d0fdc45819dd49b991ebe548d014814 (diff) | |
clean up
| -rw-r--r-- | hw/bsp/stm32f103bluepill/board.mk | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/hw/bsp/stm32f103bluepill/board.mk b/hw/bsp/stm32f103bluepill/board.mk index 7c1a7b373..028c567b1 100644 --- a/hw/bsp/stm32f103bluepill/board.mk +++ b/hw/bsp/stm32f103bluepill/board.mk @@ -42,12 +42,9 @@ CHIP_FAMILY = stm32_fsdev FREERTOS_PORT = ARM_CM3 # For flash-jlink target -JLINK_DEVICE = stm32f303vc +JLINK_DEVICE = stm32f103c8 JLINK_IF = swd -# Path to STM32 Cube Programmer CLI, should be added into system path -STM32Prog = STM32_Programmer_CLI - -# flash target using on-board stlink -flash: $(BUILD)/$(BOARD)-firmware.elf - $(STM32Prog) --connect port=swd --write $< --go +# flash target ROM bootloader +flash: $(BUILD)/$(BOARD)-firmware.bin + dfu-util -R -a 0 --dfuse-address 0x08000000 -D $< |
