cancel
Showing results for 
Search instead for 
Did you mean: 

Encountered Error when Flashing STM32L552CET6

Gaius_baltar_2025
Associate

I have been trying to flash a test program onto a STM32L55CET6 using a ST-Link 2. I can connect and configure the device just fine using the STM32 Cube Programmer application but when I try to flash it from the IDE I keep getting an error where it fails to perform the task. In the IDE itself it simply gives me this error.

"Failed to execute MI command:
load "C:\\Users\\Redacted\\STM32CubeIDE\\workspace_1.14.1\\test_project\\Debug\\test_project.elf""

and when I dump the whole log output the specific error seems to arise here. I have been trying anything I can to find a solution to this problem. Is there anyone who can help me solve this puzzle as to why I am unable to flash data onto the board ?

>[6.773] spawnCubeProgrammer(): Encountered Error when opening C:\ST\STM32CubeIDE_1.14.1\STM32CubeIDE\plugins\com.st.stm32cube.ide.mcu.externaltools.cubeprogrammer.win32_2.1.100.202311100844\tools\bin\STM32_Programmer_CLI.exe

 

>[6.775] spawnCubeProgrammer(): 14:59:28:040 Error: ST-LINK error (DEV_CONNECT_ERR)

1 REPLY 1
Ghofrane GSOURI
ST Employee

Hello @Gaius_baltar_2025 

First let me thank you for posting.

Let's try to go to Debug configuration and  change the port number to 61238 this could solve the problem

GhofraneGSOURI_0-1709733466117.png

I will be waiting for your feedback.

Thx

Ghofrane