cancel
Showing results for 
Search instead for 
Did you mean: 

STLINK V3MINIE only working in command-line mode after STM32CubeProgrammer

HagedornJ
Associate II

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

 

 

4 REPLIES 4

show the command line you are using

HagedornJ
Associate II

@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

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?

HagedornJ
Associate II

Hello Andrew,

Many thanks for your help.

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