2019-09-06 09:38 AM
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.
Solved! Go to Solution.
2019-09-17 08:47 AM
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.
Best regards,
Nesrine
2019-09-16 06:05 AM
No Answer from St, as usual.
2019-09-17 08:47 AM
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.
Best regards,
Nesrine
2019-09-17 03:43 PM
thank you for reply. is there any command in cubeprogrammer to erase the eeprom ? i check the manual but was not successful.
2019-10-07 06:03 AM
Hi @Jutt
There is no way to delete the eeprom manually, you must program an external flash memory.
Regards,
Nesrine
2020-06-22 04:39 AM
@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
2020-09-04 07:57 AM
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 :
Exact same command with same STM32_Programmer_CLI.exe works perfectly when using STLINK-V2.
Any possible fix?
Thanks forward
2020-09-07 01:23 AM
STLINKV3 rejects connection in many situations where V2 connects successfull!
2021-10-19 08:38 AM
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.