1 of 1 people found this helpful
1. In order to access the SD card, we must use open ended read/write commands (CMD18 and CMD25). Hence, we can not directly write and read to/from S-Port like other ports (PIB, UIB and etc.).
2. We need to use CyU3PSibReadWriteRequest API for writing/reading to/from SD card.
The CY_U3P_SIB_EVENT_XFER_CPLT event will be sent to the caller through the register storage callback function when the specified amount of data has been completely transferred.
Refer gpiftostorage example provided with the SDK: C:\Program Files (x86)\Cypress\EZ-USB FX3 SDK\1.3\firmware\gpif_examples\cyfxgpiftostorage
This example illustrates the use of the FX3S firmware APIs to allow an external processor to access SD/MMC devices through the GPIF port.
Also Mass storage example : C:\Program Files (x86)\Cypress\EZ-USB FX3 SDK\1.3\firmware\msc_examples\cyfx3s_msc
This example illustrates the use of the FX3S firmware APIs to implement a mass storage class device that allows access to SD/MMC devices connected to FX3S.