Skip to main content
Associate III
August 28, 2024
Solved

Debugger stops at 97%

  • August 28, 2024
  • 2 replies
  • 2815 views

Hello everyone,

 

I have recently faced a problem concerning the debugger when trying to flash F446RE board.

When i launch the debug mode, the progress bar stops at 97% and doesn't return any error message as output.

The problem did not exist before the holidays but right now it exists although i did not changed the code nor debug config.

Here is the message displayed on the console when trying to debug:

 

STMicroelectronics ST-LINK GDB server. Version 7.8.0
Copyright (c) 2024, 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
Waiting for debugger connection...
Debugger connected
Waiting for debugger connection...
-------------------------------------------------------------------
STM32CubeProgrammer v2.17.0
-------------------------------------------------------------------

 

Log output file: C:\Users\EDESFR~1\AppData\Local\Temp\STM32CubeProgrammer_a18308.log
ST-LINK SN : 0670FF343047463043232657
ST-LINK FW : V2J45M31
Board : NUCLEO-F446RE
Voltage : 3.23V
SWD freq : 125 KHz
Connect mode: Under Reset
Reset mode : Hardware reset
Device ID : 0x421
Revision ID : Rev A
Device name : STM32F446xx
Flash size : 512 KBytes
Device type : MCU
Device CPU : Cortex-M4
BL Version : 0x90

 

Memory Programming ...
Opening and parsing file: ST-LINK_GDB_server_a18308.srec
File : ST-LINK_GDB_server_a18308.srec
Size : 58.50 KB
Address : 0x08000000


Erasing memory corresponding to segment 0:
Erasing internal memory sectors [0 3]
Download in Progress:


File download complete
Time elapsed during download operation: 00:00:09.274

 

Verifying ...

 


Download verified successfully

 

 

Would appreciate if anyone had an idea...

Thanks in advance!

    Best answer by mƎALLEm

    Generated the code with CubeMx, Compiled it with CubeIDE, Flashed and Run the code.

    This is a screenshot of a debug session of your project with CubeIDE:

    SofLit_0-1724853984519.png

    Could you please do the same manipulation on another PC?

     

    2 replies

    mƎALLEm
    Technical Moderator
    August 28, 2024

    Hello,

    But you have this trace:

    File download complete
    Time elapsed during download operation: 00:00:09.274

     

    Verifying ...

     


    Download verified successfully

    -> downlaold complete and verification complete.

    Is the application is completely (physically) uploaded onto the flash?

    "To give better visibility on the answered topics, please click on ""Accept as Solution"" on the reply which solved your issue or answered your question."
    Erwan03Author
    Associate III
    August 28, 2024

    Hello SofLit and thank you for helping me again.

    Actually, when i look at the memory window, all the addresses are filled with '?' characters. The flash memory should not be flashed then...

    mƎALLEm
    Technical Moderator
    August 28, 2024

    Are you sure you have the trace I mentioned in blue above with the behavior you are seeing?

    Which CubeProgrammer version are you using? 

    If possible to send me the hex file in private so I can do the test from my side.

    "To give better visibility on the answered topics, please click on ""Accept as Solution"" on the reply which solved your issue or answered your question."
    Erwan03Author
    Associate III
    August 29, 2024

    Indeed, it seems that the problem comes from my old laptop, i changed and it works properly. Thanks!