Sep 13, 2021
12:42 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Sep 13, 2021
12:42 AM
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.
5 Replies