Other Parts Discussed in Thread: IWR6843
With IWR6843 ISK-ODS, I tried the following in the pcount3D_cli.c file.
cliCfg.tableEntry[cnt].cmd = "sensorReset";
cliCfg.tableEntry[cnt].helpString = "No arguments";
cliCfg.tableEntry[cnt].cmdHandlerFxn = Pcount3DDemo_CLISensorReset;
cnt++;
...
static int32_t Pcount3DDemo_CLISensorReset (int32_t argc, char* argv[]);
...
static int32_t Pcount3DDemo_CLISensorReset (int32_t argc, char* argv[])
{
Pcount3DDemo_stopSensor();
Pcount3DDemo_resetStaticCfgPendingState();
gMmwMssMCB.sensorState = Pcount3DDemo_SensorState_STOPPED;
*(volatile uint32_t*)(0xFFFFE11C) = 0x000000AD;
return 0;
}
I get an exception, when I send the config file to the board.
b'sensorStop\n'
b'Done\n'
b'\rmmwDemo:/>sensorReset\n'
b'Exception: C:/ti/mmwave_industrial_toolbox_4_5_1/labs/people_counting/68xx_3D_people_counting/src/mss/mss_main.c, line 752.\n'
Here are the lines around mss_main.c:752
/* Error/Warning: Unable to stop the mmWave module */
MMWave_decodeError (errCode, &errorLevel, &mmWaveErrorCode, &subsysErrorCode);
if (errorLevel == MMWave_ErrorLevel_ERROR)
{
/* Error: Display the error message: */
System_printf ("Error: mmWave Stop failed [Error code: %d Subsystem: %d]\n",
mmWaveErrorCode, subsysErrorCode);
/* Not expected */
Pcount3DDemo_debugAssert(0); // This is line 752
}