10.7 Interfacing with an Octal SPI Memory

The Quad Serial Peripheral Interface (QSPI) is a synchronous serial data link that provides communication with external devices in Host mode.

The QSPI can be used in SPI mode to interface to serial peripherals such as ADCs, DACs, CAN controllers and sensors, or in Serial Memory mode to interface to serial Flash memories.

The QSPI allows the system to execute code directly from a serial Flash memory (eXecute In Place/XIP) without code shadowing to RAM. The serial Flash memory mapping is seen in the system as other memories such as ROM, SRAM, DRAM, embedded Flash memory, etc.

With the support of the Quad/Octal SPI protocol, the QSPI allows the system to use high-performance serial Flash memories, which are small and inexpensive, instead of larger and more expensive parallel Flash memories.

Note: Stacked devices with a rollover in the memory address space at each die boundary are not supported.
Table 10-41. Octal SPI Interface Configuration
Interface InstanceIO SetPin No.Pin NameDescription
QSPI01156PB9QSPI0_IO3, Data Input Output 3
148PB10QSPI0_IO2, Data Input Output 2
158PB11QSPI0_IO1, Data Input Output 1
157PB12QSPI0_IO0, Data Input Output 0
151PB13QSPI0_CS, Peripheral Chip Select
155PB14QSPI0_SCK, Serial Clock
154PB15QSPI0_SCKN, QSPI0 Negated Serial Clock for HyperFlash only
152PB16QSPI0_IO4, Data Input Output 4
159PB17QSPI0_IO5, Data Input Output 5
150PB18QSPI0_IO6, Data Input Output 6
149PB19QSPI0_IO7, Data Input Output 7
153PB20QSPI0_DQS, Data Strobe
160PB21QSPI0_INT, Interrupt Input