cancel
Showing results for 
Search instead for 
Did you mean: 

Failed to execute MI command

MPrin.1874
Associate

HI

This is my first time using ST environment and ST-LINK

I have encountered an Failed to execute MI command. Below is the log file.

Could someone please point me in a direction where to start to looking for a solution.

Thanks

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

       LogFile Name              : C:\Users\Marius\STM32CubeIDE\workspace_1.0.1\RobotisCR1\Debug\st-link_gdbserver_log.txt

       Logging Level             : 31

       Listen Port Number        : 61234

       Status Refresh Delay      : 15s

       Verbose Mode              : Enabled

       SWD Debug                 : Enabled

Target connection mode: Attach

Hardware watchpoint supported by the target

COM frequency = 24000 kHz

ST-LINK Firmware version : V3J4M2B3S1

Device ID: 0x449

PC: 0x80014c8

ST-LINK device status: HALT_MODE

ST-LINK detects target voltage = 3.28 V

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 = 0x0000000B

NVIC_CFGFSR_REG = 0x00000000

XPSR = 0x01000000

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

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

                      STM32CubeProgrammer v2.2.0                 

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

Log output file:  C:\Users\Marius\AppData\Local\Temp\STM32CubeProgrammer_a12024.log

ST-LINK SN : 001B002C3137510839383538

ST-LINK FW : V3J4M2B3S1

Voltage    : 3.27V

SWD freq   : 24000 KHz

Connect mode: Under Reset

Reset mode : Hardware reset

Device ID  : 0x449

Device name : STM32F74x/STM32F75x

Flash size : 1 MBytes

Device type : MCU

Device CPU : Cortex-M7

Memory Programming ...

Opening and parsing file: ST-LINK_GDB_server_a12024.srec

 File         : ST-LINK_GDB_server_a12024.srec

 Size         : 5740 Bytes

 Address      : 0x08000000

Erasing memory corresponding to segment 0:

Erasing internal memory sector 0

Download in Progress:

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

�������������������������������������������������� 100%

File download complete

Time elapsed during download operation: 00:00:00.520

Verifying ...

Read progress:

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

����������������� 35%��������� 53%��������� 71%

Error: Data mismatch found at address 0x08000B44 (byte = 0xD7 instead of 0x04)

Error: Download verification failed

Encountered Error when opening C:\ST\STM32CubeIDE_1.0.1\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...

1 REPLY 1
LSpad.1
Associate III

Hi,

I have the same problem. Have you or someone found a solution?

It seems a problem only of CubeIDE, bacause ST-Link Utility flash the microcontroller without failing the verify.

Best regards

Lorenzo