2024-09-25 11:07 PM - last edited on 2024-09-25 11:14 PM by SofLit
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
2024-09-26 05: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();
2024-10-04 01: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
2024-10-04 06: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.
2024-10-04 06:21 AM
Hi,
Then If I use the Segger J-Link EDU Mini means, can I put unlimited breakpoints?
Regards,
Nishanth M
2024-10-04 07:27 AM
Yes.
J-Link Unlimited Flash Breakpoints (segger.com)
2024-10-05 05: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.