cancel
Showing results for 
Search instead for 
Did you mean: 

USB Low-Full-High Speed Peripherals

Jungle
New Contributor

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