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.

IWR1642BOOST: How to config IWR1642 spi slave mode

Part Number: IWR1642BOOST
Other Parts Discussed in Thread: IWR1642

HI 

I am connectting IWR1642 spi out to raspberrypi pi 4.    IWR1642 is slave mode and Pi is configured as spi master.

I am flashing the spi  test code ti/mmwave_sdk_03_03_00_03/packages/ti/drivers/spi/test/xwr16xx/  as i saw there is different configuration.  i enabled gXWR1xxxSlaveWithMSPTest flag it seems config IWR1642 in slave mode .  I send data from PI however the i dump the bfufer that recived  in Test_spiMasterRead(handle, 0U); the data are not the same.

spi test code seems config spiA as 3 pin mode is it correct?

 else if (gXWR1xxxSlaveWithMSPTest)
    {
        /* Enable output control for SPIA 3-pin Mode */
        if(SOC_SPIOutputCtrl(socHandle, 0U, 0U, &errCode) < 0)
        {
            /* Debug Message: */
            System_printf ("Debug: SOC_SPIOutputCtrl failed with Error [%d]\n", errCode);
            return;
        }
void Test_spiWithMSP43x(bool master, uint32_t bitRate) {
    params.frameFormat = SPI_POL0_PHA0;
    params.shiftFormat = SPI_MSB_FIRST;
    params.pinMode = SPI_PINMODE_3PIN;
    params.eccEnable = 1
}

 

Thanks,

Terry