Hi, I'm using the lpspi driver (sdk5.0) to read the device ID from an external flash. Running Lpspi_Ip_SyncTransmit passing both Tx and Rx buffers works well, but we I try to first sent the Tx buffer and after the Rx buffer it does not work as expected.
WORK:
spiTxBuffer[0] = 0x9F;
lpspi_status = Lpspi_Ip_SyncTransmit(&MASTER_1, spiTxBuffer, spiRxBuffer, 4, TIMEOUT);
NOT WORKS:
spiTxBuffer[0] = 0x9F;
lpspi_status = Lpspi_Ip_SyncTransmit(&MASTER_1, spiTxBuffer, NULL, 1, TIMEOUT);
lpspi_status = Lpspi_Ip_SyncTransmit(&MASTER_1, NULL, spiRxBuffer, 3, TIMEOUT);
Is anything I'm missing?
Thanks in advance for any clarification.