Debug terminated immediately on start (Solved)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-02-13 9:39 AM
I had been debugging this program for some time with no problems. After making change to a header file to resolve a conflict, the debugger would no longer run. The program compiled , loaded and verified OK, but as soon as the debug perspective appeared the console reported "connection lost" "shutting down" and the C/C++ perspective returned. The board itself ran OK, and other programs ran and debugged OK on it, but this one program always caused GDB to terminate. I was using "ST-Link GDB server", but I got the same problem with "OpenOCD".
I couldn't find any way to diagnose the problem, just asking "What have I changed?".
Eventually I discovered it was a value in the Expressions window, that had been invalidated by the change in the header file, that was causing GDB to exit. Not sure whether this is a problem with CubeIDE or with GDB as there doesn't seem to be any diagnostics.
Solved! Go to Solution.
- Labels:
-
STM32CubeIDE
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-01-26 3:46 AM
Remove all expression in "expressions" & "live expressions" views.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-01-02 7:39 PM
hello sir, i have the same problem, could you share the solution of this problem?? thank you
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-01-26 3:44 AM
Thanks a lot, It solves my problem...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-01-26 3:46 AM
Remove all expression in "expressions" & "live expressions" views.
