I am using SPI to read and write to EEPROM(m95512), but I read result is 0xFF using the following interface :
SPI_MasterTransferBlocking(&spi_motorInstance, &cmd, &rec, 1, 1);
- what do you see on SIN pin, is there different value sent from EEPROM? Can you share signals you have on SPI bus?
- what is the status returned by SPI_MasterTransferBlocking function?
- last parameter is timeout (in ms), you can try to extend it.
Thank you. I have resolve to this problem. It need to wait a few times between two frames to send.
Signature is customized by Netease Mail Master