Created: Mar, 2015
It turns out the nRF51-DK (which builds around an nRF51422 SoC) board has a JLink debug-out port that can be used to program other nRF51822 and nRF51422 SoCs, or more generally other ARM chips supported by JLink. It is not hard to do and can be handy if you don’t have another standalone JLink debugger.
The “nRF51-DK Hardware Files 1.1.0” shows the schematic and layout of the board (PCA10028). Since the 9-pin debug-out port pins (P19) are tiny and may require special cables, it is more convenient to use the shield debug-out (P20). The figure below is taken from the nRF51-DK schematic, showing the pinouts of P20:
Figure 1: Pinout of shield debug-out (P20) on nRF51-DK board
To determine the pin mapping of P20, just use the fact that pin #1 is closer to the USB port than pin #8.
nRF51 SoCs can be programmed by the SWD interface which JLink supports. If the target board is not powered by default (which is very likely), use the following mapping:
The SH_VTG is low and SH_GND_DETECT is high by default when nothing is connected to P20. That is how JLink chip senses the presence of another nRF51 SoC in debug-out port.