Select Debug Port.
More...
Select Debug Port.
The command selects the debug port. SWD and JTAG share the following signals:
- SWCLK and TCK -> also named SWCLK/TCK
- SWDIO and TMS -> also named SWDIO/TMS JTAG nTRST is optional and not required.
Command to select the debug port.
BYTE | BYTE |
> 0x04 | Port |
******|******|
Where
- Port: Selects the active debug port and configures its I/O pins. The following values can be used.
- 0 - Port Disabled (I/O pins in High-Z)
- 1 - SWD Port (SWCLK, SWDIO) + nRESET
- 2 - JTAG Port (TCK, TMS, TDI, TDO, RTCK, nTRST) + nRESET
Response to the port selection.
BYTE | BYTE |
< 0x04 | Status |
******|********|
Where
- Status: The status code can be
- 0 - Success
- otherwise Error