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.

AWR1843BOOST: Error -203227134 after send the sensorStart command when enable full mode - MRR lab

Part Number: AWR1843BOOST

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

  • Let me forward this to right expert to assist you better.

  • Hi Jairo,

    While the CLI API for MRR lab looks similar to the OOB Demo, I don't think the functionality to send commands multiple times has been tested on it.

    Could you use MMWave_decodeError in your code and print the outputs and get back to me? This will help identify what the MMWave error is.

    Also, as I said, the functionality to send commands multiple times might not be supported. So I am not sure if there will be an easy way to make your use-case work even after identifying the MMWave error's cause. It is doable of course, but might need some changes to the MRR lab.

    Regards,

    Aayush