cancel
Showing results for 
Search instead for 
Did you mean: 

USB Superspeed Peripherals

Anonymous
Not applicable

I wanted to write to sdcard from p port and read from sdcard in the control center(usb),

is it compulsary to use these API,CyU3PSibReadWriteRequest(CyTrue,0,0,0,0,0); and CyU3PSibReadWriteRequest(CyFalse,0,0,0,0,0);

OR

can i create dmachannel for the above?

like-->

PtoSdma channel and StoP dmachannel using API CyU3PDmaChannelCreate(,,);

HELP ME,

which method is best?

thank you...

0 Likes
1 Solution
KandlaguntaR_36
Moderator
Moderator

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.

Regards,

Sridhar

View solution in original post

1 Reply
KandlaguntaR_36
Moderator
Moderator

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.

Regards,

Sridhar

View solution in original post