This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

MIBSPI5 which is configured as Slave not receiving data properly for TMS570LC Microcontroller.

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.

  • Hello John,

    Please try the following configurations:

    1. Oneshot transfer, TRG_ALWAYS, and TRG_DISABLED

    or
    2. Oneshot transfer, TRG_ALWAYS, and TRG_TICK; To do this test, please Enable MIBSPI5 interrupts in the MIBSPI VIM Channels tab, and add a interrupt notification:
    void mibspiGroupNotification(mibspiBASE_t *mibspi, uint32 group)
    {
    uint16 * data;
    mibspiGetData(mibspi, group, data);
    }