Skip to main content
Associate
June 17, 2026
Solved

Programming tool for STM32MP157FAC1 and ESD protection required or not ?

  • June 17, 2026
  • 2 replies
  • 47 views

Hello,

We are designing a custom board using the STM32MP157FAC1 device. For programming and debugging, we are planning to provide an STDC14 connector on our board and use the STLINK-V3SET debugger/programmer.

We have the following queries:

(1.) Is the STLINK-V3SET suitable for programming and debugging the STM32MP157FAC1 device?


(2.) We have connected T_VCP_TX (Virtual COM Port transmit signal) to PG11, which can be configured as UART4_TX, and T_VCP_RX (Virtual COM Port receive signal) to PB2, which can be configured as UART4_RX on the STM32MP157. Kindly confirm whether this connection scheme is correct.


(3.) The SWD and Virtual COM UART signals are connected directly from the STDC14 connector to the STM32MP157FAC1 device. Is any ESD protection recommended on these signals? If yes, kindly share the relevant reference.

Regards,

Prashant Sharma

Best answer by ZAKARIA_C1

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:

  • T_VCP_TX → PG11 / UART4_TX is correct.

  • T_VCP_RX → PB2 / UART4_RX is correct.

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

2 replies

LCE
Principal II
June 17, 2026

ESD protection:

If that board is always only used and handled in an ESD-safe environment, it’s not necessary.

But if you have the space on the board and can afford a few extra cents, always put at least some low cap TVS on there, at least some small stuff in 0603 or SOT23.

I’m currently using a few ESDAVLC6-2BLY for all signals at the ST-Link connector.

ZAKARIA_C1Best answer
ST Employee
July 2, 2026

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:

  • T_VCP_TX → PG11 / UART4_TX is correct.

  • T_VCP_RX → PB2 / UART4_RX is correct.

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.