What is the function of the S_RETIRE_ST bit in the DHCSR?
Article ID: 103488854
Published date: 24 Jul 2017
Last updated: -
Applies to: Cortex-M3, Cortex-M4, Cortex-M7
What is the function of the S_RETIRE_ST bit in the Debug Halting Control and Status Register (DHCSR)?
This bit is set every time an instruction completes execution, and it is cleared every time the DHCSR is read. Therefore by reading the DHCSR twice, with a short time delay between, it is possible for a debugger to determine whether processor execution is proceeding or is hung (stalled).