58.6.8.1 Initialization

The QSPI initialization procedure must follow the specific steps below to ensure proper behavior.

  1. Configure QSPI_REFRESH, QSPI_MR, QSPI_SCR, QSPI_SMR, etc.
  2. Wait for QSPI_SR.SYNCBSY = 0, then write QSPI_CR.UPDCFG. Wait for QSPI_SR.SYNCBSY = 0.
  3. Write QSPI_CR.QSPIEN.
  4. Wait for QSPI_SR.QSPIENS = 1.
  5. If automatic refresh is enabled, wait for QSPI_ISR.RFRSHD = 1 by polling or interrupt.