AN4989 Rev 3 65/118
AN4989 Exception handling
117
STM32CubeIDE
At runtime, while debug is in break state, the SCB register can be accessed in read mode or
in write mode through: Window -> Show View -> SFRs as shown in
Figure 45.
Figure 45. STM32CubeIDE SCB register access
If you need more informations about the Hardfault,you can first enable faulting or halting
when the processor executes an SDIV or UDIV instruction with a divisor of 0:
SCB->CCR | = 0x01.
At runtime, before pressing “resume” button, open “Fault Analyzer” in
Window ->Show View -> Fault Analyzer