Skip to main content
Visitor II
March 1, 2022
Question

hi i am having issues with the Debug its a M7 and M4 MCU i connected swdio, swclk, swo, NRST, gnd and Vapp

  • March 1, 2022
  • 3 replies
  • 884 views

the error:

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 Server is running on port : 7184

ST-LINK SN : 30FF6F065647373734141043

ST-LINK FW : V2J37S7

Board      : --

Voltage    : 2.95V

SWD freq   : 4000 KHz

Connect mode: Under Reset

Reset mode : Hardware reset

Device ID  : 0x450

Revision ID : Rev V

Device name : STM32H7xx

Flash size : 2 MBytes

Device type : MCU

Device CPU : Cortex-M7/M4

Memory Programming ...

Opening and parsing file: ST-LINK_GDB_server_a24696.srec

 File         : ST-LINK_GDB_server_a24696.srec

 Size         : 2704 Bytes

 Address      : 0x08100000

Erasing memory corresponding to segment 0:

Erasing internal memory sector 8

Error: failed to erase memory

Error: failed to erase memory

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

    This topic has been closed for replies.

    3 replies

    fMoha.1Author
    Visitor II
    March 1, 2022

    this is whats happens before i see an error, it is stuck there for 5 min and then error pops up0693W00000Kb2ptQAB.png

    Technical Moderator
    March 2, 2022

    Hello,

    1. It's recommended to use the latest version of STM32CubeProgrammer tool.
    2. Please refer to the application note AN4938 "Getting started with STM32H74xI/G and STM32H75xI/G hardware development" for HW recommendations / power supply (section 2 Power supplies) as well as debug connections (section 6 Debug management).

    fMoha.1Author
    Visitor II
    March 2, 2022

    hi

    sofLit,

    i check every thing, but its not the power or the connection. i solved it by connecting the ST-Link VCC to the board VCC. when i connect the external power then i am having the problem.