Skip to content

nRF52 common

Common files and configuration for nRF52 boards.

Related Boards

By default, nrf52 boards are flashed using Jlink. nRF52840-MDK uses PyOCD by default.

To flash the board, use BOARD=<nrf52 board> with the make command.
Example with hello-world application:

Terminal window
make BOARD=<nrf52 board> -C examples/basic/hello-world flash

OpenOCD can also be used to flash nrf52 boards (except thingy52 and ruuvitag because they are hardly coupled with JLink segger_rtt stdio). For the moment, the latest stable version of OpenOCD (0.10) doesn’t contain any support for nrf52 but versions built against the current development version can be used.

To flash the board with OpenOCD, use the PROGRAMMER variable:

Terminal window
PROGRAMMER=openocd make BOARD=<nrf52 board> -C examples/basic/hello-world flash

It is also possible to use the SWD interface of a ST-LINK/V2 in-circuit debugger/programmer with OpenOCD to flash a nrf52 board:

Terminal window
PROGRAMMER=openocd OPENOCD_DEBUG_ADAPTER=stlink make BOARD=<nrf52 board> -C examples/basic/hello-world flash