cancel
Showing results for 
Search instead for 
Did you mean: 

Debug Configuration

Ebun.1
Senior

Hello

Debug Cofiguration-Debugger-Reset behavior

There are None, Software system reset, Connect under reset

Please explain each behavior.

If you select Software system reset or Connect under reset, an error may occur.

Thank you.

4 REPLIES 4
LaurentL
ST Employee

Hi,

The STLink will connect to the mcu in SWD or JTAG.

Connect under reset : STLink issue a Reset and while Reset is active, it will connect to the target.

Software system reset : STLink doesn't use the Reset pin, it will connect to the target and then write in the system register to reset the mcu (via software).

None : STLink doesn't use the Reset pin and connect to the target.

So, it also depends on your board hardware config, if you have connected the STLink reset pin from SWD/JTAG connector to the target mcu reset pin.

Rgds,

Laurent

Thank you for your reply.

If the Type is set to anything other than None, the following error will appear once every two times.

Debugger connected

    -------------------------------------------------- -----------------

            STM32CubeProgrammer v2.4.0

    -------------------------------------------------- -----------------

ST-LINK SN: 066AFF353138524E43065451

ST-LINK FW: V2J36M26

Voltage: 3.26V

Error: ST-LINK error (DEV_TARGET_NOT_HALTED)

Encountered Error when opening C: \ STM32 \ STM32CubeIDE_1.3.0 \ STM32CubeIDE \ plugins \ com.st.stm32cube.ide.mcu.externaltools.cubeprogrammer.win32_1.3.0.202002181050 \ tools \ bin \ STM32_Programmer_CLI.exe

Error in STM32CubeProgrammer

Debugger connection lost.

Shutting down ...

When do you get this error?

LaurentL
ST Employee

Hi,

Did you connect the Reset line from STLink to the Mcu ?

The error you get is that the mcu can't be halted (to program the flash, the mcu needs to be halted).

Rgds,

Laurent

Thank you for helping.

The reset signal is connected because it is a Nucleo-F401RE board.

A location other than the interrupt vector in sector 0 of the flash is used as the data area.

Does this cause any problems?

Thank you very much.