Hi,
I have modified the demo code for a iwr1443 part. My application only requires distance information only, not speed or aoa. One modification involves a small amount of additional processing in the function MmwDemo_dataPathTask. The best place for my additional code is after the first FFT processing. I actually have my few lines of code in the outer loop of the clutter removal section.
Depending upon the event, I may have to pause the execution of the code for 2 seconds. I generate this delay using this code fragment
t1=Pmu_getCount(0);
t2=t1+4000000*R4F_CLOCK_MHZ; /*2 second delay*/
while(t1<t2)
{
t1=Pmu_getCount(0);
}
During this delay, the program faults in the function MmwDemo_frameStartIntHandler at the line
MmwDemo_debugAssert(dpObj->interFrameProcToken == 0);
according to the debugger. I then thought I should perhaps stop the bss program before I start the delay and restart the program after the delay. I tried stopping the program using the two function calls (MmwDemo_notifySensorStop and MmwDemo_waitSensorStopComplete) in function MmwDemoCLISensorStop before the delay occurs. The code appears to hang in the function MmwDemo_waitSensorStopComplete due to an appending event.
My questions are:
1. Is my belief that I have to suspend/stop the execution of the bss program to achieve a 2 second delay or I'm I experiencing some other problem?
2. If I have to suspend or stop the bss program, how should I do this? I would have thought I should be able to stop the program since through the cli, unless the program clears certain events first.
3. If I have to clear events first, how to should this be done so I can perform my processing without any other delay?
Thanks.
Al