2022-03-10 04:00 AM
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!
2022-03-10 06:41 AM
In CubeIDE, the setting is in the run/debug configuration options. TrueSTUDIO is NRND, but is probably similar.
2022-03-11 12:49 AM
Thanks for answer, however such option is unavailable in TrueSTUDIO.
2022-03-11 07:06 AM
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.
2022-03-11 08:08 AM
It's time to upgrade.
You can use the Atollic toolchain for compatibility, and the new debugger.
2022-03-11 10:56 AM
For now on I would like to stick with TrueStudio.
Could you share how to do so with STM32CubieProgrammer CLI?
2022-03-13 03:46 AM
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
2022-03-13 11:06 AM
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.