How to check SD CARD read write on FX3S board

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
veRN_2322216
Level 3
Level 3
5 likes given First like received First like given

Hello,

            I am working on FX3S in that we want to write data to SD card which is coming from FPGA and  also wants to read data from USB to Host(pc)  and i am using the the SlaveFIFO Sync EXAMPLE which is interfaced with FPGA . can any one help me to  establish this path

0 Likes
8 Replies
KandlaguntaR_36
Moderator
Moderator
Moderator
25 solutions authored 10 solutions authored 5 solutions authored

Hello,

Create a DMA channel from GPIF II to SD card for writing to SD card; create another DMA channel from SD card to USB.

You may have other challenges in handling the data write and read to/from SD card.

Do you have any plan to use file system in this case? How do you want to see the USB device on PC? I meant which device class?


We do not have any working example for this application.

lock attach
Attachments are accessible only for community members.

hello

        You mean   DMA channel from

                P---->S &

                S----->U

I tried this but End points are not Enumerating

Can you help me to create Dma Channel from

                P----->S &

                S------->U.

and also i attached the file in which i have created the dma channel as mentioned above please help me to sort out this problem

Thanks Regards ,

Veerendra,

0 Likes

i am waiting for your response

0 Likes
veRN_2322216
Level 3
Level 3
5 likes given First like received First like given

can any one help me to sort out this problem

0 Likes

I can see that you have configured three end points. Where you are using the third endpoint?

    /* Producer endpoint configuration */

    apiRetStatus = CyU3PSetEpConfig(CY_FX_EP_PRODUCER, &epCfg);

    if (apiRetStatus != CY_U3P_SUCCESS)

    {

        CyU3PDebugPrint (4, "CyU3PSetEpConfig failed, Error code = %d\n", apiRetStatus);

        CyFxAppErrorHandler (apiRetStatus);

    }

    /* Consumer endpoint configuration */

    apiRetStatus = CyU3PSetEpConfig(CY_FX_EP_CONSUMER, &epCfg);

    if (apiRetStatus != CY_U3P_SUCCESS)

        {

            CyU3PDebugPrint (4, "CyU3PSetEpConfig failed, Error code = %d\n", apiRetStatus);

            CyFxAppErrorHandler (apiRetStatus);

        }

    apiRetStatus = CyU3PSetEpConfig(CY_FX_EP_CONSUMER1, &epCfg);

    if (apiRetStatus != CY_U3P_SUCCESS)

    {

        CyU3PDebugPrint (4, "CyU3PSetEpConfig failed, Error code = %d\n", apiRetStatus);

        CyFxAppErrorHandler (apiRetStatus);

Please use JTAG debugger or UART debug prints for debugging the code.

Geethanjali from your company worked on same project one year back. I guess she made some progress in this project. Please check with her. As far as I know your boards does not have feasibility for UART and JTAG debugging.

Without them, debugging is difficult.

Have you revised the boards recently so that you can do JTAG or UART debugging?

0 Likes

hello KandlaguntaR,

actually she not available now due to some health issues she is not available so now onward i am continuing this and actually i am able to debug this with Segger   j-link but i got these codes from her itself but the problem is endpoint enumeration after configuring  dma channels and end points.so if you helped me mean it will be helpful.

thanks and regards ,

veerendra.

0 Likes

Please check whether any API is returning NOT Success.

0 Likes

ok

0 Likes