Hello @PS_115,
Q1.
The STLINK-V3SET supports STM32 targets, with SWD up to 24 MHz, JTAG up to 21 MHz, and a VCP function on the same STDC14 interface. So for an STM32MP157FAC1 custom board, using an STDC14 connector with STLINK-V3SET is a valid approach for debugging and console access.
Flash programming cannot be performed via JTAG/SWD. For MPUs, a USB interface is required for programming. The STLINK-V3SET can only be used for debugging and console access.
Q2.
Your UART wiring is correct. STLINK documentation states that T_VCP_RX is an output from the probe and must connect to the target UART_RX, while T_VCP_TX is an input to the probe and must connect to the target UART_TX.
On STM32MP157FAC1, PG11 can be configured as UART4_TX and PB2 can be configured as UART4_RX, which matches your proposed connection of T_VCP_TX to PG11 and T_VCP_RX to PB2. In other words:
Q3.
Some protection is recommended, but it should be light and must not degrade the signal quality of SWD or UART.
The STM32MP157 datasheet and AN5031 (section 8.3.3) provides a recommended protection example for the reset pin, and more generally includes ESD and I/O electrical sensitivity information that should be considered in the board design.
For SWD and VCP UART lines, the practical recommendation is:
-
add a GND reference close to the connector and keep the traces short.
-
if the connector is user-accessible, use low-capacitance ESD protection devices placed close to the connector, so the added capacitance does not distort SWCLK/SWDIO/UART edges.
-
avoid large RC filtering on SWDIO/SWCLK, because that can break debug access at higher speed.
-
follow the same philosophy as the datasheet reset-pin protection scheme for externally exposed debug pins, while adapting the protection choice to high-speed digital lines.
Best Regards,
Zakaria
In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question.