Can't debug NUCLEO-F746ZG in STM32CubeIDE
Hi All
I can drag and drop a binary file to the NUCLEO-F746ZG via its mbed hard drive that appears when the board is connected to the PC and the program runs.
I can also try to debug from STM32CubeIDE and it successfully programs and verifies the code but it then always immediately loses connection with the following message:
...
Download verified successfully
(Read)Failed determine breakpoint type
Error! Failed to read target status
Debugger connection lost.
Shutting down...
The complete console output is below.
What could be causing this and how can it be solved????
Note that with IAR Kickstart the debugger works correctly so it must be an STM32CubeIDE setting problem(?)
Thanks
Regards
Mark
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
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.3.0
-------------------------------------------------------------------
ST-LINK SN : 066DFF545152717267241613
ST-LINK FW : V2J35M26
Voltage : 3.24V
SWD freq : 4000 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_a07064.srec
File : ST-LINK_GDB_server_a07064.srec
Size : 7746 Bytes
Address : 0x08000000
Erasing memory corresponding to segment 0:
Erasing internal memory sector 0
Erasing memory corresponding to segment 1:
Erasing internal memory sector 3
Download in Progress:
File download complete
Time elapsed during download operation: 00:00:01.402
Verifying ...
Download verified successfully
(Read)Failed determine breakpoint type
Error! Failed to read target status
Debugger connection lost.
Shutting down...
