Hi team,
Sorry I did not get answers for almost all of my questions in this e2e thread. I am reposting my question with extra details
we are using MMWAVE_L_SDK_05_01_00_04 and AWRL6432L board. we have a memory constraint to use as much as less memory for code section and needs to use CAN.
We are using CAN for configuring radar instead of CLI task and we removed all CLI function calls such as open and init functions. Sensor is not getting started.
So we debug the code in following methods on base SDK code:
1. Before CLI_init, hard coded radar configuration code to bypass CLI configuration in freertos_main thread and called mmwDemo_factoryCal and CLI_MMWStart functions. By doing this, sensor is not started.
2. On top of method 1, created another task same as CLI_Task(called sensorStart_Task) and called only mmwDemo_factoryCal and CLI_MMWStart functions in it. Sensor is started at once, went upto rangeproc_process and then further RSP process has not happened.
3. On top of method 2, We kept semaphoreP_pend after starting sensor. The RSP sequence is happening fine in debug mode with gDebugTargetCode = 1. But while running in release mode with gDebugTargetCode = 0, assertion is seen at line no:574 in motion_detect.c. which tends to mmwMssMCB->interSubFrameProcToken == 0 error for first frame.
4. On top of method 3, We set gDebugTargetCode = 1 and ran for one frame in Debug mode and kept break point after range proc, It did not hit the break point. But if I ran for 2 frames, It is hitting break point for one time. So I believe for first frame it is not hitting the break point, but for second frame it is hitting,
Here are my questions from above experiment.
1. Why sensor should be started using task and that task should be alive(using semaphoreP_pend or while(1)), to happen mmwDemo_DpcExecute?
2. In Method 2, why it is going untill rangeproc_process and further sequence is not happening?
3. In method 3 that too in release mode, why that assertion is seen?
4. In method 4, what is happening in first frame.
Please help us here, Thanks in advance
Regards
M Girish Veerendra