The nRF5340 DK supports programming and debugging external boards with an nRF51, nRF52, and nRF53 Series System on Chip (SoC), or the nRF91 Series System in Package (SiP).
The interface MCU on the nRF5340 DK runs SEGGER J-Link Onboard (OB) interface firmware. It is used to program and debug the application firmware of the nRF5340 SoC, by default.
To program/debug an external board instead, connect to the Debug out connector (P19) using a 10-pin cable or use P20 for custom connection.