Testing GPIO functionality

The functionality of the GPIO pins can be tested in different ways.

In most cases, application firmware is the most convenient way to control the GPIO pins state. It can be optimized to test only the needed pins or to run a dedicated test sequence with a test command.

The states of the GPIO pins can be controlled also with the Serial Wire Debug (SWD) debug interface. For more information, see Controlling GPIO pins with SWD.