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.

AWR6843AOPEVM: About DPC_ObjectDetection_frameStart() inside objectdetection.c from out_of_box_6843_aop demo

Part Number: AWR6843AOPEVM

Tool/software:

Hi TI experts : 

I am tracing the source code inside "out_of_box_6843_aop" demo by following the process diagram 

on TI website. However , I am confused by the "frame event" trigger mechenism. Acccording to the

comments in the source code " DPC frame start function registered with DPM. This is invoked on

reception of the frame start ISR from the RF front-end" . Does that mean there is an ISR program

to invoke DPC_ObjectDetection_frameStart() ? If yes , where is this part of  source code? I assumed

there should be a function pointer called "DPM_ProcChainFrameStartCallbackFxn  frameStartFxn" to

invoke it like DPM_ioctl() passing the configurationial messages to DPM_msgRecv()  to invoke

DPC_ObjectDetection_ioctl() 

  • Hi Jerry,

    I have assigned this thread to one of our software engineers. Please expect a response within the next business day.

    Thanks,
    Kundan

  • Hey Jerry,

    Does that mean there is an ISR program

    to invoke DPC_ObjectDetection_frameStart() ?

    You are correct. The DPC_ObjectDetection_frameStart is called via the DPM_frameStartISR which is registered during the DPM_initDPC function under <MMWAVE_SDK_INSTALL_DIR>/packages/ti/control/dpm/src/dpm.core.c. 

    There is a DPM_ProcChainCfg pointer variable, ptrProcChainCfg, which contains function callbacks for configuring and controlling a particular processing chain. Depending on the processing chain, different callback functions are assigned to the ptrProcChainCfg. In the case of the object detection processing chain, the gDPC_ObjectDetectionCfg configuration is assigned to ptrProcChainCfg which includes the DPC_ObjectDetection_frameStart function amongst its list of callback functions. The ptrProcChainCfg is then used to populate the DPM master control block during DPM_initDPC which is then referenced in DPM_frameStartISR.

    It can be a bit confusing to follow, but if you look through the dpm.core.c file and the previously mentioned variables, you should be able to piece it together yourself if needed.  

    Regards,

    Kristien

  • Hi Kristien:

    I followed your instructions and found it. DPM_frameStartISR turned out to be registered inside DPM_initDPC function                              and DPC_ObjectDetection_frameStart() is activated through frameStartFxn function pointer inside DPM_frameStartISR.                                                                                I kept finding the code inside objectdetection.c instead of dpm_core.c at the very begining . Thanks for instructions 

  • No problem, Jerry!

    I will close this thread now, but if you have any other questions, please post a new question, and we'll get to you as soon as we can.

    Cheers,

    Kristien