8.4.6.8.1 Initialization Procedure

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

  1. Enable the GCLK clock.
  2. Configure QSPI_REFRESH, QSPI_MR, QSPI_SCR, QSPI_SMR, etc.
  3. Wait for QSPI_SR.SYNCBSY=0, then write QSPI_CR.UPDCFG. Wait for QSPI_SR.SYNCBSY=0.
  4. Write QSPI_CR.QSPIEN.
  5. Wait for QSPI_SR.QSPIENS=1.
  6. If automatic refresh is enabled, wait for QSPI_ISR.RFRSHD=1 by polling or interrupt (see Automatic Refresh).