After adding the BKPT instruction to the code, how can I expect to trigger debug-monitor related exception interrupts when running the BKPT instruction?
It has been found in the relevant manual that setting DBGDSCR and other related registers can trigger the Prefetch Abort exception, as shown in the following figure.
Therefore, I first set the MDBGen bit of DBGDSCR to 1 to enable the interrupt using the following code:
But as long as the execution reaches writing the relevant register, it will enter an undefined exception or data_ Abort exception, it cannot be resolved. May I know how to achieve the desired effect?Is there some demo or example?
Thanks.