Controlling GPIO pins with SWD

Serial Wire Debug (SWD) debug interface can be used for controlling GPIO pins if the functionality needs to be verified without firmware control. This section shows examples of testing the functionality of the GPIO pins in the input and output modes.

Note: If application firmware has already been programmed, firmware-configured peripherals may need to be disabled separately to ensure the correct functioning of the SWD control.

For more information on the GPIO pin control, see GPIO - General purpose input/output in nRF9160 Product Specification.