Regarding SPI communication in CY8C5888LTI-LP097 for SD card interfacing

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

cross mob
lock attach
Attachments are accessible only for community members.
RaSh_3782726
Level 3
Level 3
10 replies posted 10 questions asked 5 replies posted

Hi all,

I am using pin 3.3,3.4,3.5,3.6 for MOSI,MISO,CLK and CS in kit cy8ckit-050 it is working fine. But this same pin I used in 097 but it did not work.

Is there any spi pin allocated in 097 ? what is the solution for CY8C5888LTI-LP097 ?

Please help for that.

Thank you

Message was edited by: Rathang Shah Here I attached the latest code for CY8CKIT-050 AND -059. Can you check it .

0 Likes
7 Replies
AnkitaS_51
Employee
Employee
100 likes received 50 likes received 25 likes received

Can you try changing P3.3 to P3.0 for CY8C5888LTI-LP097.I think you are using CY8CKIT-059.

0 Likes

yes this is CY8CKIT-059.

I changed 3.3 to 3.0 but still this is not working.

why you are suggested pin changing?

0 Likes

My bad, I suggested so becoz P3.3 in CY8CKIT-059 is reserved  for HW REV ID but that is for Kitprog, that is depicted in CY8CKIT-059's schematic.

The routing in a PSoC5LP device is nearly unrestricted, so you may use any GPIO for the SPI signals as told on this forum thread:

Can I do SPI communication using CY8C5888LTI-LP097 chip even it has no dedicated spi lines?

0 Likes

Hi

I am telling you my procedure

1) CY8CKIT-059 is connected through usb to pc also it is programmed via usb

2) I am taking supply 5v through CY8CKIT-059. and convert it to 3.3v

3) Now connected the MOSI,MISO,CLK,CS with GPIO (P3.0,P3.4,P3.4,P3.5)

what is your suggestion for CY8CKIT-059.

code is working in 050 kit.

0 Likes
himam_31
Employee
Employee
50 likes received 25 likes received 10 likes received

Hello,

1)Are you using 2GB SD card, if not can you test with that.

2)Can you let us know what error are you facing exactly? Can you run the project in debug mode and check if the code is getting stuck somewhere.

At our end I'm able to get the project work and I'm able to see a file created.

SD Card.JPG

Thanks,

Hima

0 Likes

Thank you for your response

For cy8ckit-059

I changed with 2gb card , and I assumed that you are not changing any spi connection P3.0,3.4,3.5 and 3.6

and supply voltage is 3.3v.

But still I am not getting any dir in card.It is going to be in SD Card format failed.

    if(0 == FS_FormatSD(sdVolName))  // this condition is not satisfied

    {

        LCD_Position(1u, 0u);

        LCD_PrintString("Succeeded");

    }

    else

    {

       LED_Write(1);

        LCD_Position(1u, 0u);

        LCD_PrintString("Failed");

    }

Please give me support.

thanks again.

0 Likes

Hello,

We have tested the project and its working fine at our end. Can you try any other SD card adapter. Also can you probe the SPI MISO,MOSI,CLK lines check if you see any bus activities.

Thanks,

Hima

0 Likes