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/IWR1642: How to debug SDK Demo

Part Number: IWR1642

Tool/software: Code Composer Studio

Hi Technical Support

Is there a way to execute step by step?

I added processing to the mss part and I wrote FW to device.

But, the output from the serial stops halfway during operating.

I think the process is not finished in the frame.
So, I want to measure processing time and debug each process.

Please, teach me hot to debug SDK demo.

Or, is there a way to debug the SDK using CCS?

Best Regards

  • Hi User,

    I've asked an expert to look into this and we should have an answer for you in the next few days.

     

    Cheers,

    Akash

  • Dear Akash

    Thank you for reply

    With the information in the SDK release notes, I created a project file.
    Ithink the build was successful and CCS create xwr16xx_mmw_demo.bin.

    But, I don't know the memory settings below,
    Is it OK to use IWR1642 here?
    ================================================
            --define = MMWAVE_L3RAM_NUM_BANK = 6
             --define = MMWAVE_SHMEM_TCMA_NUM_BANK = 0
             --define = MMWAVE_SHMEM_TCMB_NUM_BANK = 0
             --define = MMWAVE_SHMEM_BANK_SIZE = 0x20000
             --define = MMWAVE_L3RAM_SIZE = 0xC0000
    ================================================
    The following warning was output when building dss.
    And, "Failed to remove CRC temp file" when building mss.
    Is it OK?

    Incidentally, the created project file is as follows,
    Is there anything wrong with it?

    =======================================================

    file : mmw_mss_16xx.projectspec

    <?xml version="1.0" encoding="UTF-8"?>
    
    <projectSpec>
        <project
            name="mmw_mss_16xx"
            deviceFamily="ARM"
            isTargetManual="false"
            device="Cortex R.IWR1642"
            endianness="little"
            cgtVersion="16.9.6.LTS"
            connection="common/targetdb/connections/TIXDS110_Connection.xml"
            toolChain="TI"
            linkerCommandFile="mmw_mss_linker.cmd"
            preannouncebuildStep="Deleting old BIN format image"
            preBuildStep="rm -f ${PROJECT_ROOT}/xwr16xx_mmw_mss.bin;"
            postannouncebuildStep="Preparing BIN format image"
            postBuildStep="${COM_TI_MMWAVE_SDK_INSTALL_DIR}/packages/scripts/ImageCreator/out2rprc/out2rprc.exe xwr16xx_mmw_mss.xer4f xwr16xx_mmw_demo_mss.tmp;
            ${COM_TI_MMWAVE_SDK_INSTALL_DIR}/packages/scripts/ImageCreator/multicore_image_generator/MulticoreImageGen.exe LE 37 0x00000006 xwr16xx_mmw_demo.bin 0x35510000 xwr16xx_mmw_demo_mss.tmp 0xb5510000 ${COM_TI_MMWAVE_SDK_INSTALL_DIR}/firmware/radarss/xwr16xx_radarss_rprc.bin 0xd5510000 ${WORKSPACE_LOC}/mmw_dss_16xx/Debug/xwr16xx_mmw_demo_dss.bin;
            ${COM_TI_MMWAVE_SDK_INSTALL_DIR}/packages/scripts/ImageCreator/crc_multicore_image/crc_multicore_image.exe xwr16xx_mmw_demo.bin xwr16xx_mmw_demo.tmp;
            ${COM_TI_MMWAVE_SDK_INSTALL_DIR}/packages/scripts/ImageCreator/append_bin_crc/gen_bincrc32.exe xwr16xx_mmw_demo.bin;"
            description="mmWave SDK demo 16xx - mss"
            launchWizard="false"
            configurations="Debug, Release"
            compilerBuildOptions="
            -mv7R4 --code_state=16 --float_support=VFPv3D16 -me -O3 -eo=.oer4f
            -I${PROJECT_ROOT}
            -I${CG_TOOL_ROOT}/include
            -I${COM_TI_MMWAVE_SDK_INSTALL_DIR}/packages
            -I${COM_TI_MMWAVE_SDK_INSTALL_DIR}/packages/ti/demo/xwr16xx/mmw
            -I${COM_TI_MMWAVE_SDK_INSTALL_DIR}/packages/ti/demo/utils
            -I${COM_TI_MMWAVE_SDK_INCLUDE_PATH}
            -D${COM_TI_MMWAVE_SDK_SYMBOLS}
            -D${BIOS_SYMBOLS}
            -DSOC_XWR16XX
            -DSUBSYS_MSS
            -DDOWNLOAD_FROM_CCS
            -DMMWAVE_L3RAM_NUM_BANK=6
            -DMMWAVE_SHMEM_TCMA_NUM_BANK=0
            -DMMWAVE_SHMEM_TCMB_NUM_BANK=0
            -DMMWAVE_SHMEM_BANK_SIZE=0x20000
            -DDebugP_ASSERT_ENABLED
            -D_LITTLE_ENDIAN
            -DAPP_RESOURCE_FILE=&apos;&lt;&apos;ti/demo/xwr16xx/mmw/mmw_res.h&apos;&gt;&apos;
            -g --diag_warning=225 --diag_wrap=off --display_error_number --gen_func_subsections=on --enum_type=int --abi=eabi"
            linkerBuildOptions="
            -mxwr16xx_mmw_mss.map -oxwr16xx_mmw_mss.xer4f
            -I${COM_TI_MMWAVE_SDK_LIBRARY_PATH}
            -I${CG_TOOL_ROOT}/lib
            -I${COM_TI_MMWAVE_SDK_INSTALL_DIR}/packages/ti/drivers/pinmux/lib
            -I${COM_TI_MMWAVE_SDK_INSTALL_DIR}/packages/ti/drivers/uart/lib
            -I${COM_TI_MMWAVE_SDK_INSTALL_DIR}/packages/ti/drivers/crc/lib
            -I${COM_TI_MMWAVE_SDK_INSTALL_DIR}/packages/ti/drivers/mailbox/lib
            -I${COM_TI_MMWAVE_SDK_INSTALL_DIR}/packages/ti/drivers/adcbuf/lib
            -I${COM_TI_MMWAVE_SDK_INSTALL_DIR}/packages/ti/drivers/dma/lib
            -I${COM_TI_MMWAVE_SDK_INSTALL_DIR}/packages/ti/drivers/gpio/lib
            -I${COM_TI_MMWAVE_SDK_INSTALL_DIR}/packages/ti/drivers/edma/lib
            -I${COM_TI_MMWAVE_SDK_INSTALL_DIR}/packages/ti/control/mmwavelink/lib
            -I${COM_TI_MMWAVE_SDK_INSTALL_DIR}/packages/ti/utils/cli/lib
            -I${COM_TI_MMWAVE_SDK_INSTALL_DIR}/packages/ti/control/mmwave/lib
            -I${COM_TI_MMWAVE_SDK_INSTALL_DIR}/packages/ti/control/dpm/lib
            -I${COM_TI_MMWAVE_SDK_INSTALL_DIR}/packages/ti/utils/mathutils/lib
            -I${COM_TI_MMWAVE_SDK_INSTALL_DIR}/packages/ti/drivers/osal/lib
            -I${COM_TI_MMWAVE_SDK_INSTALL_DIR}/packages/ti/drivers/cbuff/lib
            -I${COM_TI_MMWAVE_SDK_INSTALL_DIR}/packages/ti/utils/hsiheader/lib
            -I${COM_TI_MMWAVE_SDK_INSTALL_DIR}/packages/ti/drivers/soc/lib
            -I${COM_TI_MMWAVE_SDK_INSTALL_DIR}/packages/ti/drivers/esm/lib
            -llibpinmux_xwr16xx.aer4f
            -llibcrc_xwr16xx.aer4f
            -llibuart_xwr16xx.aer4f
            -llibmailbox_xwr16xx.aer4f
            -llibmmwavelink_xwr16xx.aer4f
            -llibmmwave_xwr16xx.aer4f
            -llibadcbuf_xwr16xx.aer4f
            -llibdma_xwr16xx.aer4f
            -llibgpio_xwr16xx.aer4f
            -llibedma_xwr16xx.aer4f
            -llibcli_xwr16xx.aer4f
            -llibdpm_xwr16xx.aer4f
            -llibmathutils.aer4f
            -llibosal_xwr16xx.aer4f
            -llibcbuff_xwr16xx.aer4f
            -llibhsiheader_xwr16xx.aer4f
            -llibsoc_xwr16xx.aer4f
            -llibesm_xwr16xx.aer4f
            --define=MMWAVE_L3RAM_NUM_BANK=6
            --define=MMWAVE_SHMEM_TCMA_NUM_BANK=0
            --define=MMWAVE_SHMEM_TCMB_NUM_BANK=0
            --define=MMWAVE_SHMEM_BANK_SIZE=0x20000
            --define=MMWAVE_L3RAM_SIZE=0xC0000 --reread_libs --diag_warning=225 --diag_wrap=off --display_error_number --warn_sections --xml_link_info=xwr16xx_mmw_mss_linkInfo.xml --rom_model --unused_section_elimination=on --disable_auto_rts -lrtsv7R4_T_le_v3D16_eabi.lib">
    
            <!-- Project properties -->
            <property name="type" value="rtsc"/>
            <property name="products" value="com.ti.rtsc.SYSBIOS:6.73.01.01;com.ti.MMWAVE_SDK:3.2.1.2;"/>
            <property name="xdcToolsVersion" value="3.50.08.24_core"/>
            <property name="target" value="ti.targets.arm.elf.R4Ft"/>
            <property name="platform" value="ti.platforms.cortexR:IWR16XX:false:200"/>
            <property name="endianness" value="little"/>
            <property name="output_format" value="elf"/>
            <property name="buildProfile" value="release"/>
            <property name="configuroOptions" value="--compileOptions &quot;--enum_type=int &quot; "/>
    
            <!-- Project files -->
            <file path="COM_TI_MMWAVE_SDK_INSTALL_DIR/packages/ti/demo/xwr16xx/mmw/mss/mss_main.c" openOnCreation="false" excludeFromBuild="false" action="copy"/>
            <file path="COM_TI_MMWAVE_SDK_INSTALL_DIR/packages/ti/demo/xwr16xx/mmw/mss/mmw_mss.cfg" openOnCreation="false" excludeFromBuild="false" action="copy"/>
            <file path="COM_TI_MMWAVE_SDK_INSTALL_DIR/packages/ti/demo/xwr16xx/mmw/mss/mmw_cli.c" openOnCreation="false" excludeFromBuild="false" action="copy"/>
            <file path="COM_TI_MMWAVE_SDK_INSTALL_DIR/packages/ti/demo/xwr16xx/mmw/mss/mmw_lvds_stream.c" openOnCreation="false" excludeFromBuild="false" action="copy"/>
            <file path="COM_TI_MMWAVE_SDK_INSTALL_DIR/packages/ti/demo/xwr16xx/mmw/mss/mmw_mss_linker.cmd" openOnCreation="false" excludeFromBuild="false" action="copy"/>
            <file path="COM_TI_MMWAVE_SDK_INSTALL_DIR/packages/ti/demo/utils/mmwdemo_rfparser.c" openOnCreation="false" excludeFromBuild="false" action="copy"/>
            <file path="COM_TI_MMWAVE_SDK_INSTALL_DIR/packages/ti/demo/utils/mmwdemo_adcconfig.c" openOnCreation="false" excludeFromBuild="false" action="copy"/>
            <file path="COM_TI_MMWAVE_SDK_INSTALL_DIR/packages/ti/demo/utils/mmwdemo_monitor.c" openOnCreation="false" excludeFromBuild="false" action="copy"/>
            <file path="COM_TI_MMWAVE_SDK_INSTALL_DIR/packages/ti/platform/xwr16xx/r4f_linker.cmd" openOnCreation="false" excludeFromBuild="false"/>
    
        </project>
    </projectSpec>
    ================================================

    file : mmw_dss_16xx.projectspec

    <?xml version="1.0" encoding="UTF-8"?>
    
    <projectSpec>
        <project
            name="mmw_dss_16xx"
            deviceFamily="C6000"
            isTargetManual="false"
            device="IWR1642"
            endianness="little"
            cgtVersion="8.3.3"
            connection="common/targetdb/connections/TIXDS110_Connection.xml"
            toolChain="TI"
            linkerCommandFile="mmw_dss_linker.cmd"
            preannouncebuildStep="Deleting old BIN format image"
            preBuildStep="rm -f ${PROJECT_ROOT}/xwr16xx_mmw_dss.bin;"
            postannouncebuildStep="Preparing BIN format image"
            postBuildStep="${COM_TI_MMWAVE_SDK_INSTALL_DIR}/packages/scripts/ImageCreator/out2rprc/out2rprc.exe xwr16xx_mmw_dss.xe674 xwr16xx_mmw_demo_dss.bin;"
            description="mmWave SDK demo 16xx - dss"
            launchWizard="false"
            configurations="Debug, Release"
            compilerBuildOptions="
            -mv6740 -ms0 -mo -O3
            -I${PROJECT_ROOT}
            -I${CG_TOOL_ROOT}/include
            -I${COM_TI_MMWAVE_SDK_INSTALL_DIR}/packages
            -I${COM_TI_MMWAVE_SDK_INSTALL_DIR}/packages/ti/demo/xwr16xx/mmw
            -I${COM_TI_MMWAVE_SDK_INSTALL_DIR}/packages/ti/demo/utils
            -I${TI_PRODUCTS_DIR}/mathlib_c674x_3_1_2_1/packages
            -I${TI_PRODUCTS_DIR}/dsplib_c64Px_3_4_0_0/packages
            -I${TI_PRODUCTS_DIR}/dsplib_c64Px_3_4_0_0/packages/ti/dsplib/src/DSP_fft16x16/c64P
            -I${TI_PRODUCTS_DIR}/dsplib_c64Px_3_4_0_0/packages/ti/dsplib/src/DSP_fft32x32/c64P
            -DSOC_XWR16XX
            -DSUBSYS_DSS
            -DMMWAVE_L3RAM_NUM_BANK=6
            -DMMWAVE_SHMEM_TCMA_NUM_BANK=0
            -DMMWAVE_SHMEM_TCMB_NUM_BANK=0
            -DMMWAVE_SHMEM_BANK_SIZE=0x20000
            -DDOWNLOAD_FROM_CCS
            -DDebugP_ASSERT_ENABLED
            -D_LITTLE_ENDIAN
            -DAPP_RESOURCE_FILE=&apos;&lt;&apos;ti/demo/xwr16xx/mmw/mmw_res.h&apos;&gt;&apos;
            --gcc -g --diag_warning=225 --diag_wrap=off --display_error_number --abi=eabi --obj_extension .oe674"
            linkerBuildOptions="
            -mxwr16xx_mmw_dss.map -oxwr16xx_mmw_dss.xe674
            -I${PROJECT_ROOT}
            -I${CG_TOOL_ROOT}/lib
    
            -I${COM_TI_MMWAVE_SDK_INSTALL_DIR}/packages/ti/drivers/crc/lib
            -I${COM_TI_MMWAVE_SDK_INSTALL_DIR}/packages/ti/drivers/mailbox/lib
            -I${COM_TI_MMWAVE_SDK_INSTALL_DIR}/packages/ti/drivers/edma/lib
            -I${COM_TI_MMWAVE_SDK_INSTALL_DIR}/packages/ti/alg/mmwavelib/lib
            -I${COM_TI_MMWAVE_SDK_INSTALL_DIR}/packages/ti/control/dpm/lib
            -I${COM_TI_MMWAVE_SDK_INSTALL_DIR}/packages/ti/utils/mathutils/lib
            -I${TI_PRODUCTS_DIR}/mathlib_c674x_3_1_2_1/packages/ti/mathlib/lib
            -I${TI_PRODUCTS_DIR}/dsplib_c64Px_3_4_0_0/packages/ti/dsplib/lib
            -I${COM_TI_MMWAVE_SDK_INSTALL_DIR}/packages/ti/datapath/dpu/rangeproc/lib
            -I${COM_TI_MMWAVE_SDK_INSTALL_DIR}/packages/ti/datapath/dpc/dpu/dopplerproc/lib
            -I${COM_TI_MMWAVE_SDK_INSTALL_DIR}/packages/ti/datapath/dpc/dpu/cfarcaproc/lib
            -I${COM_TI_MMWAVE_SDK_INSTALL_DIR}/packages/ti/datapath/dpc/dpu/aoaproc/lib
            -I${COM_TI_MMWAVE_SDK_INSTALL_DIR}/packages/ti/datapath/dpc/dpu/staticclutterproc/lib
            -I${COM_TI_MMWAVE_SDK_INSTALL_DIR}/packages/ti/datapath/dpedma/lib
            -I${COM_TI_MMWAVE_SDK_INSTALL_DIR}/packages/ti/drivers/soc/lib
            -I${COM_TI_MMWAVE_SDK_INSTALL_DIR}/packages/ti/drivers/osal/lib
            -llibcrc_xwr16xx.ae674
            -llibmailbox_xwr16xx.ae674
            -ldsplib.ae64P
            -llibmmwavealg_xwr16xx.ae674
            -lmathlib.ae674
            -llibedma_xwr16xx.ae674
            -llibdpm_xwr16xx.ae674
            -llibmathutils.ae674
            -llibosal_xwr16xx.ae674
            -llibrangeproc_dsp_xwr16xx.ae674
            -llibdopplerproc_dsp_xwr16xx.ae674
            -llibcfarcaproc_dsp_xwr16xx.ae674
            -llibaoaproc_dsp_xwr16xx.ae674
            -llibstaticclutterproc_xwr16xx.ae674
            -llibdpedma_base_xwr16xx.ae674
            -llibsoc_xwr16xx.ae674
            --define=MMWAVE_L3RAM_NUM_BANK=6
            --define=MMWAVE_SHMEM_TCMA_NUM_BANK=0
            --define=MMWAVE_SHMEM_TCMB_NUM_BANK=0
            --define=MMWAVE_SHMEM_BANK_SIZE=0x20000
            --define=MMWAVE_L3RAM_SIZE=0xC0000 --reread_libs --diag_warning=225 --diag_wrap=off --display_error_number --warn_sections
            --xml_link_info=xwr16xx_mmw_dss_linkInfo.xml --ram_model --unused_section_elimination=on --disable_auto_rts -lrts6740_elf.lib">
    
            <!-- Project properties -->
            <property name="type" value="rtsc"/>
            <property name="products" value="com.ti.rtsc.SYSBIOS:6.73.01.01;com.ti.MMWAVE_SDK:3.2.1.2;"/>
            <property name="xdcToolsVersion" value="3.50.08.24_core"/>
            <property name="target" value="ti.targets.elf.C674"/>
            <property name="platform" value="ti.platforms.c6x:IWR16XX:false:600"/>
            <property name="endianness" value="little"/>
            <property name="output_format" value="elf"/>
            <property name="buildProfile" value="release"/>
    
    
            <!-- Project files -->
            <file path="COM_TI_MMWAVE_SDK_INSTALL_DIR/packages/ti/demo/xwr16xx/mmw/dss/dss_main.c" openOnCreation="false" excludeFromBuild="false"/>
            <file path="COM_TI_MMWAVE_SDK_INSTALL_DIR/packages/ti/demo/xwr16xx/mmw/dss/data_path.c" openOnCreation="false" excludeFromBuild="false"/>
            <file path="COM_TI_MMWAVE_SDK_INSTALL_DIR/packages/ti/demo/xwr16xx/mmw/dss/mmw_dss.cfg" openOnCreation="false" excludeFromBuild="false"/>
            <file path="COM_TI_MMWAVE_SDK_INSTALL_DIR/packages/ti/datapath/dpc/objectdetection/objdetdsp/src/objectdetection.c" openOnCreation="false" excludeFromBuild="false"/>
            <file path="COM_TI_MMWAVE_SDK_INSTALL_DIR/packages/ti/platform/xwr16xx/c674x_linker.cmd" openOnCreation="false" excludeFromBuild="false"/>
    
        </project>
    </projectSpec>
    

  • Please see the section  "6. 15. CCS Debugging of real time application"

    @C:\ti\mmwave_sdk_03_03_00_03\docs\mmwave_sdk_user_guide.pdf

    Thanks

    Yogesh

  • Dear Yogesh

    Sorry, now the problem is the build method, not the debug method.
    Building using CCS with “mmwave_sdk_02_00_00_04” using the following project file works well,
    =======================================================================================
    C:\ti\mmwave_industrial_toolbox_4_1_0\labs\out_of_box_demo\16xx_mmwave_sdk\mmw_mss_16xx.projectspec
    C:\ti\mmwave_industrial_toolbox_4_1_0\labs\out_of_box_demo\16xx_mmwave_sdk\mmw_dss_16xx.projectspec
    =======================================================================================

    But, I can't  create the project file with "mmwave_sdk_03_??_??_??".
    Could you tell me how to create a project file for “mmwave_sdk_03_??_??_??” ?

    As mentioned above, I created to search release notes, but it doesn't seem to work.
    Best Regards.
  • Hi,

    The Industrial tool box supports 16xx with only mmwave_sdk_02_00_00_04.

    To use SDK 3.x, please use the SDK makefile OOB demo: 

    @C:\ti\mmwave_sdk_03_xx\packages\ti\demo\xwr16xx

    Thanks

    Yogesh

  • Dear Yogesh

    Thank you for reply.

    I can build "SDK demo" to use makefile.

    But, I would like to debug realtime.

    I think how to debug realtime is to use CCS? 

    If radar operation has problems, I want to know which part of the source code.

    Best Regards

  • Hi User,

    You can use CCS to debug binaries generated with makefile. Check section 3.2.2 @C:\ti\mmwave_sdk_03_03_00_03\docs\mmwave_sdk_user_guide.pdf

    Thanks

    Yogesh