CY7C65215-32LTXI always times out when reading and writing SPI data under Ubuntu

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

cross mob
Jungle
Level 1
Level 1
First reply posted First question asked Welcome!

hi support team,

We call the chip, operate scb0 (I2C) and scb1 (SPI) normally on windows, and then transplant it to Ubuntu. I2C protocol works normally, SPI protocol reads and writes data, and the return status is timeout. It is normal to initialize cypress, open SPI, set SPI parameters and set IO status

-------------------------------------------------------------------

CY_DATA_BUFFER WriteBuffer;

UINT32 num = 1;
UCHAR buf[] = { 0x06 };

WriteBuffer.buffer = buf;
WriteBuffer.length = num;
WriteBuffer.transferCount = 0;

Status = CySpiReadWrite(s_SpiHandle,NULL,&WriteBuffer,TIMEOUT_MILLISECONDS);

//Status = CY_ERROR_IO_TIMEOUT

--------------------------------------

 

Thank you for your support

Best regards,

Jungle.

0 Likes
5 Replies