Hi
I am using TMS570LC43x EVM board and trying to communicate between MIBSPI1 and MIBSPI5.
I have Configured MIBSPI1 as Master and MIBSPI5 as slave and trying to send data from Master to Slave , but the data is not received properly.
Connections
MIBSPI1 MIBSPI5
SIMO[0] -> SIMO[0]
SOMI[0] -> SOMI[0]
CLK -> CLK
SCS[0] -> SCS[0]
When checked with loopBack mechanism trx and reception of data was proper for both MIBSPI1 and MIBSPI5, but while trying to communicate with MIBSPI5 from MIBSPI1 , data is not receiving properly,
every time data is showing as 255.
Other than the above mentioned pins all pins were made as GIO, in the MIBSPIx PORT section.
CSDEF (Default Chip select has been given as 0x01 in both MIBSPI1 and MIBSPI5)
PINMUX has been properly configured
Can please provide your feedback on this.
code snippet:-
/* USER CODE BEGIN (3) */
mibspiInit();
mibspiSetData(mibspiREG1, 0, &trx_data);
mibspiTransfer(mibspiREG1, 0);
while(!(mibspiIsTransferComplete(mibspiREG1,0)));
mibspiGetData(mibspiREG5,0,&rcv_data);
while(1);
/* USER CODE END */
Thank you
John.