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.

AWR1243: ommunicate with AWR1243 using MCU in nonos

Part Number: AWR1243

Hi experts;

(1)I have Refered this similar thread AWR1243:

              AWR1243: DFP mmwl_powerOnMaster fails - Sensors forum - Sensors - TI E2E support forums

                 AWR1243: How to communicate with AWR1243 using MCU - Sensors forum - Sensors - TI E2E support forums

I use nonos mmm demo, what should i write in pHandler??

RL_P_EVENT_HANDLER g_RlInterruptFunc;
char gDeviceIndex = 0;
rlInt32_t app_RegisterInterruptHandler(rlUInt8_t deviceIndex, RL_P_EVENT_HANDLER pHandler, void* pValue)
{
g_RlInterruptFunc = pHandler;
return 0
}
/* GPIO interrupt handler for HotINT*/
void gpioIsr(gioPORT_t *port, uint32 bit)
{
g_RlInterruptFunc(0, &gDeviceIndex);
}

  • Hi Dan,

    This is correct implementation to handle the interrupt from AWR device, where HostIRQ line is connected to one of your GPIO on Host Processor.

    Another point to note that whenever you are expecting Async-event in your flow then rlNonOsMainLoopTask and rlAppSleep as implemented in one of DFP example

    C:\ti\mmwave_dfp_02_02_03_01\ti\example\mmWaveLink_SingleChip_NonOS_Example\mmw_example_nonos.c

    retVal = rlDevicePowerOn(deviceMap, clientCtx);
    while (mmwl_bInitComp == 0U)
    { /* waiting for powerup Async-event */
    rlNonOsMainLoopTask();
    rlAppSleep(5);
    timeOutCnt++;
    if (timeOutCnt > MMWL_API_INIT_TIMEOUT)
    {
    retVal = RL_RET_CODE_RESP_TIMEOUT;
    break;
    }
    }

    Regards,

    Jitendra