Skip to main content
Associate
Feb 13, 2025 12:29 PM UTC
Question

Resetting target using reset pin only (without SWD logical connection)

Hello.

Regarding STM32CubeProgrammer CLI, I'm wondering if it is possible to reset an STM32 target only driving (high->low->high) its physical reset pin (NRST of ST-Link V2 connector) and without establishing a logical SWD/JTAG connection with it. Of course NRST of STM32 on my board is routed to NRST of connector and I could issue a reset grounding the latter with a piece of wire.

I tried various combination of "-hardRst" but any command without the "-c" switch is refused.

Any suggestion?

Thank you in advance.

Best regards,

PT

This topic has been closed for replies.

2 replies

Aziz BRIGUI
ST Technical Moderator
Feb 24, 2025 9:44 AM UTC

Hello @ptundo70,

Could you explain the need behind not wanting to connect before controlling the ST-Link reset ? It's safe to say that the expected behavior in STM32CubeProgrammer is to connect first in order to know the interface (If the interface used is other than ST-Link or J-Link, a hardware reset won't be possible).

Aziz

In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.
ptundo70Author
Associate
Apr 28, 2025 8:45 AM UTC

Because I'm using reversible RDP2 and connecting halts the core until next power-on reset, but sometimes I only need to reset it; please note that physical power-on isn't feasible on the final product since battery is soldered.

Best regards,

PT