summaryrefslogtreecommitdiff
path: root/examples/rules.mk
diff options
context:
space:
mode:
authormainr <[email protected]>2021-08-26 07:46:23 -0400
committerhathach <[email protected]>2021-08-29 22:51:46 +0700
commitb169db3fd6359a127ba92d4bd5cd48a3a5286fd7 (patch)
treecce1c7c7efb1c99d48746f3517505fbeac9c688c /examples/rules.mk
parent90af8562b1e361c213d70242fc3ae5883e54f33a (diff)
Add PYOCD_OPTION
Added PYOCD_OPTION to pass board-specific options to build
Diffstat (limited to 'examples/rules.mk')
-rw-r--r--examples/rules.mk2
1 files changed, 1 insertions, 1 deletions
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