diff options
| author | mainr <[email protected]> | 2021-08-26 07:46:23 -0400 |
|---|---|---|
| committer | hathach <[email protected]> | 2021-08-29 22:51:46 +0700 |
| commit | b169db3fd6359a127ba92d4bd5cd48a3a5286fd7 (patch) | |
| tree | cce1c7c7efb1c99d48746f3517505fbeac9c688c | |
| parent | 90af8562b1e361c213d70242fc3ae5883e54f33a (diff) | |
Add PYOCD_OPTION
Added PYOCD_OPTION to pass board-specific options to build
| -rw-r--r-- | examples/rules.mk | 2 | ||||
| -rw-r--r-- | hw/bsp/samd21/boards/curiosity_nano/board.mk | 1 |
2 files changed, 2 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 diff --git a/hw/bsp/samd21/boards/curiosity_nano/board.mk b/hw/bsp/samd21/boards/curiosity_nano/board.mk index 05257e88c..767788b86 100644 --- a/hw/bsp/samd21/boards/curiosity_nano/board.mk +++ b/hw/bsp/samd21/boards/curiosity_nano/board.mk @@ -10,4 +10,5 @@ JLINK_DEVICE = atsamd21g17a #flash: flash-jlink PYOCD_TARGET = atsamd21g17a +PYOCD_OPTION = -O dap_protocol=swd flash: flash-pyocd |
