add flash-pyocd support

This commit is contained in:
hathach
2020-10-08 17:19:48 +07:00
parent ec018fbf4e
commit e8b3af038e
2 changed files with 7 additions and 6 deletions

View File

@@ -163,4 +163,8 @@ flash-jlink: $(BUILD)/$(BOARD)-firmware.hex
flash-stlink: $(BUILD)/$(BOARD)-firmware.elf
STM32_Programmer_CLI --connect port=swd --write $< --go
# flash with pyocd
flash-pyocd: $(BUILD)/$(BOARD)-firmware.hex
pyocd flash -t $(PYOCD_TARGET) $<
endif # Make target