cancel
Showing results for 
Search instead for 
Did you mean: 

ST-Link V3 is not working with Connect under Reset

Jutt
Associate II

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.

1 ACCEPTED SOLUTION

Accepted Solutions

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

View solution in original post

8 REPLIES 8
Jutt
Associate II

No Answer from St, as usual.

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

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

​Hi @Jutt​ 

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

Regards,

Nesrine

Jutt
Associate II

@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

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
Principal III

STLINKV3 rejects connection in many situations where V2 connects successfull!

simosilva
Senior

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.