The current Dormant to SWD code manages correctly the case where SWD is default/the only interface
If the chip has both SWD & Jtag and default is Jtag, it lacks the Jtag->dormant sequence and does not work
The proposed patch adds that sequence
For what i could see, it still works with RP2040 and older Arm chips i have (STM32F1/GD32F3)
Tested on a chip with both Jtag & SWD/Default jtag + Debug Protocol v3, it works with the change, doesnt without
NB: Not completely sure the 8 trailer '1' bits are really needed, it works fine with, was there in the demo code
Detailed description
For what i could see, it still works with RP2040 and older Arm chips i have (STM32F1/GD32F3) Tested on a chip with both Jtag & SWD/Default jtag + Debug Protocol v3, it works with the change, doesnt without
NB: Not completely sure the 8 trailer '1' bits are really needed, it works fine with, was there in the demo code
Your checklist for this pull request
Closing issues