Skip to main content
Jutt
Associate II
Sep 6, 2019 4:38 PM UTC
Solved

ST-Link V3 is not working with Connect under Reset

Hello.

i am using stm32L0 family.i have ST-Link V3. its working fine with st link utility tool. i can connect using cli command with normal mode. so the issue is Connect under Reset. CLI command is not working if i connect in Connect under Reset mode.

ST-LINK_CLI.exe -c ID=0 SWD UR LPM

output

STM32 ST-LINK CLI v3.5.0.0

STM32 ST-LINK Command Line Interface

[UR]: Connect under Reset is available only on ST-LINK/V2!

st link utility tool can connect Under Reset mode but not cli exe.

This topic has been closed for replies.
Nesrine.JLASSI
Nesrine.JLASSIBest answer
Visitor II
Sep 17, 2019 3:47 PM UTC

Hello @Jutt​ 

I just tested the same scenario with cubeprogrammer and stlink utility: stlink V3 does not work with stlink utility so Cubeprogrammer is the solution (it works correctly) .

stlink utility is no longer under support.

0690X00000ARJ72QAH.png

Best regards,

Nesrine

8 replies

Jutt
JuttAuthor
Associate II
Sep 16, 2019 1:05 PM UTC

No Answer from St, as usual.

Nesrine.JLASSI
Nesrine.JLASSIBest answer
Visitor II
Sep 17, 2019 3:47 PM UTC

Hello @Jutt​ 

I just tested the same scenario with cubeprogrammer and stlink utility: stlink V3 does not work with stlink utility so Cubeprogrammer is the solution (it works correctly) .

stlink utility is no longer under support.

0690X00000ARJ72QAH.png

Best regards,

Nesrine

Jutt
JuttAuthor
Associate II
Sep 17, 2019 10:43 PM UTC

thank you for reply. is there any command in cubeprogrammer  to erase the eeprom ? i check the manual but was not successful.

Nesrine.JLASSI
Visitor II
Oct 7, 2019 1:03 PM UTC

​Hi @Jutt​ 

There is no way to delete the eeprom manually, you must program an external flash memory.

Regards,

Nesrine

Jutt
JuttAuthor
Associate II
Jun 22, 2020 11:39 AM UTC

@Nesrine.JLASSI​ 

short feed back from side. stm32L07x family is working fine.

when i test with stm32L051.i have same issue.

St link V3

Cube programmer V2.4

connect under reset.

here is error msg from cubeprogrammer "Error: ST-LINK error (DEV_CONNECT_ERR)"

thank you

OE1
Associate II
Sep 4, 2020 2:57 PM UTC

Greetings,

I'm also experiencing the same problem with both stm32L051 and stm32L052 when using STLINK-V3.

No problem on stm32L452.

Here's my command line for it :

STM32_Programmer_CLI.exe --connect port=SWD mode=UR reset=hwRst --download "software.bin" 0x08000000 --verify -Rst

and what it shows :

0693W000003QojfQAC.png

Exact same command with same STM32_Programmer_CLI.exe works perfectly when using STLINK-V2.

Any possible fix?

Thanks forward

Uwe Bonnes
Chief
Sep 7, 2020 8:23 AM UTC

STLINKV3 rejects connection in many situations where V2 connects successfull!

simosilva
Senior
Oct 19, 2021 3:38 PM UTC

Hi,

I'm able to connect and program correctly with STLink V3 mini, with slightly different configuration but still effective.

Here my .bat:

STM32_Programmer_CLI.exe -c port=SWD sn=<insert_here_the_optional_serial_number> -w <Path/to/the/binary/Application.bin> 0x80000000
STM32_Programmer_CLI.exe -c port=SWD sn=<insert_here_the_optional_serial_number> -rst

This will program the binary end then reset the MCU so application automatically run after the script end.

I used serial number to program different targets with the same script.