Arm bug 3092511 - Cortex-M7 can halt in an incorrect address when breakpoint and exception occurs...
In the Cortex-M7 (AT610) and Cortex-M7 with FPU (AT611) - Software Developer Errata Notice published by Arm on May 28, 2024, document version 11.0, at the end, is listed a new bug affecting debug sessions:
- 3092511 - Cortex-M7 can halt in an incorrect address when breakpoint and exception occurs simultaneously
In practical terms, this means that the debugger may halt at the beginning of exception handlers instead of the expected BKPT.
This is particularly annoying for applications with high frequency interrupts, like USB, since it makes debugging difficult.
The openOCD and SEGGER teams are already aware of this and consider implementing workarounds to avoid the rogue halts.
Hopefully STM will do the same.
