Skip to content

Commit

Permalink
boards/microbit-v2: add support for pyocd programmer
Browse files Browse the repository at this point in the history
  • Loading branch information
aabadie committed Feb 10, 2021
1 parent c6cae51 commit 5c478a0
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
10 changes: 8 additions & 2 deletions boards/microbit-v2/Makefile.include
@@ -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
3 changes: 2 additions & 1 deletion boards/microbit-v2/doc.txt
Expand Up @@ -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
Expand Down

0 comments on commit 5c478a0

Please sign in to comment.