cancel
Showing results for 
Search instead for 
Did you mean: 

Connect Under Reset (NRST) in TrueStudio using SWD

pawcuu
Associate II

Hi all,

in my project I reconfigure SWD pins to work as inputs and therefore I can't debug/upload new firmware using software system reset.

And here's my question - how to modify Startup Script (attachment) so that ST-LINK/V2 would upload (or debug) new software using NRST pin (Connect Under Reset in STM32 ST-LINK Utility works like a charm)?

Thanks!

7 REPLIES 7
TDK
Guru

In CubeIDE, the setting is in the run/debug configuration options. TrueSTUDIO is NRND, but is probably similar.

0693W00000Kc7wmQAB.png

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

Thanks for answer, however such option is unavailable in TrueSTUDIO.

TDK
Guru

Might be time to update to a supported IDE.

Or you could use the STM32CubeProgrammer CLI to load a new program by adding it as an external tool.

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

It's time to upgrade.

You can use the Atollic toolchain for compatibility, and the new debugger.

pawcuu
Associate II

For now on I would like to stick with TrueStudio.

Could you share how to do so with STM32CubieProgrammer CLI?

Nikita91
Lead II

It seems to me that TrueSTUDIO uses Under Reset:

      -------------------------------------------------------------------
                       STM32CubeProgrammer v1.3.0                  
      -------------------------------------------------------------------
 
Log output file:   C:\Users\Moi\AppData\Local\Temp\STM32CubeProgrammer_a13108.log
ST-LINK SN  : 0670FF575056716587093335
ST-LINK FW  : V2J31M21
Voltage     : 3.25V
SWD freq    : 4000 KHz
Connect mode: Under Reset                     <-------------
Reset mode  : Hardware reset
Device ID   : 0x431
Device name : STM32F411xC/E
Device type : MCU
Device CPU  : Cortex-M4
 

Maybe much simpler is to use the old good ST-Link utility to flash the update.

Configure it to connect under reset. It supports all STM32s known to Atollic.

0693W00000KcQdZQAV.png