AnsweredAssumed Answered

5743R/5746R  -SPI slave

Question asked by zhang xujian on May 29, 2019
Latest reply on Jun 7, 2019 by Petr Stancik

 Leo HowKirk Humphries     

how to configure a DSPI as slave routine using processor export on S32DS?I used oscilloscope to collect external equipment to send data to slave spi on MCU, clock and data are ok, but a receiving interruption of this spi do not happen, what is wrong?My configuration is as follows:

 

void SPI0_init(void)
{
INT_SYS_InstallHandler(DSPI0_RFDF_IRQn, &DSPI0_Receive_IRQHandler, (isr_t *)0);
DSPI_SlaveInit(INST_DATA_RX_33664SPI,&DATA_RX_33664SPIState,&DATA_RX_33664SPI_SlaveInitConfig0);
DSPI_SlaveTransfer(INST_DATA_RX_33664SPI,DATA_RX_33664SPI_master_send,DATA_RX_33664SPI_master_receive,5);
}

Outcomes