mirror of
https://github.com/hathach/tinyusb.git
synced 2025-02-11 00:39:57 +00:00
Add PYOCD_OPTION
Added PYOCD_OPTION to pass board-specific options to build
This commit is contained in:
parent
90af8562b1
commit
b169db3fd6
@ -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
|
||||
|
@ -10,4 +10,5 @@ JLINK_DEVICE = atsamd21g17a
|
||||
#flash: flash-jlink
|
||||
|
||||
PYOCD_TARGET = atsamd21g17a
|
||||
PYOCD_OPTION = -O dap_protocol=swd
|
||||
flash: flash-pyocd
|
||||
|
Loading…
x
Reference in New Issue
Block a user