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.

CCS/AWR1642BOOST: How to write the temperature data on the txt file by function mmwDemo_mboxReadTask() in the MSS code?

Part Number: AWR1642BOOST

Tool/software: Code Composer Studio

Hi,

I want to write the temperature data on the txt file by function mmwDemo_mboxReadTask() in the MSS code.

Could you tell me how to call function mmwDemo_mboxReadTask() in Mmwdemo_mssInitTask(...):

void Mmwdemo_mssInitTask(...)
{
   .....
   .....
    eventHandleNotify_0 = Event_create(NULL, &eb);
    if (eventHandleNotify_0 == NULL)
    {
        MmwDemo_mssAssert(0);
        return ;
    }
    .....
    .....
    
    MmwDemo_CLIInit();
    /*****************************************************************************
     * Benchmarking Count init
     *****************************************************************************/
    /* Configure banchmark counter */
    Pmu_configureCounter(0, 0x11, FALSE);
    Pmu_startCounter(0);
   
    rlRfTempData_t tempData = {0};
    
    /* Pend on the START NOTIFY event */
    Event_pend(eventHandleNotify_0,
                          Event_Id_NONE,
                          MMWDEMO_DSS_START_COMPLETED_EVT,
                          BIOS_WAIT_FOREVER);
                          
    while(1)
    {
        errCode = rlRfGetTemperatureReport(RL_DEVICE_MAP_INTERNAL_BSS, &tempData);
        if(errCode < 0)
        {
            CLI_write("GetTemp API failed \n");
        }
        else
        {
            CLI_write("Temperature: %d, %d, %d, %d, %d, %d, %d, %d \n", tempData.tmpRx0Sens, tempData.tmpRx1Sens,
                                                                        tempData.tmpRx2Sens, tempData.tmpRx3Sens,
                                                                        tempData.tmpTx0Sens, tempData.tmpTx1Sens,
                                                                        tempData.tmpPmSens, tempData.tmpDig0Sens);
/*
* The place I want to call function mmwDemo_mboxReadTask().
*/
        }
        
        Task_sleep(1000);
    }   
}
Best wishes,
Jimmy.