1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

boards/microbit-v2: add support for pyocd programmer

This commit is contained in:
Alexandre Abadie 2021-02-08 21:29:51 +01:00
parent c6cae514d4
commit 5c478a0c25
No known key found for this signature in database
GPG Key ID: 1C919A403CAE1405
2 changed files with 10 additions and 3 deletions

View File

@ -1,6 +1,12 @@
# for this board we support flashing via openocd
# for this board, flash with OpenOCD by default. PyOCD is also supported.
PROGRAMMER ?= openocd
DEBUG_ADAPTER = dap
ifeq (pyocd,$(PROGRAMMER))
# The board is not recognized automatically by pyocd, so the CPU target
# option is passed explicitly
FLASH_TARGET_TYPE ?= -t $(CPU)
else ifeq (openocd,$(PROGRAMMER))
DEBUG_ADAPTER = dap
endif
# include nrf52 boards common configuration
include $(RIOTBOARD)/common/nrf52/Makefile.include

View File

@ -17,7 +17,8 @@ microphone, an accelerometer and a magnetometer.
## Flashing and Debugging
The board can be flashed using OpenOCD. Debugger is also available with OpenOCD.
The board can be flashed using OpenOCD and PyOCD. Debugger is also available
with both programmers.
```
BOARD=microbit make flash