cancel
Showing results for 
Search instead for 
Did you mean: 

HELP.... Error in final launch sequence: Failed to execute MI command

EGonz.11
Associate

Hello 

I'm trying a project with a STM32L051R8T6 microcontroller and STM32CubeIDE, I already finished my code and tested in a board, everything worked fine . I've not modified the code, anf now I can't enter in Debbug mode.

​I​ tested the ST-Link with other of my projects and it is working fine, the problem is with this new development that I'm trying. I have three boards prototype and the error still occurring with all of them.

Please check the attached files with error message​.

Can you help me to solve?

1 REPLY 1
EGonz.11
Associate

This is the output in Console:

--------------------------------------------------------------------------------------------

STMicroelectronics ST-LINK GDB server. Version 5.4.0

Copyright (c) 2019, STMicroelectronics. All rights reserved.

Starting server with the following options:

    Persistent Mode      : Disabled

    LogFile Name        : C:\Users\salva\STM32CubeIDE\workspace_1.2.0\DMX\Debug\st-link_gdbserver_log.txt

    Logging Level       : 31

    Listen Port Number     : 61234

    Status Refresh Delay    : 15s

    Verbose Mode        : Enabled

    SWD Debug         : Enabled

    InitWhile         : Enabled

Target connection mode: Under reset

Hardware watchpoint supported by the target 

COM frequency = 4000 kHz

ST-LINK Firmware version : V2J35S7

Device ID: 0x417

PC: 0x8001220

ST-LINK device status: HALT_MODE

ST-LINK detects target voltage = 3.21 V

Enter STM32_AppReset() function 

NVIC_DFSR_REG = 0x0000000B

NVIC_CFGFSR_REG = 0x00000000

ST-LINK device status: HALT_MODE

ST-LINK device initialization OK

Waiting for debugger connection...

Waiting for connection on port 61234...

Accepted connection on port 61234...

Debugger connected

Enter STM32_AppReset() function 

NVIC_DFSR_REG = 0x00000008

NVIC_CFGFSR_REG = 0x00000000

 ------ Switching to STM32CubeProgrammer ----- 

   -------------------------------------------------------------------

            STM32CubeProgrammer v2.3.0          

   -------------------------------------------------------------------

Log output file:  C:\Users\salva\AppData\Local\Temp\STM32CubeProgrammer_a06320.log

ST-LINK SN : 56FF71067878545233240667

ST-LINK FW : V2J35S7

Voltage   : 3.21V

SWD freq  : 4000 KHz

Connect mode: Under Reset

Reset mode : Hardware reset

Device ID  : 0x417

Device name : STM32L05x/L06x/L010

Flash size : 64 KBytes

Device type : MCU

Device CPU : Cortex-M0+

Memory Programming ...

Opening and parsing file: ST-LINK_GDB_server_a06320.srec

 File     : ST-LINK_GDB_server_a06320.srec

 Size     : 16084 Bytes

 Address    : 0x08000000 

Erasing memory corresponding to segment 0:

Erasing internal memory sectors [0 125]

Download in Progress:

�������������������������������������������������� 0%

�������������� 28%�������������� 57%�������������� 85%�������� 100%

Error: failed to download Segment[0]

Error: failed to download the File

Time elapsed during download operation: 00:01:02.659

Verifying ...

Read progress:

�������������������������������������������������� 50%

������ 12%��� 19%��� 25%��� 31%���� 38%��� 44%��� 50%��� 57%��� 63%���� 70%��� 76%��� 82%��� 89%��� 95%��� 100%

Error: Data mismatch found at address 0x08003A6C (byte = 0x00 instead of 0xFF)

Error: Download verification failed

Encountered Error when opening C:\ST\STM32CubeIDE_1.2.0\STM32CubeIDE\plugins\com.st.stm32cube.ide.mcu.externaltools.cubeprogrammer.win32_1.1.0.201910081157\tools\bin\STM32_Programmer_CLI.exe

 ------ Switching context ----- 

Error in STM32CubeProgrammer

Debugger connection lost.

Shutting down...

--------------------------------------------------------------------------------------------