Hi, my goal is to reconfigure the radar in runtime with the functions provided by you in the MRR lab, to achieve this I know that I need to call to CLI_MMWaveFlushCfg function after I stop the sensor (sdk guide), but this function is available only in full configuration mode (if I try to use it in minimal mode I got an error), so I change this in the original code:
MRR_MSS_initTask:
/* Populate the initialization configuration:
* The MMWAve is configured in minimal isolation mode. */
initCfg.domain = MMWave_Domain_MSS;
initCfg.socHandle = gMrrMSSMCB.socHandle;
initCfg.eventFxn = &MRR_MSS_eventFxn;
//initCfg.cfgMode = MMWave_ConfigurationMode_MINIMAL;
//AIDA
initCfg.cfgMode = MMWave_ConfigurationMode_FULL; //needed to use flushcfg command
initCfg.executionMode = MMWave_ExecutionMode_ISOLATION;
initCfg.linkCRCCfg.useCRCDriver = 1U;
initCfg.linkCRCCfg.crcChannel = CRC_Channel_CH1;
initCfg.cooperativeModeCfg.cfgFxn = &MRR_MSS_cfgFxn;
initCfg.cooperativeModeCfg.startFxn = &MRR_MSS_startFxn;
initCfg.cooperativeModeCfg.stopFxn = &MRR_MSS_stopFxn;
initCfg.cooperativeModeCfg.openFxn = &MRR_MSS_openFxn;
initCfg.cooperativeModeCfg.closeFxn = &MRR_MSS_closeFxn;
and I enable the CLI task
MRR_MSS_CLIInit:
//AIDA
//#if 0
/* Open the CLI: */
if (CLI_open (&cliCfg) < 0)
{
System_printf ("Error: Unable to open the CLI\n");
return;
}
System_printf ("Debug: CLI is operational\n");
//#endif
/* The link is not configured. */
gMrrMSSMCB.cfgStatus = false;
gMrrMSSMCB.runningStatus = false;
gMrrMSSMCB.isMMWaveOpen = false;
//AIDA
/*
MRR_MSS_CLIAdvancedFrameCfg(1, dummy);
MRR_MSS_CLISensorStart(2, dummy);
*/
but, when I send the advFrameCfg command and the sensorStart command from a terminal the app crashes after the sensorStart command, I get this error
If I keep the original code (minimal mode) I send the advFrameCfg and sensorStart commands and the radar starts working without problems.
So, is the MRR lab code designed to work with all the CLI commands or is this a blocked functionality in this lab, and the CLI is limited just to those few commands provided in the mss_mrr_cli.c file?
maybe my approach is not workable
thanks