Strictly necessary cookies are on by default and cannot be turned off. Functional, Performance and Tracking/targeting/sharing cookies can be turned on below based on your preferences (this banner will remain available for you to accept cookies). You may change your cookie settings by deleting cookies from your browser. Then this banner will appear again. You can learn more details about cookies HERE.
Strictly necessary (always on)
Functional, Performance and Tracking/targeting/sharing (default off)
I am using a CY8CKIT-050 PSoC5 with PSoC Creator 4.0 Update 1. I downloaded the example design SPI_Design01. In Device Selector I changed the device from CY8C38 series (PSoC3) to my CY8C5868AXI-LP035 chip. No output displayed on the LCD.
For diagnosis, I added the board's two LEDs to the design. In main.c I turn one LED on just before the while loop and the other LED just after the while loop. The first LED lights but the second does not. This shows that the hang is in the while loop. I temporarily changed the & in the while loop to && and displayed garbage output, of course. With && ANY bit in the Status could satisfy the condition. This shows that SPIS_STS_SPI_DONE bit is never set. I set a breakpoint at the while loop and stepped through. The last code executed was in SPIS.c lines 416 to 433. Control returned to the while loop. I have jumper wires connecting: m_miso to s_miso ( P0 to P0 ) m_mosi to s_mosi ( P0 to P0 ) m_sclk to s_sclk ( P0 to P0 ) m_ss to s_ss ( P0 to P0 )
Does anyone have suggestions or time to try my build? I have attached the Archive complete file.