cancel
Showing results for 
Search instead for 
Did you mean: 

I get an error when debugging with Cube IDE

Ebun.1
Senior

Thank you for helping.

environment:

STM32CubeIDE Ver1.6.0

When I start debugging with the STM32Cube IDE, I get the following error:

Please tell me what to do.

Thank you.

-----

STMicroelectronics ST-LINK GDB server. Version 5.8.0

Copyright (c) 2020, 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

    InitWhile         : Enabled

Waiting for debugger connection...

Debugger connected

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

            STM32CubeProgrammer v2.7.0-RC1          

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

ST-LINK SN : 003D00283137511533333639

ST-LINK FW : V3J7M2

Board    : STLINK-V3MINI

Voltage   : 3.26V

SWD freq  : 24000 KHz

Connect mode: Under Reset

Reset mode : Hardware reset

Device ID  : 0x451

Revision ID : Rev Z

Device name : STM32F76x/STM32F77x

Flash size : 2 MBytes

Device type : MCU

Device CPU : Cortex-M7

Memory Programming ...

Opening and parsing file: ST-LINK_GDB_server_a03996.srec

 File     : ST-LINK_GDB_server_a03996.srec

 Size     : 8303424 Bytes

 Address    : 0x08000000 

Erasing memory corresponding to segment 0:

Erasing internal memory sectors [0 5]

Erasing memory corresponding to segment 1:

Erasing external memory sectors [0 120]

Download in Progress:

File download complete

Time elapsed during download operation: 00:00:36.047

Verifying ...

Error: Data mismatch found at address 0x080571B8 (byte = 0x7B instead of 0x63)

Error: Download verification failed

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

Error in STM32CubeProgrammer

Debugger connection lost.

Shutting down...

4 REPLIES 4

Hello

check if Vcc pins have the proper capacitors connected (0.1 + 4.7 μf), Vcap1 , Vcap2 connected with 2.2μF capacitors. VDDA, VREF are connected properly(usualy to vcc).

Is the error persistent to the 0x080571B8 address?

MM..1
Chief II

Simply your verify in flash report error on memory, but maybe isnt real.

Try slow down speed

SWD freq  : 24000 KHz

is high and need perfect powering, cabling and pcb routing. In debuger window setup no AUTO speed

Dimonira
Associate II

Is the device protected?

Ebun.1
Senior

Thank you for helping.

Thank you for your reply.

The board is custom, but I was able to debug it a while ago.

I recently replaced the host machine. (Windows10-> Windows10)

Can it affect you?

Also, with CubeProgrammer v2.7.0, I was able to confirm that it connects at 24000kHz.

What could be the reason why you can connect with CubeProgrammer but not with CubeIDE?

You can also connect at CubeIDE ST-LINK (OpenOCD) 8000kHz.

What could be the reason why you can connect with ST-LINK (OpenOCD) of CubeIDE but not with ST-LINK (GDB server)?

Can you please explain the difference between OpenOCD and GDB Server?

Thank you.