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.

IWR1443: Suspending code operation for a iwr1443 part

Part Number: IWR1443

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

  • Hi Al,

    For the delay setting, please follow this link to see if that helps. 

    Thanks and Regards,

    Michelle

  • Hi,

    Thank you for responding but it is not the delay I am having an issue with I believe.  I have tested out the delay else where in the code before the sensor is started and it works well.  The issue is once the sensor is working (the start command is issued) if a delay is inserted, the program fails as I indicated (and where is fails too).  I then thought I should stop the execution of the code with a stop command before I activate a delay and then it hangs waiting for an event to occur as I tried to indicate in my posting.  Please review my original posting for the details.

    Al

  • Al,

    If the goal is to pause the chirping to do processing, it's not a good idea. Delay using ARM function is not going to work given other things will interrupt the ARM during regular chirping. It's recommended to do one frame, post-processing and then trigger another frame.

    Thanks and Regards,
    Michelle
  • Hi Michelle,

    Thank you very much for the information.  I was afraid of this answer.  Doing a frame at a time would not allow me to sample the distance very fast since of the over head time doing one frame at a time would take too long.

    Al