Add PYOCD_OPTION

Added PYOCD_OPTION to pass board-specific options to build
This commit is contained in:
mainr 2021-08-26 07:46:23 -04:00 committed by hathach
parent 90af8562b1
commit b169db3fd6
2 changed files with 2 additions and 1 deletions

View File

@ -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

View File

@ -10,4 +10,5 @@ JLINK_DEVICE = atsamd21g17a
#flash: flash-jlink
PYOCD_TARGET = atsamd21g17a
PYOCD_OPTION = -O dap_protocol=swd
flash: flash-pyocd