hi
i have some problem when i used the mmwave_demo code. I wanna reconfiguration the register "FrameCfg" every frame in the dss side.
i trying to insert the code segment into the function "MmwDemo_dssFrameStartIntHandler"("C:\ti\mmwave_sdk_01_00_00_05\packages\ti\demo\xwr16xx\mmw\dss\dss_main.c").but it got error.
would you please tell me what the error means and how to deal with it?
if this method is wrong , have some advice for the other ways?
code segment:
static void MmwDemo_dssFrameStartIntHandler(uintptr_t arg)
{
int32_t errCode = 0;
if(gMmwDssMCB.state == MmwDemo_DSS_STATE_STOPPED)
{
gMmwDssMCB.stats.frameIntSkipCounter++;
return;
}
if(gMmwDssMCB.state == MmwDemo_DSS_STATE_STOP_PENDING)
{
/* stop the clock as the DSP will be stopped at the end of this active frame */
Clock_stop(gMmwDssMCB.frameClkHandle);
}
if (errCode != RL_RET_CODE_OK)
{
/* Error: Setting the chirp configuration failed */
System_printf ("Error: frame configuration error [Error code %d]\n", errCode);
}
/* Check if previous chirp processing has completed */
DebugP_assert(gMmwDssMCB.dataPathObj.interFrameProcToken == 0);
gMmwDssMCB.dataPathObj.interFrameProcToken++;
/* Increment interrupt counter for debugging purpose */
gMmwDssMCB.stats.frameStartIntCounter++;
/* reconfiguration the frame */
errCode = rlSensorStop (RL_DEVICE_MAP_INTERNAL_BSS);
if (errCode != RL_RET_CODE_OK)
{
System_printf ("Debug : sensor stop error\n");
}
gframeCfg.chirpStartIdx = 0;
gframeCfg.chirpEndIdx = 511;
gframeCfg.numLoops = 1;
gframeCfg.numFrames = 0;
gframeCfg.framePeriodicity = 100 * 1000000 / 5;
gframeCfg.triggerSelect = 1; //Software API based triggering
gframeCfg.frameTriggerDelay = 0 * 1000000 / 5;
errCode = rlSetFrameConfig(RL_DEVICE_MAP_INTERNAL_BSS, &gframeCfg);
if (errCode != RL_RET_CODE_OK)
{
System_printf ("Debug : frame configuration error\n");
}
errCode = rlSensorStart (RL_DEVICE_MAP_INTERNAL_BSS);
if (errCode != RL_RET_CODE_OK)
{
System_printf ("Debug : sensor start error\n");
}
/* Post event to notify frame start interrupt */
Event_post(gMmwDssMCB.eventHandle, MMWDEMO_FRAMESTART_EVT);
}
the error shows as below:
pic1 :
pic2:
pic3 :
pic4:
pic5 :
BR
Havi