Hi,
Am also facing same issue, I have ported the DSPI portion to MPC5777C example. Following are my initializations
/*DSPI_A Init(Master Mode)*/
DSPI_A.MCR.R = 0x80010001;//0x80010001
DSPI_A_CTAR0 = 0x7802100F;//0x78021004
/*Receive FIFO Drain Request enable*/
DSPI_A.RSER.B.RFDF_RE = 1;
/* Exit HALT mode: go from STOPPED to RUNNING state*/
DSPI_A.MCR.B.HALT = 0x0;
/*DSPI_B Init (Slave Mode)*/
/*Configured slave mode */
DSPI_B.MCR.R = 0x00000001;
DSPI_B.MODE.CTAR_SLAVE[0].R = 0x38000000;
DSPI_B_CTAR0 = 0x7802100F;//0x78021004
/*Receive FIFO Drain Request enable*/
DSPI_B.RSER.B.RFDF_RE = 1;
/* Exit HALT mode: go from STOPPED to RUNNING state*/
DSPI_B.MCR.B.HALT = 0x0;
/*GPIO*/
/*DSPI_A*/
SIU.PCR[96].R = 0x06DC; //DSPI_A_CS0 //Output
SIU.PCR[93].R = 0x06DC; //DSPI_A_SCK //Output
SIU.PCR[95].R = 0x06DC; //DSPI_A_SOUT //Output
SIU.PCR[94].R = 0x05DC; //DSPI_A_SIN //Input
/*DSPI_B*/
SIU.PCR[105].R = 0x05DC; //DSPI_B_CS0 //Input
SIU.PCR[102].R = 0x05DC; //DSPI_B_SCK//Input
SIU.PCR[104].R = 0x06DC; //DSPI_B_SOUT
SIU.PCR[103].R = 0x05DC; //DSPI_B_SIN //Input
The wiring connection:
SINA PM7 -> PO2 SOUTB
SOUTA PM8 -> PM15 SINB
SCKA PM6 -> PO0 SCKB
PCSA0 PM13 -> PM10 PCSB0
Trying transmit from Master to Slave its stopped at while((DSPI_A.SR.B.TCF == 0) || (DSPI_B.SR.B.TCF == 0))//Wait for Tx complete
{}
Could you pleas let me know what change made it work for you? .Possible can u share DSPI Init details ?
Thanks & Regards,
Sudheer A.