What Debug mode to use ? JTAG 4 Pins or 5 Pins ?
I'm learning arm, I have a custom board with a STM32F4 MCU and a debug probe with JTAG 20 pins.
In CubeMX System Core> SYS> Debug I have this option:
- Serial Wire
- JTAG (4 Pins)
- JTAG (5 Pins)
- Trace Asynchronous Sw
- JTAG with Trace with Synchro (1 bit)
- JTAG with Trace with Synchro (2 bit)
- JTAG with Trace with Synchro (4 bit)
So my big question is which mode should I use JTAG (4 Pins) or JTAG (5 Pins). I don't understand the difference. My board has this label:
SWD> 3V3, DIO, CLK, GND
JTAG> 3V3, TDI, TMS, TCK, TDO, GND
Also please someone briefly explain to me what the other modes are used for?