Tool/software: Code Composer Studio
We want to have preset parameters when booting
Regarding the description below, Can you provide examples code?
How to bypass CLI
Re-implement the file mmw_cli.c as follows:
- MmwDemo_CLIInit should just create a task with input taskPriority. Lets say the task is called "MmwDemo_sensorConfig_task".
- All other functions are not needed
- Implement the MmwDemo_sensorConfig_task as follows:
- Fill gMmwMssMCB.cfg.openCfg
- Fill gMmwMssMCB.cfg.ctrlCfg
- Add profiles and chirps using MMWave_addProfile and MMWave_addChirp functions
- Call MmwDemo_CfgUpdate for every offset in Offsets for storing CLI configuration (MMWDEMO_xxx_OFFSET in mmw_mss.h)
- Fill gMmwMssMCB.objDetCommonCfg.preStartCommonCfg
- Call MmwDemo_openSensor
- Call MmwDemo_configSensor
- Call MmwDemo_startSensor (One can use helper function MmwDemo_isAllCfgInPendingState to know if all dynamic config was provided)