summaryrefslogtreecommitdiff
path: root/examples/rules.mk
diff options
context:
space:
mode:
Diffstat (limited to 'examples/rules.mk')
-rw-r--r--examples/rules.mk3
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/rules.mk b/examples/rules.mk
index 4fce468fd..861973284 100644
--- a/examples/rules.mk
+++ b/examples/rules.mk
@@ -169,8 +169,9 @@ flash-stlink: $(BUILD)/$(PROJECT).elf
STM32_Programmer_CLI --connect port=swd --write $< --go
# flash with pyocd
+PYOCD_OPTION ?=
flash-pyocd: $(BUILD)/$(PROJECT).hex
- pyocd flash -t $(PYOCD_TARGET) $<
+ pyocd flash -t $(PYOCD_TARGET) $(PYOCD_OPTION) $<
pyocd reset -t $(PYOCD_TARGET)
# flash with Black Magic Probe