cancel
Showing results for 
Search instead for 
Did you mean: 

STM32C031-KEIL-breakpoint

Kevin.YIN
Associate II

STM32C031 is simulated in KEIL, but only a few breakpoints can be added during the running process, and the level is also level0.

How to locate this kind of problem,Thank you very much for your help!

3 REPLIES 3
KDJEM.1
ST Employee

Hi @Kevin.YIN ,

You can use the hardware breakpoints and the software breakpoints using the BKPT instruction.

For more information I advise you to refer to Cortex-M0+ Technical Reference Manual r0p1.

KDJEM1_0-1711707413479.png

I hope this help you.

Thank you.

Kaouthar

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.

Note that Keil is an independent 3rd party - nothing to do with ST.

For specific support with the Keil tools, they have their own forum:

https://community.arm.com/support-forums/f/keil-forum 

 

If you can't walk your own code in your head, you've already kind of failed at the programming task.

You could put a break-point in a function, and call that periodically.

You could also instrument your code, so it prints out and reports salient detail about what's happening, or the decisions made, or content of key variables, etc.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..