Skip to main content
Associate
Nov 7, 2024 9:53 AM UTC
Question

STLINK V3MINIE only working in command-line mode after STM32CubeProgrammer

Without starting the STM32 Cube Programmer (GUI) I get following error message:

-------------------------------------------------------------------
STM32CubeProgrammer v2.17.0
-------------------------------------------------------------------

ST-LINK SN : 002E001C3033511835393935
ST-LINK FW : V3J15M6
Board : STLINK-V3MINIE
Voltage : 3.30V
Error: ST-LINK error (DEV_UNKNOWN_MCU_TARGET)
2nd connect tentative with frequency (8MHz)
ST-LINK SN : 002E001C3033511835393935
ST-LINK FW : V3J15M6
Board : STLINK-V3MINIE
Voltage : 3.30V
Error: ST-LINK error (DEV_UNKNOWN_MCU_TARGET)
-------------------------------------------------------------------
STM32CubeProgrammer v2.17.0
-------------------------------------------------------------------

ST-LINK SN : 002E001C3033511835393935
ST-LINK FW : V3J15M6
Board : STLINK-V3MINIE
Voltage : 3.31V
Error: ST-LINK error (DEV_UNKNOWN_MCU_TARGET)
2nd connect tentative with frequency (8MHz)
ST-LINK SN : 002E001C3033511835393935
ST-LINK FW : V3J15M6
Board : STLINK-V3MINIE
Voltage : 3.30V
Error: ST-LINK error (DEV_UNKNOWN_MCU_TARGET)
Done

After I have started the STM32 Cube Programmer it works:

-------------------------------------------------------------------
STM32CubeProgrammer v2.17.0
-------------------------------------------------------------------

ST-LINK SN : 002E001C3033511835393935
ST-LINK FW : V3J15M6
Board : STLINK-V3MINIE
Voltage : 3.30V
JTAG freq : 21333 KHz
Connect mode: Normal
Reset mode : Software reset
Device ID : 0x483
Revision ID : Rev Z
Device name : STM32H72x/STM32H73x
Flash size : 1 MBytes
Device type : MCU
Device CPU : Cortex-M7
BL Version : 0x93


Hard reset is performed
-------------------------------------------------------------------
STM32CubeProgrammer v2.17.0
-------------------------------------------------------------------

ST-LINK SN : 002E001C3033511835393935
ST-LINK FW : V3J15M6
Board : STLINK-V3MINIE
Voltage : 3.30V
JTAG freq : 21333 KHz
Connect mode: Normal
Reset mode : Software reset
Device ID : 0x483
Revision ID : Rev Z
Device name : STM32H72x/STM32H73x
Flash size : 1 MBytes
Device type : MCU
Device CPU : Cortex-M7
BL Version : 0x93


Mass erase ...

Mass erase successfully achieved
Done

 

The problem can be reproduced by disconnect the STLINK V3MINIE.

I am using the latest version: V2.17.0

In my boundary scan test environment I need the command line programming.

Does anyone have an idea?

Many thanks in advance 

Joerg

 

 

This topic has been closed for replies.

5 replies

Andrew Neil
Super User
Nov 7, 2024 1:08 PM UTC

show the command line you are using

A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.
HagedornJAuthor
Associate
Nov 7, 2024 2:33 PM UTC

@Echo OFF
SET TOOL="C:\Program Files\STMicroelectronics\STM32Cube\STM32CubeProgrammer\bin\STM32_Programmer_CLI.exe"

ECHO Press ENTER to erase chip
pause
%TOOL% -c port=JTAG -hardRst
%TOOL% -c port=JTAG reset=SWrst -e all

ECHO Done
pause

Andrew Neil
Super User
Nov 7, 2024 2:41 PM UTC

First, try running it with Echo ON - to ensure that your variable is getting properly expanded.

What happens if you explicitly specify your target MCU on the command line?

A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.
HagedornJAuthor
Associate
Nov 7, 2024 3:23 PM UTC

Hello Andrew,

Many thanks for your help.

I didn't found any parameter to set the MCU in the command line.

 

HagedornJAuthor
Associate
Jan 24, 2025 5:54 AM UTC

The only way at the moment is, to start one times the GUI before you are using the CLI tool. In my boundary scan environment I start the GUI at the beginning and kill the process 10s later. This is a workaround but no solution. I hope ST will fix this problem in the future.