SPI ISSUE

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

SPI ISSUE

208 Views
chris_010
Contributor III

In my project, I use spi as slave to receive data(Interrupt mode).when I use SPI_0, every thing goes well,I can receive data normally.However when I use SPI_1 and SPI_3,I can't receive normally, but the callback shows spi data transfer end. I have checked the SPI configuration across these cases, no issues were found.What may be the cause of SPI_1 reception failure, MY code is attached.

Lpspi_Ip_AsyncTransmit(&SLAVE_EXTERNAL_DEVICE_1, Spi_0_TxSlaveBuffer, Spi_0_RxSlaveBuffer, 54, lpspi_callback_int);
Lpspi_Ip_AsyncTransmit(&SLAVE_EXTERNAL_DEVICE_2, Spi_1_TxSlaveBuffer, Spi_1_RxSlaveBuffer, 54, lpspi1_callback_int);

Spi_0_TxSlaveBuffer receive data normalyyl, but Spi_1_TxSlaveBuffer can't.

 

Tags (1)
0 Kudos
Reply
0 Replies