From e8b3af038edf2195a8b65e3f66f7097445f07ff2 Mon Sep 17 00:00:00 2001 From: hathach Date: Thu, 8 Oct 2020 17:19:48 +0700 Subject: add flash-pyocd support --- examples/rules.mk | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'examples') diff --git a/examples/rules.mk b/examples/rules.mk index e972ce735..a062c29c5 100644 --- a/examples/rules.mk +++ b/examples/rules.mk @@ -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 -- cgit v1.3.1