If your custom board has a 10-pin Arm® Cortex® Debug Connector, connection to P19 is recommended.
Connect the boards as shown in the following figure.
Figure 1. Connecting an external board to P19
It is recommended to power the external board
separately from the DK. The voltage on the external board
must match that of the DK, which is 1.8V when the DK is powered through the USB
connector.
When the interface MCU detects that the ground pin 3 (GND) of P19 is pulled low, it programs or debugs the target chip on the external board instead of the onboard nRF5340 System on Chip (SoC).
If it is inconvenient to have a separate power supply on the external board, the nRF7002 DK can supply power through the Debug out connector P19. To enable this, short solder bridge SB47.
CAUTION:
To avoid damaging your board,
when SB47 is shorted, do not connect a separate power supply to the external
board.
The following image shows P19 pinout schematic with
a description table.
Figure 2. Debug output connector P19
| Pin number | Signal | Description |
|---|---|---|
| 1 | SWD0_VTG | Voltage supply from the external target |
| 2 | SWD0_SWDIO | Serial Wire Debug (SWD) Data Input/Output |
| 3 | SWD0_SELECT | Ground on target board |
| 4 | SWD0_SWDCLK | Serial Wire Clock line |
| 5 | GND | Ground |
| 6 | SWD0_SW0 | Serial Wire Output (SWO) line is not needed for programming and debugging over SWD |
| 7 | N.C. | Not used |
| 8 | N.C. | Not used |
| 9 | N.C. | Not used |
| 10 | SWD0_RESET | Reset line |