AnsweredAssumed Answered

How to Receive data in spi slave mode?

Question asked by MinYeop Na on Aug 23, 2019
Latest reply on Aug 29, 2019 by Jorge Antonio Alcala Vazquez

Hello. support team.

 

I use s32k118 & 3.0 SDK.

 

Now I have a problem that spi read operation in slave mode.

Slave sends well data to the master. but Slave can not receive data from the master.

 

uint8_t slaveDataSend = 0x14;

uint8_t slaveDataReceive = 0x0;

 

LPSPI_DRV_SlaveTransfer(DRV_SPI_SLAVE, &slaveDataSend, &slaveDataReceive, 1);

 

slaveDataSend --> Master receive well slave write data.

slaveDataReceive -->  Slave can not receive Spi Read data from the master.

 

Could you please let me know how to receive spi data in slave mode?

or

Could you send me a sample code about spi read operation in slave mode?

 

Outcomes