You copied the Doc URL to your clipboard.

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

Question

What is the function of the S_RETIRE_ST bit in the Debug Halting Control and Status Register (DHCSR)?

Answer

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).

Related information

None.

Was this page helpful? Yes No