8.4.6.8.15 Time-Out

The QSPI includes a time-out counter. This time-out counter detects any blocking state on the memory side (hardware connection issue, unknown command sent, etc.). If the QSPI is expecting data from the memory, it starts counting and if the counter reaches the value set in the TCNTM field of the Timeout register (QSPI_TOUT), the flag QSPI_ISR.TOUT rises.

When the TOUT flag rises, any access waiting on the QSPI core is released with an error response so that the system bus is released. Any further access to the QSPI core receives an error response until the TOUT flag is cleared.

After a time-out error, the TOUT flag must be cleared by writing QSPI_CR.RTOUT to 1. This also resets the QSPI internal state machines.

If QSPI_TOUT.TCNTM is set to 0, the time-out feature is disabled.