Did you connect the right pins?
If you modified the example projects, please attached both projects here.
Or create a ticket if you don't want to share it publicly.
Make sure the lpspi transfer API on the Slave device is called before the Master starts the transfer.
The Slave must have data in the TX FIFO when the transfer starts.
Regards,
Daniel
Hi @P007,
You configured both MCUs as SPI Masters.
And this is what you call in the Slave project you attached:
for(;;)
{
LPSPI1_16bits_read = LPSPI1_receive_16bits(); /* Receive half word on LSPI1 */
LPSPI1_transmit_16bits(tx_16bits); /* Transmit half word (16 bits) on LPSPI1 */
counter++;
}
As I have already mentioned, when the Master starts the transfer, the LPSPI TX FIFO on the Slave's side must be filled with data provided it is a full-duplex format. But your code is waiting for RX data instead.
Please use the SDK or RTD drivers at least for the Slave device.
Regards,
Daniel
Hi Pankaj Unde,
In that case, there is something wrong with the Slave device.
Have you tried the SDK example instead?
It utilizes both Master and Slave in the one project.
Regards,
Daniel