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.

IWRL1432BOOST: SPI Data Transmission for Fluid Level Sensing on IWRL1432

Part Number: IWRL1432BOOST
Other Parts Discussed in Thread: IWRL1432

Tool/software:

Hi,

I'm currently working with the IWRL1432 board and have flashed the level sensing .appimage located at:

radar_toolbox_2_30_00_12\source\ti\examples\Industrial_and_Personal_Electronics\Level_Sensing\high_accuracy_low_power_sensors\prebuilt_binaries

I have a couple of questions:

  1. Does the High Accuracy Visualizer GUI support my board?

  2. I want to send the sensor value (fluid distance from the sensor) to another MCU (STM32) using SPI (i refer MCSPI code also). To achieve this, I've imported the source code into Code Composer Studio (CCS), enabled the MCSPI driver, and added the following code in void level_sensing(void* args); function

    MCSPI_Transaction_init(&spiTransaction);
    spiTransaction.channel = gConfigMcspi0ChCfg[0].chNum;
    spiTransaction.dataSize = 8;
    spiTransaction.csDisable = TRUE;
    spiTransaction.count = 128; //APP_MCSPI_MSGSIZE / (spiTransaction.dataSize/8);
    spiTransaction.txBuf = (void *)gMcspiTxBuffer;
    spiTransaction.rxBuf = (void *)gMcspiRxBuffer;
    spiTransaction.args = NULL;

Now, my question is: where should I call the SPI transfer 
Regards
Rakesh Amara

  • Please Respond Anyone

  • Hi,

    You can refer to the below example for MCSPI integration

    MMWAVE_L_SDK_05_05_02_00\examples\drivers\mcspi

    You will have to send the 3 peaks along with their magnitude through the McSPI. You can find the results to be sent out in dpc.c

                gMmwMssMCB.cfarDetObjOut[i].x        = 0;
                gMmwMssMCB.cfarDetObjOut[i].y        = level_meas / 10000.0; // zoom meas in m
                gMmwMssMCB.cfarDetObjOut[i].z        = 0;
                gMmwMssMCB.cfarDetObjOut[i].velocity = 0;
                gMmwMssMCB.cfarDetObjOut[i].snr      = (float)(peak1DMag[i] >> 6);
                gMmwMssMCB.cfarDetObjOut[i].noise    = (float)(peak1DMag[i] & 0x3f);
    Regards