Problems with SPI communication with ST25R95
Hi,
We are facing a lot of problems with the SPI communication with an ST25R95 device.
We are using as a main CPU an Silicon Labs EFR32MG13 with the next configuration:
config.master = true; // master mode
config.baudrate = 1000000; // CLK freq is 1 MHz
config.autoCsEnable = true; // CS pin controlled by hardware, not firmware
config.clockMode = usartClockMode0; // clock idle low, sample on rising/first edge
config.msbf = true; // send MSB first
config.autoCsHold = 1; /** Auto CS hold time in baud cycles */
config.autoCsSetup = 1; /** Auto CS setup time in baud cycles */
For example, if we send the next stream of bytes in order to execute an echo command:
{0x01, 0x55, 0x03, 0x03, 0x02, 0x03}
We receive the correct answer only if we stop the execution after sending each byte, if not what we receive is:
{0x06, 0x06, 0x00, 0x00, 0x00, 0x00}
And since this moment the ST25R95 will just only send us zeros.
Is there any way to restart the chipset from this state without remove the power supply?
Also, we don't know if the chip select pin must remain low during all the read and write transaction or if it must be set and reset for each byte.
Thanks a lot and regards,
