STM32 Cube IDE Software Breakpoint
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-09-25 11:07 PM - last edited on ‎2024-09-25 11:14 PM by mƎALLEm
Hi,
How to put the software breakpoints in the STM32 Cube IDE. I can put only the hardware breakpoints. The hardware breakpoints has a limitation of maximum 5. We can use multiple software breakpoints in the STM8 Chips with ST Visual Development IDE or Renesas Chips CS+ IDE. Help me out of this problem....
Kind Regards,
Nishanth M
- Labels:
-
STM32CubeIDE
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-09-26 5:44 AM
A software breakpoint is added by putting a bkpt assembly instruction in the code. It requires you to recompile and upload this code with the software breakpoint to the chip. You can add a software breakpoint with the following code:
__BKPT();
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-10-04 1:34 AM
Hi,
After putting this "__BKPT(); " Breakpoint, code is not going to next line. It is holding there. it acts as a while(1);
Regards,
Nishanth M
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-10-04 6:00 AM
Hmm. Yes, that appears to be the case for me as well.
Unclear if this is expected behavior (unlikely), OpenGDB's fault, or some implementation issue in Eclipse or STM32CubeIDE.
From looking at threads online, it appears Segger's tools are better is this regard.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-10-04 6:21 AM
Hi,
Then If I use the Segger J-Link EDU Mini means, can I put unlimited breakpoints?
Regards,
Nishanth M
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-10-04 7:27 AM
Yes.
J-Link Unlimited Flash Breakpoints (segger.com)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-10-05 5:59 PM
By the way... how these unlimited breakpoints work? The real flash breakpoints are decoded by something in the MCU itself, this is why they are limited.
