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:
parent
c6cae514d4
commit
5c478a0c25
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user