From b169db3fd6359a127ba92d4bd5cd48a3a5286fd7 Mon Sep 17 00:00:00 2001 From: mainr Date: Thu, 26 Aug 2021 07:46:23 -0400 Subject: Add PYOCD_OPTION Added PYOCD_OPTION to pass board-specific options to build --- examples/rules.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'examples/rules.mk') diff --git a/examples/rules.mk b/examples/rules.mk index 4bad747da..4af2f2be4 100644 --- a/examples/rules.mk +++ b/examples/rules.mk @@ -170,7 +170,7 @@ flash-stlink: $(BUILD)/$(PROJECT).elf # flash with pyocd flash-pyocd: $(BUILD)/$(PROJECT).hex - pyocd flash -t $(PYOCD_TARGET) -O dap_protocol=swd $< + pyocd flash -t $(PYOCD_TARGET) $(PYOCD_OPTION) $< pyocd reset -t $(PYOCD_TARGET) # flash with Black Magic Probe -- cgit v1.3.1