cancel
Showing results for 
Search instead for 
Did you mean: 

stm32f745vet does not flash through STM32CubeIDE

1991red1991
Associate III

After STM32 ST-LINK Utility, everything works fine with such settings, I can flash the hex file, the firmware works.0690X00000ArwBwQAJ.png

0690X00000ArwC1QAJ.png

But if I try to enter debugging through STM32CubeIDE 1.0.0, then this error always appears:

Error in final launch sequence:
 
Error in initializing ST-LINK device.
Reason: (1) Failed to connect to device. Please check power and cabling to target.
Error in initializing ST-LINK device.
Reason: (1) Failed to connect to device. Please check power and cabling to target.
STMicroelectronics ST-LINK GDB server. Version 5.3.2
Copyright (c) 2019, STMicroelectronics. All rights reserved.
 
Starting server with the following options:
        Persistent Mode            : Disabled
        Logging Level              : 1
        Listen Port Number         : 61234
        Status Refresh Delay       : 15s
        Verbose Mode               : Disabled
        SWD Debug                  : Enabled
 
Waiting for debugger connection...
Debugger connected
Failed #5 
      -------------------------------------------------------------------
                       STM32CubeProgrammer v2.2.0                  
      -------------------------------------------------------------------
 
 
 
Log output file:   C:\Users\LAB2-R~1\AppData\Local\Temp\STM32CubeProgrammer_a05448.log
ST-LINK SN  : 55FF6C067282575133492167
ST-LINK FW  : V2J34S7
Voltage     : 3.19V
Error: ST-LINK error (DEV_TARGET_RESET_ERR)
Encountered Error when opening C:\ST\STM32CubeIDE_1.0.0\STM32CubeIDE\plugins\com.st.stm32cube.ide.mcu.externaltools.cubeprogrammer.win32_1.1.0.201910081157\tools\bin\STM32_Programmer_CLI.exe
Error in STM32CubeProgrammer
Debugger connection lost.
Shutting down...

Here is the console text.

I tried several programmers and several identical microcontrollers, the result is the same - IDE is always this error.

Why is this happening? What should I do?

2 REPLIES 2
1991red1991
Associate III

Now changing the settings, the error has changed to:

Error in final launch sequence:
Failed to execute MI command:
load "C:\\Users\\LAB2-Ruslan\\Desktop\\Tiger 24 Revo\\Tiger 24 Revo\\Debug\\Tiger 24 Revo.elf"
Error message from debugger back end:
Error finishing flash operation
Failed to execute MI command:
load "C:\\Users\\LAB2-Ruslan\\Desktop\\Tiger 24 Revo\\Tiger 24 Revo\\Debug\\Tiger 24 Revo.elf"
Error message from debugger back end:
Error finishing flash operation
Failed to execute MI command:
load "C:\\Users\\LAB2-Ruslan\\Desktop\\Tiger 24 Revo\\Tiger 24 Revo\\Debug\\Tiger 24 Revo.elf"
Error message from debugger back end:
Error finishing flash operation
Error finishing flash operation

Now I'm trying to flash through Atollic TrueSTUDIO for STM32 9.3.0 I get this error:

This I am flashing an empty project on an erased microcontroller.

Failed to execute MI command:
target extended-remote localhost:61234
 
Error message from debugger back end:
localhost:61234: �?îïûòêà îáúåäèíèòü äèñê ñ ïàïêîé íà îáúåäèíåííîì äèñêå.

JFran.14
Associate

Hi,

did you find a solution? I am facing the same problem.

Jintin