Tool/software: TI-RTOS
Hello,
experts, I'm working on getting the chip temperaturte when awr1642 is working. I know in the demo, there is rlRfGetTemperatureReport() API which we can call to make it. And i add this API into the sdk_01_01_00_02 as follow:
static int GetTemperature(void)
{
rlRfTempData_t TempData;
rlRfGetTemperatureReport(RL_DEVICE_MAP_INTERNAL_DSS_MSS, &TempData);
UART_writePolling (gMmwMssMCB.loggingUartHandle, (uint8_t*)&TempData,sizeof(TempData));
return 0;
}
static void GetTemperatureTask(UArg arg0, UArg arg1)
{
while(1)
{
if(GetTemperature() < 0)
{
// DBG("Failed");
System_printf("Error in getting temperature!");
}
Task_sleep(1000);
}
}
And then I create a task in the MmwDemo_mssInitTask():
Task_Params_init(&taskParams);
taskParams.priority = 7;
taskParams.stackSize = 1024;
Task_create(GetTemperatureTask, &taskParams, NULL);
But the data received is all 'FF',as show in the screenshot.
Thanks a lot,
Cassie