2021-01-02 01:57 PM
Issues:
Debugger connection lost.
Shutting down...
/* USER CODE BEGIN 3 */
HAL_GPIO_TogglePin(LED_GPIO_Port, LED_Pin);
HAL_Delay(100);
}
/* USER CODE END 3 */
The full console output on entering debug mode is as follows:
STMicroelectronics ST-LINK GDB server. Version 5.7.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.6.0-RC3
-------------------------------------------------------------------
ST-LINK SN : 53FF6A064989575252252087
ST-LINK FW : V2J37S7
Board : --
Voltage : 3.23V
SWD freq : 4000 KHz
Connect mode: Under Reset
Reset mode : Hardware reset
Device ID : 0x431
Revision ID : Rev A
Device name : STM32F411xC/E
Flash size : 512 KBytes
Device type : MCU
Device CPU : Cortex-M4
Memory Programming ...
Opening and parsing file: ST-LINK_GDB_server_gnBnqT.srec
File : ST-LINK_GDB_server_gnBnqT.srec
Size : 4300 Bytes
Address : 0x08000000
Erasing memory corresponding to segment 0:
Erasing internal memory sector 0
Download in Progress:
File download complete
Time elapsed during download operation: 00:00:00.344
Verifying ...
Download verified successfully
Debugger connection lost.
Shutting down...
UPDATE
An associate has done some tracing and says that if he uses the low-level drivers then the debugger works as intended, but as soon as he changes to the HAL then the issue appears. I have not had time to verify this.
Solved! Go to Solution.
2021-01-02 02:21 PM
I have just managed to resolve this.
It appears that the checkbox "Skip All Breakpoints" under the "Run" menu was inadvertently checked. I don't recall ever checking it so I wonder whether it was set to that state on installation?
2021-01-02 02:21 PM
I have just managed to resolve this.
It appears that the checkbox "Skip All Breakpoints" under the "Run" menu was inadvertently checked. I don't recall ever checking it so I wonder whether it was set to that state on installation?
2021-01-04 02:05 AM
Hi EAppe.1,
The installation should not have set "Skip All Breakpoints" so probably it was manually and unintentionally set. Good that you managed to solve it.