Hello,
I am using DM6437 EVM to test SPI communication. I am not using TI driver code but I have modified the McBSP CSL example code for SPI communication.
To test the SPI communication, I have configured McBSP0 as a SPI master and McBSP1 as a SPI Slave as per the MCBSP user guide SPRU943c. I have also externally connected pins (transmit and receives) between McBSP0 and McBSP1 as per SPRU943c. I have successfully data transfer from McBSP0 (as SPI Master) to McBSP1( as SPI Slave) i.e means data transfer from SPI master to SPI slave. However I could not able to do data transfer from McBSP1 (as a SPI slave) to McBSP0 (as a SPI master). (i.e. data transfer from Slave to master). I am not able to receive single word at SPI master transmitted from SPI Slave.
I am trying to send few bytes from SPI slave to SPI master. But SPI master is not able to receive single byte from slave.
Can anybody please review my code and let me know what should i have to do so Slave can able to tranfer few words to master.
I have attached my test code here with. Please do the needful ASAP.
P.S.
EVM DM6437 clock freq 594Mhz,
MCBSP freq 99MHz,
SPI Master (Mcbsp0) clock freq 1 MHz, clock divider value 99.
SPI Slave (Mcbsp1) clock freq 8.25 MHz, clock divider value 12.
Regards,
Naresh