AN 981: Using Generic QSPI Flash on SDM Devices

ID 778053
Date 7/02/2024
Public

3.1. QPI Mode (4-4-4 protocol)

The QSPI flash device must support QPI mode. The SDM communicates to the QSPI flash device by sending opcode, address, and write data with all 4 data lines, and receiving read data and response from the flash device via the same four data lines.

Note that this is different from the Quad IO (QIO) mode (1-4-4 or 1-1-4 protocol). If the QSPI flash device does not support 4-4-4 protocol but 1-4-4/1-1-4 protocol only, it is not compatible with the SDM firmware.

SDM firmware determines whether the QSPI flash device supports QPI mode by interpreting the content read from the SFDP table based on the following steps.
  1. SDM firmware determines the QSPI flash supports QPI mode from the SFDP table.
  2. If QPI mode is supported, the SDM firmware sets the QSPI flash to QPI mode.
  3. SDM firmware reads the SFDP signature1 under QPI mode.
  4. If the SFDP signature matches, the SDM firmware continues the ASx4 configuration.
  5. If the QPI mode is not supported or the SFDP signature is not matched, the SDM firmware determines that the QSPI flash failed to enter QPI mode, and stops the configuration.
The following figure shows the timing diagram to read the SFDP signature from the QSPI flash device using 4-4-4 protocol.
Figure 2. Read SFDP in 4-4-4 Protocol Timing Diagram
1 The SFDP signature is the first DWORD in the SFDP header with a value of 0x50444653. The SDM firmware issues 5Ah to read the DWORD from address 0.