In the following example, a GPIO test is done in the input mode with
Serial Wire Debug (SWD) controls.
-
Write the GPIO pins connected with drive strength H0H1:
- Address: 0x50842700 (+ n x 0x4 for GPIO0-31)
- Data: 0x300
-
Write the GPIO pins to the input mode:
- Address: 0x50842514
- Data: 0x0
-
Set the GPIO pins to the wanted state from a production tester.
-
Read the GPIO status.
-
Compare the read value to the tester setting.