13.2.6.3.1 SW-DP and JTAG-DP Selection

Debug port selection is done by sending a specific SWDIOTMS sequence.

  • Switch from JTAG-DP to SW-DP. The sequence is:
    • Send more than 50 SWCLKTCK cycles with SWDIOTMS = 1
    • Send the 16-bit sequence on SWDIOTMS = 0111100111100111 (0x79E7 MSB first)
    • Send more than 50 SWCLKTCK cycles with SWDIOTMS = 1
  • Switch from SWD to JTAG. The sequence is:
    • Send more than 50 SWCLKTCK cycles with SWDIOTMS = 1
    • Send the 16-bit sequence on SWDIOTMS = 0011110011100111 (0x3CE7 MSB first)
    • Send more than 50 SWCLKTCK cycles with SWDIOTMS = 1