Skip to main content
Visitor
August 5, 2026
Question

STLINK-V3MODS resets target MCU on connection even with T_NRST disconnected

  • August 5, 2026
  • 5 replies
  • 35 views

Hi all,

I have a custom board with an integrated STLINK-V3MODS, connected to an STM32H755ZIT6 MCU. T_NRST is not connected between the STLINK-V3MODS and my MCU.

My MCU is already powered on and running code normally. When I then connect the STLINK-V3MODS to my PC (via USB), it automatically resets my target MCU.

Since T_NRST isn't wired at all, I don't understand how the V3MODS is able to reset my target.

I'm already using the VCP (T_VCP_TX/T_VCP_RX) for logging. The issue is: when I plug in the STLINK-V3MODS to view the logs, it resets my MCU — but I don't want that. I want the MCU to keep running as-is, and just be able to plug in and observe the logs live without interrupting it.

How can I prevent this reset-on-connect behavior while still being able to use the VCP for logging?

Thanks!

5 replies

AScha.3
Super User
August 5, 2026

Hi,

>I don't understand how the V3MODS is able to reset my target

The SWD connection can control the core, so software reset or core reset possible, without any nrst wire connected.

Check in CubeProgrammer : connect mode > hot plug < , should not halt the cpu on connecting.

+

Depending on the firmware on the st-link , it could do a reset on power up ; check this .

Try changing the firmware or its settings; if still reset on usb connect :

Then you have to power the V3mods always when your target is powered; so connecting to USB dont produce the power-up-reset and you can view SWD or VCP  data without target reset.

"If you feel a post has answered your question, please click ""Accept as Solution""."
Visitor
August 5, 2026

Hi,

I have changed the firmware type for the STLINK-V3MODS and it does not reset the target anymore upon connecting to the PC.

Previously → STM8/STM32 Debug + Mass storage + VCP + Bridge
Current → STM8/STM32 Debug + 2VCP + Bridge

Not sure why this works, though.

Since SWD can already control the core, is there any real need to have T_NRST wired between the STLINK-V3MODS and the MCU at all? What purpose would that connection actually serve? I already have a physical reset button wired directly to the MCU's NRST pin.

Thanks!

 

AScha.3
Super User
August 5, 2026

Hi,

usually you dont need the nrst wired for “normal” use, flash or debug. (I never use nrst.)

You will only need it, if you stop SWD from working, maybe use the swd/swc pins as I/O pins defined in your program. Or program accidentally disturbs the function of swd/swc.

Then only chance to get connected to target cpu : on reset  or power up + reset → needs hard wired reset obviously.

Or you use/set a protected mode, then you might need the physical reset , to start bootloader /update ..etc.

"If you feel a post has answered your question, please click ""Accept as Solution""."
AScha.3
Super User
August 5, 2026

I think, that behavior is just random.

Because it should (!) do nothing to the target, no matter what you do, nothing used, power up or down.... so it's some kind of bad behavior of the firmware, to send a reset just around, without any command by the user.

And some version of the firmware doing it correctly, just starting and then waiting for the first command.

"If you feel a post has answered your question, please click ""Accept as Solution""."