cancel
Showing results for 
Search instead for 
Did you mean: 

PSoC 5, 3 & 1 MCU

RaSh_3782726
New Contributor II

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
Reply
7 Replies
AnkitaS_51
Employee

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

0 Likes
Reply
RaSh_3782726
New Contributor II

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
Reply
AnkitaS_51
Employee

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
Reply
RaSh_3782726
New Contributor II

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
Reply
himam_31
Employee

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
Reply
RaSh_3782726
New Contributor II

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
Reply
himam_31
Employee

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
Reply