2024-03-28 12:38 AM
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!
2024-03-29 03:18 AM
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.
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.
2024-04-02 09:07 AM
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
2024-04-02 09:50 AM
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.