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.

IWRL6432: CCS Debbuging crashes in MMWave_init(&initCfg, &errCode)

Part Number: IWRL6432


Tool/software:

I am trying to implement a mmwave application from scratch, mainly deriving code from the mmwave demo project.

My scope is not to get the demo to run in debug mode, but to debug my own project, implementing a bare minimum solution.

Currently my application (as well as the demo project) crashes on MMWave_init(&initCfg, &errCode); in:

int32_t mmwave_initSensor()
{
    int32_t             errCode;
    int32_t             retVal = SystemP_SUCCESS;
    MMWave_InitCfg      initCfg;
    MMWave_ErrorLevel   errorLevel;
    int16_t             mmWaveErrorCode;
    int16_t             subsysErrorCode;

    /* Initialize the mmWave control init configuration */
    memset ((void*)&initCfg, 0, sizeof(MMWave_InitCfg));

    initCfg.iswarmstart = false;

    /* Initialize and setup the mmWave Control module */
    ctrlHandle = MMWave_init(&initCfg, &errCode);
    if (ctrlHandle == NULL)
    {
        /* Error: Unable to initialize the mmWave control module */
        MMWave_decodeError(errCode, &errorLevel, &mmWaveErrorCode, &subsysErrorCode);

        /* Error: Unable to initialize the mmWave control module */
        DebugP_log("Error: mmWave Control Initialization failed [Error code %d] [errorLevel %d] [mmWaveErrorCode %d] [subsysErrorCode %d]\n", errCode, errorLevel, mmWaveErrorCode, subsysErrorCode);
        retVal = SystemP_FAILURE;
        
    }
    return retVal;
}

The debugger crashes, when stepping through the function, or setting a breakpoint.

I am suspecting a faulty debugging process, caused by a low power mode misconfiguration.

Is it correct, that when developing, and debugging with CCS, it is required to disable low power mode?

My plan is to set lowPowerCfg = 2, to emulate low power mode, like described in the FAQ: https://e2e.ti.com/support/sensors-group/sensors/f/sensors-forum/1278733/faq-iwrl6432-debugging-with-deep-sleep

But i dont really find where to set it. Is it part of some config struct? Where can i find the documentation regarding the lowPoerCfg parameter?


Thanks in advance,
Jonas Lux

  • Hi,

    We are looking into your query. Please allow us a couple of days to respond.

    Regards

  • I found the issue. It was due to a version mismatch in the mmwave-l sdk.

    After installing updates to the SDK and driver update to the debugging probe, the old project was still referencing the old SDK (05-05-02), which seems to have caused a wrong reference when debugging.
    Migration to a fresh project with the updated SDK (05-05-03) solved the issue.