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