1.1.8.3 Configuring the SFDP Driver Library
The SFDP driver library should be configured through the MCC. The following figures show the MCC configuration window for the SFDP driver and brief description.
SFDP driver with QSPI peripheral in SQI mode connected:
SFDP driver with SQI peripheral in SQI mode connected:
SFDP driver with QSPI peripheral in SPI mode connected:
Configuration Options
- PLIB Used:
- Specifies the Peripheral library connected
- SFDP Protocol Used:
- Specifies the Protocol used in the Driver
- Number of Clients:
- Indicates maximum number of clients
- Always set to one as it supports only a single client
-
Number of Buffer Descriptors:
-
This option appears only when SQI peripheral is connected to the driver
-
Indicates Maximum number of SQI DMA Buffer Descriptors to be used to create chain of requests for Read
-
Increase in number of descriptors will allow to read
(256 * Number of Descriptors)Bytes from Flash at one shot
-
- SQI Lane Mode:
- This option appears when SQI peripheral is connected to the driver
- Specifies number of lanes to be used for sending the data on SQI
-
SQI Chip Select:
-
This option appears only when SQI peripheral is connected to the driver
-
Specifies the Chip Select to be used. Should align with Chip Select configured in SQI peripheral library settings
-
- Chip Select Pin:
- This option appears when SPI peripheral or QSPI peripheral in SPI mode is connected to the driver
- GPIO Pin to be used as Chip Select when connected in SPI mode
- SFDP Start Address:
- Specifies the Flash memory start address to be used for Transfer operations
- The start address will be populated in the device geometry table DRV_SFDP_GEOMETRY
- Use DMA for Transmit and Receive?
- This option appears when SPI peripheral or QSPI peripheral in SPI mode is connected to the driver
- Enables DMA For transmitting and receiving the data for that instance
- DMA Channel For Transmit:
- DMA Channel for transmission is automatically allocated in DMA configurations
- DMA Channel For Receive:
- DMA Channel for Receiving is automatically allocated in DMA configurations
