Debugger exits automatically.
When I try to debug with CubeIDE, the following happens
1. start debugging
2. program is written and debugger is attached successfully (startup sound is heard at the board side)
3. break in HAL_Init() in main()
4. resume (proceed to the next breakpoint)
5. debugger exits and returns to 1, but HAL_Init() will not break thereafter
6. repeat this 3 times to finish debug mode (changes on GUI)
Last remaining console log
STMicroelectronics ST-LINK GDB server. Version 6.1.0
Copyright (c) 2022, 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.10.0
-------------------------------------------------------------------
Log output file: /tmp/STM32CubeProgrammer_5ZmSLp.log
ST-LINK SN : 55FF66067867515426571767
ST-LINK FW : V2J39S7
Board : --
Voltage : 3.26V
SWD freq : 4000 KHz
Connect mode: Under Reset
Reset mode : Hardware reset
Device ID : 0x438
Revision ID : Rev Z
Device name : STM32F303x4-x6-x8/F328xx/F334xx
Flash size : 64 KBytes
Device type : MCU
Device CPU : Cortex-M4
BL Version : --
Memory Programming ...
Opening and parsing file: ST-LINK_GDB_server_oPKewb.srec
File : ST-LINK_GDB_server_oPKewb.srec
Size : 51.00 KB
Address : 0x08000000
Erasing memory corresponding to segment 0:
Erasing internal memory sectors [0 25]
Download in Progress:
File download complete
Time elapsed during download operation: 00:00:02.549
Verifying ...
Download verified successfully
Shutting down...
Exit.After debugging starts, nothing is done except to restart the HAL_Init() break once at the beginning.
This occurred with CubeIDE 1.9.0. Previously, we were using 1.1.0, where the problem did not occur.
I am not sure what is causing this problem, partly because I don't really understand what is happening during STM32 debugging. I would like to know the cause and solution.
Thank you in advance for your help.
Execution environment is macOS Monterey.
