Skip to content
Commit c82cd7c0 authored by Martí Bolívar's avatar Martí Bolívar Committed by Johan Hedberg
Browse files

boards: bbc_microbit: add nrfjprog flash support

Segger offers J-Link firmware for the debug MCU on the BBC micro:bit.
If this firmware is installed, it allows programming via nrfjprog and
JLink. Add support for this in the board.cmake.

Leave the default at pyocd, to support the factory-programmed
firmware.

With this patch, users who have installed the JLink firmware can flash
this board with nrfjprog using:

$ west flash -r nrfjprog

And can flash or debug with jlink using:

$ west flash -r jlink
$ west debug -r jlink

As usual with runner overrides, you can omit the '-r {nrfjprog,jlink}'
if BOARD_FLASH_RUNNER as a CMake variable is set to nrfjprog or
BOARD_DEBUG_RUNNER is set to jlink.

For more details on this Segger firmware, see:

https://www.segger.com/products/debug-probes/j-link/models/other-j-links/bbc-microbit-j-link-upgrade/



Signed-off-by: default avatarMartí Bolívar <marti.bolivar@nordicsemi.no>
parent 2690c9e5
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment