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.

CCS/IWR6843ISK: Debugging by CCS

Part Number: IWR6843ISK

Tool/software: Code Composer Studio

Hello,

I want to check variables by CCS.

All variables could be checked in 'objectdetection.c'.
But any variables couldn't be checked in function of 'objectdetection.c'.
For example, I would like to check variables in 'DPU_AoAProcDSP_process' of 'objectdetection.c'.
I think this function is declared in 'ti/datapath/dpc/dpu/aoaproc/src/aoaprocdsp.c'
But break point doesn't work in this code.
Furthermore, step-in function doesn't work at 'DPU_AoAProcDSP_process' in 'objectdetection.c'.
Could you let me know how to check variables in 'DPU_AoAProcDSP_process' by CCS?


Set-up are shown below.
[radar]
IWR6843ISK
[SDK]
mmwave_sdk_03_03_00_03
[Demo]
'...\ti\mmwave_industrial_toolbox_4_2_1\labs\out_of_box_demo\68xx_mmwave_sdk_dsp'
[CCS]
8.3.1.00004

Regards,
Kazuki

  • Hello

    This could be because of the level of optimization set during compile.

    Have you tried to change that?

    Thank you,

    Vaibhav

  • Hello,

    Thank you for your reply.

    I changed Properties for 'mmwave_sdk_68xx_dsp_mss' and 'mmwave_sdk_68xx_dsp_dss' as shown below and done rebuild each projects.

     Optimization level : off

    Speed vs. size trade-offs : 0

    But step-in function (from 'objectdetection.c' to  'DPU_AoAProcDSP_process') doesn't work.

    Could let me know parameters which I should change?

    Regards,

    Kazuki

  • Hi Kazuki-san,

    All the DPUs (inlcuding DPU_AoAProcDSP_process) are compiled as libraries using makefiles. The CCS projects provided in Industrial Toolbox link the pre-compiled libs from the SDK. So changes made to the compile options (e.g. optimization settings) in the CCS projects "mmwave_sdk_68xx_dsp_dss" and "mmwave_sdk_68xx_dsp_mss" do not have an effect on the DPUs since those are pre-compiled libs (built with O3 optimization by default).

    So in order to debug the DPU code (or any pre-compiled library), you need to:

    1. Re-compile the corresponding DPU libs using the SDK makefile method. This is described in the SDK user guide under section 4.5 (developing using SDK).
      1. Before re-building the DPU code for debug, you need to remove the -O3 flag from the SDK common makefile to enable statement level debugging.
      2. To do so, change the R4F_CFLAGS and C64X_CFLAGS defines as shown below in C:\ti\mmwave_sdk_03_04_00_03\packages\ti\common\mmwave_sdk.mak and re-build the DPU lib. Note that this may increase the memory requirements and/or break real-time behavior because of un-optimized compilation.
    2. Next, re-build the mmwave demo using the CCS project as you did already. This is needed to re-link the new DPU lib.

    Regards

    -Nitin

  • Hi Nitin,

    Thank you for your answers.

    I modified 'C:\ti\mmwave_sdk_03_04_00_03\packages\ti\common\mmwave_sdk.mak' as you said.

    And I executed 'mingw32-make clean' by poweShell at 'C:\ti\mmwave_sdk_03_03_00_03\packages\ti\datapath\dpc\dpu\aoaproc'.

    But makefile doesn't work with error massage "Error: aoaproc is not supported on !!!".

    Could you let me know how to re-build pre-compiled libs?

  • Hi Kazuki-san,

    You need to use the TI tool chain as specified in the SDK makefile and use it in Windows Command prompt as specified in the SDK user guide.

    After making the changes to C:\ti\mmwave_sdk_03_04_00_03\packages\ti\common\mmwave_sdk.mak to disable optimization, to compile the AoA DPU (or any other SDK component) using its makefile, please follow the following steps (for more details, please refer to the SDK user guide as indicated above):

    1. Open a Standard Windows Command Prompt (not powershell)
    2. CD to C:\ti\mmwave_sdk_03_04_00_03\packages\scripts\windows and execute setenv.bat (make sure that it doesn't throw any error, otherwise you need to check your SDK installation)
    3. In the same command window, CD to C:\ti\mmwave_sdk_03_04_00_03\packages\ti\datapath\dpc\dpu\aoaproc
    4. execute gmake clean allThis will re-build the AoA DPU libs.
    5. After this, re-build the OOB demo project.

    Thanks

    -Nitin

  • Hi Nitin-san,

    Thank you!

    Best Regards,

    Kazuki