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.

IWR6843ISK: building issue with mss file

Part Number: IWR6843ISK

Hello Ti,

I build the old version of the mmwave radar sdk with the industrial box 4.10.1 https://dev.ti.com/tirex/explore/node?a=VLyFKFf__4.10.1&node=A__AHb4FLNw4CNLlusvCMCy4A__com.ti.mmwave_industrial_toolbox__VLyFKFf__4.10.1&r=VLyFKFf__4.12.0 

As the link, I use the makefile to build the radar bin file in the HVAC lab folder.

There are some error as follow

error #10234-D: unresolved symbols remain
error #10010: errors encountered during linking; "xwr68xx_mmw_demo_mss.xer4f" not built

When I build the out-of-box, I built xwr68xx_mmw_demo_mss.xer4f successfully.

Why the file xwr68xx_mmw_demo_mss.xer4f didn't built in HVAC lab?

BR

James

  • Hi James,

    Can you give us more details about the error message? There may be a problem with the way you're compiling the linking the images. Screenshots would be helpful too.

    Best,

    Nate

  • Hi Nate,

    The full log file is here 

    SHMEM_ALLOC is set to 0x00000006                          
    Configuring RTSC packages...
    /home/rootsembeddedlinux/ti/radar/xdctools_3_50_08_24_core/xs --xdcpath="/home/rootsembeddedlinux/ti/radar/bios_6_73_01_01/packages;/home/rootsembeddedlinux/ti/radar/mmwave_sdk_03_05_00_04/packages" xdc.tools.configuro -t ti.targets.arm.elf.R4Ft -p ti.platforms.cortexR:IWR68XX:false:200 -r release -c /home/rootsembeddedlinux/ti/radar/ti-cgt-arm_16.9.6.LTS -DMMWAVE_SDK_DEVICE_TYPE=xwr68xx --compileOptions "--enum_type=int"  -o mss/mmw_configPkg_xwr68xx mss/mss_mmw.cfg
    making package.mak (because of package.bld) ...
    generating interfaces for package mmw_configPkg_xwr68xx (because package/package.xdc.inc is older than package.xdc) ...
    configuring mss_mmw.xer4ft from package/cfg/mss_mmw_per4ft.cfg ...
    generating custom ti.sysbios library makefile ... 
    Starting build of library sources ...
    making /home/rootsembeddedlinux/ti/radar/mmwave_industrial_toolbox_4_10_0/labs/People_Counting/Sense_and_Direct_HVAC_Control/src/mss/mmw_configPkg_xwr68xx/package/cfg/mss_mmw_per4ft.src/sysbios/sysbios.aer4ft ...
    gmake[1]: Entering directory `/home/rootsembeddedlinux/ti/radar/mmwave_industrial_toolbox_4_10_0/labs/People_Counting/Sense_and_Direct_HVAC_Control/src/mss/mmw_configPkg_xwr68xx/package/cfg/mss_mmw_per4ft.src/sysbios'
    cler4ft /home/rootsembeddedlinux/ti/radar/bios_6_73_01_01/packages/ti/sysbios/BIOS.c ...
    asmer4ft /home/rootsembeddedlinux/ti/radar/bios_6_73_01_01/packages/ti/sysbios/family/arm/IntrinsicsSupport_asm.asm ...
    asmer4ft /home/rootsembeddedlinux/ti/radar/bios_6_73_01_01/packages/ti/sysbios/family/arm/TaskSupport_asm.asm ...
    asmer4ft /home/rootsembeddedlinux/ti/radar/bios_6_73_01_01/packages/ti/sysbios/family/arm/v7r/vim/Hwi_asm.sv7R ...
    asmer4ft /home/rootsembeddedlinux/ti/radar/bios_6_73_01_01/packages/ti/sysbios/family/arm/v7r/vim/Hwi_asm_switch.sv7R ...
    asmer4ft /home/rootsembeddedlinux/ti/radar/bios_6_73_01_01/packages/ti/sysbios/family/arm/exc/Exception_asm.asm ...
    asmer4ft /home/rootsembeddedlinux/ti/radar/bios_6_73_01_01/packages/ti/sysbios/family/arm/v7r/tms570/Core_asm.sv7R ...
    arer4ft BIOS.obj arm_IntrinsicsSupport_asm.obj arm_TaskSupport_asm.obj vim_Hwi_asm.obj vim_Hwi_asm_switch.obj exc_Exception_asm.obj tms570_Core_asm.obj ...
    gmake[1]: Leaving directory `/home/rootsembeddedlinux/ti/radar/mmwave_industrial_toolbox_4_10_0/labs/People_Counting/Sense_and_Direct_HVAC_Control/src/mss/mmw_configPkg_xwr68xx/package/cfg/mss_mmw_per4ft.src/sysbios'
    Build of libraries done.
    cler4ft package/cfg/mss_mmw_per4ft.c ...
    Finished configuring packages
     
    [R4 Device/Type: iwr68xx/xwr68xx] Building file: mss/mss_main.c
    [R4 Device/Type: iwr68xx/xwr68xx] Building file: mss/task_mbox.c
    [R4 Device/Type: iwr68xx/xwr68xx] Building file: mss/task_app.c
    [R4 Device/Type: iwr68xx/xwr68xx] Building file: mss/gtrackAlloc.c
    [R4 Device/Type: iwr68xx/xwr68xx] Building file: mss/gtrackLog.c
    [R4 Device/Type: iwr68xx/xwr68xx] Building file: /home/rootsembeddedlinux/ti/radar/mmwave_industrial_toolbox_4_10_0/labs/Level_Sensing/src/16xx/radarDemo/modules/utilities/radarOsal_malloc.c
    [R4 Device/Type: iwr68xx/xwr68xx] Building file: mss/RADARDEMO_distanceUtil_priv.c
    [R4 Device/Type: iwr68xx/xwr68xx] Building file: mss/RADARDEMO_featExtrUtil_priv.c
    [R4 Device/Type: iwr68xx/xwr68xx] Building file: mss/RADARDEMO_svmKernelUtil_priv.c
    [R4 Device/Type: iwr68xx/xwr68xx] Building file: mss/RADARDEMO_classifierkNN.c
    [R4 Device/Type: iwr68xx/xwr68xx] Building file: mss/RADARDEMO_classifierSVM.c
    [R4 Device/Type: iwr68xx/xwr68xx] Building file: mss/RADARDEMO_classifierkNNCB.c
    [R4 Device/Type: iwr68xx/xwr68xx] Building file: mss/RADARDEMO_featExtract.c
    [R4 Device/Type: iwr68xx/xwr68xx] Building file: mss/classifierkNN_process.c
    [R4 Device/Type: iwr68xx/xwr68xx] Building file: mss/Util_ClassifierkNN_inputParser.c
    [R4 Device/Type: iwr68xx/xwr68xx] Building file: mss/Util_ClassifierkNN_targetManager.c
    [R4 Device/Type: iwr68xx/xwr68xx] Building file: mss/cli.c
    /home/rootsembeddedlinux/ti/radar/ti-cgt-arm_16.9.6.LTS/bin/armcl -mv7R4 --code_state=16 --float_support=VFPv3D16 --abi=eabi -me -g --display_error_number --diag_warning=225 --diag_wrap=off -z --reread_libs --warn_sections --rom_model --unused_section_elimination -i/home/rootsembeddedlinux/ti/radar/ti-cgt-arm_16.9.6.LTS/lib --reread_libs --emit_warnings_as_errors --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  -i/home/rootsembeddedlinux/ti/radar/mmwave_sdk_03_05_00_04/packages/ti/drivers/osal/lib -i/home/rootsembeddedlinux/ti/radar/mmwave_sdk_03_05_00_04/packages/ti/drivers/esm/lib -i/home/rootsembeddedlinux/ti/radar/mmwave_sdk_03_05_00_04/packages/ti/drivers/soc/lib -i/home/rootsembeddedlinux/ti/radar/mmwave_sdk_03_05_00_04/packages/ti/drivers/pinmux/lib -i/home/rootsembeddedlinux/ti/radar/mmwave_sdk_03_05_00_04/packages/ti/drivers/dma/lib -i/home/rootsembeddedlinux/ti/radar/mmwave_sdk_03_05_00_04/packages/ti/drivers/uart/lib -i/home/rootsembeddedlinux/ti/radar/mmwave_sdk_03_05_00_04/packages/ti/drivers/crc/lib -i/home/rootsembeddedlinux/ti/radar/mmwave_sdk_03_05_00_04/packages/ti/drivers/mailbox/lib -i/home/rootsembeddedlinux/ti/radar/mmwave_sdk_03_05_00_04/packages/ti/control/mmwavelink/lib -i/home/rootsembeddedlinux/ti/radar/mmwave_sdk_03_05_00_04/packages/ti/control/mmwave/lib -i/home/rootsembeddedlinux/ti/radar/mmwave_sdk_03_05_00_04/packages/ti/utils/cli/lib -i/home/rootsembeddedlinux/ti/radar/mmwave_sdk_03_05_00_04/packages/ti/alg/gtrack/lib -llibosal_xwr68xx.aer4f -llibesm_xwr68xx.aer4f -llibsoc_xwr68xx.aer4f -llibpinmux_xwr68xx.aer4f -llibcrc_xwr68xx.aer4f -llibdma_xwr68xx.aer4f -llibuart_xwr68xx.aer4f -llibmailbox_xwr68xx.aer4f -llibmmwavelink_xwr68xx.aer4f -llibmmwave_xwr68xx.aer4f -llibcli_xwr68xx.aer4f -llibgtrack2D.aer4f 					\
    -lmss/mmw_configPkg_xwr68xx/linker.cmd --map_file=xwr68xx_mmw_demo_mss.map obj_xwr68xx/mss_main.oer4f obj_xwr68xx/task_mbox.oer4f obj_xwr68xx/task_app.oer4f obj_xwr68xx/gtrackAlloc.oer4f obj_xwr68xx/gtrackLog.oer4f obj_xwr68xx/radarOsal_malloc.oer4f obj_xwr68xx/RADARDEMO_distanceUtil_priv.oer4f obj_xwr68xx/RADARDEMO_featExtrUtil_priv.oer4f obj_xwr68xx/RADARDEMO_svmKernelUtil_priv.oer4f obj_xwr68xx/RADARDEMO_classifierkNN.oer4f obj_xwr68xx/RADARDEMO_classifierSVM.oer4f obj_xwr68xx/RADARDEMO_classifierkNNCB.oer4f obj_xwr68xx/RADARDEMO_featExtract.oer4f obj_xwr68xx/classifierkNN_process.oer4f obj_xwr68xx/Util_ClassifierkNN_inputParser.oer4f obj_xwr68xx/Util_ClassifierkNN_targetManager.oer4f obj_xwr68xx/cli.oer4f 	\
    /home/rootsembeddedlinux/ti/radar/mmwave_sdk_03_05_00_04/packages/ti/platform/xwr68xx/r4f_linker.cmd mss/mss_mmw_linker.cmd -l"rtsv7R4_T_le_v3D16_eabi.lib" -o xwr68xx_mmw_demo_mss.xer4f
    <Linking>
    
     undefined                  first referenced          
      symbol                        in file               
     ---------                  ----------------          
     MmwDemo_FilterCfg          obj_xwr68xx/cli.oer4f     
     gtrack_setAllocationParams obj_xwr68xx/task_app.oer4f
     gtrack_setGatingParams     obj_xwr68xx/task_app.oer4f
     gtrack_setSceneryParams    obj_xwr68xx/task_app.oer4f
     gtrack_setStateParams      obj_xwr68xx/task_app.oer4f
     radarOsal_printHeapStats   obj_xwr68xx/mss_main.oer4f
     updateClassifierOutput     obj_xwr68xx/task_app.oer4f
    
    error #10234-D: unresolved symbols remain
    error #10010: errors encountered during linking; "xwr68xx_mmw_demo_mss.xer4f" not built
    
    >> Compilation failure
    make: *** [mss/mss_mmw.mak:106: mssDemo] Error 1
    
    

    In terminal, use the command "make all" and it will produce the log.

    BR

    James

  • Hi James,

    Thank you for this info. Give me a day investigate this. Usually I build using CCS on a windows computer. Have you tried building it in CCS? Or just the makefile.

    It looks like perhaps the gtrack image found in $TOOLBOX_VER$\labs\common\src\dpu\trackerproc_overhead\packages\ti\alg\gtrack\lib isn't linking. Are the images there? 

    Best,

    Nate

  • Hello Nate,

    It can build on windows PC but I focus on Linux.

    The path you provide are have 4 image:

    libgtrack2D.ae674

    libgtrack2D.aer4f

    libgtrack3D.ae674

    libgtrack3D.aer4f

    If the problem is the linking issue, how to link it?

    BR

    James

  • Hi James,

    I looked through the 4.10.1 library, and I've found that the functions you're missing above that refer to gtrack (gtrack_setAllocationParams, gtrack_setGatingParams, gtrack_setSceneryParams, gtrack_setStateParams) are defined in the gtrack version inside the sense and direct lab (People_Counting\Sense_and_Direct_HVAC_Control\src\mss\gtrack), but not in the prebuilt gtrack images at the location mentioned above ($TOOLBOX_VER$\labs\common\src\dpu\trackerproc_overhead\packages\ti\alg\gtrack\lib). You will need to modify your makefile to include the gtrack version from the other location (People_Counting\Sense_and_Direct_HVAC_Control\src\mss\gtrack\lib).

    Best,

    Nate

  • Hello Nate,

    Before I build the HVAC lab, I have already noticed the problem you said.

    I have copied the related library such as gtrack folder or common library to the mss and dss folder.

    Also, I observe the out-of-box  is similar to the HVAC lab, and it can generate the "xwr68xx_mmw_demo_mss.xer4f".

    Is there any bug in the toolbox?

    BR 

    James

  • Hi James,

    I see anything in subsequent toolbox's release notes about there being a bug in this version. You could consider updating to the 4.11 version and trying, but I think the problem is likely related to the Linker in Linux. If I understand what you're saying, you are saying that the Out-of-box demo does work on 4.10.1? Or not?

    Best,

    Nate

  • Hello Nate,

    If I understand what you're saying, you are saying that the Out-of-box demo does work on 4.10.1? Or not?

    You're right. Whatever the version is, the Out-of-box demo always can be built successfully.

    However, the HVAC may have some problems with the library path. Now I rebuild the 4.10.1 version and do nothing change with the folder, it appears the following error message:

    SHMEM_ALLOC is set to 0x00000006                          
    Configuring RTSC packages...
    /home/rootsembeddedlinux/ti/radar/xdctools_3_50_08_24_core/xs --xdcpath="/home/rootsembeddedlinux/ti/radar/bios_6_73_01_01/packages;/home/rootsembeddedlinux/ti/radar/mmwave_sdk_03_05_00_04/packages" xdc.tools.configuro -t ti.targets.arm.elf.R4Ft -p ti.platforms.cortexR:IWR68XX:false:200 -r release -c /home/rootsembeddedlinux/ti/radar/ti-cgt-arm_16.9.6.LTS -DMMWAVE_SDK_DEVICE_TYPE=xwr68xx --compileOptions "--enum_type=int"  -o mss/mmw_configPkg_xwr68xx mss/mss_mmw.cfg
    making package.mak (because of package.bld) ...
    generating interfaces for package mmw_configPkg_xwr68xx (because package/package.xdc.inc is older than package.xdc) ...
    configuring mss_mmw.xer4ft from package/cfg/mss_mmw_per4ft.cfg ...
    generating custom ti.sysbios library makefile ... 
    Starting build of library sources ...
    making /home/rootsembeddedlinux/ti/radar/mmwave_industrial_toolbox_4_10_0/labs/People_Counting/Sense_and_Direct_HVAC_Control/src/mss/mmw_configPkg_xwr68xx/package/cfg/mss_mmw_per4ft.src/sysbios/sysbios.aer4ft ...
    gmake[1]: Entering directory `/home/rootsembeddedlinux/ti/radar/mmwave_industrial_toolbox_4_10_0/labs/People_Counting/Sense_and_Direct_HVAC_Control/src/mss/mmw_configPkg_xwr68xx/package/cfg/mss_mmw_per4ft.src/sysbios'
    cler4ft /home/rootsembeddedlinux/ti/radar/bios_6_73_01_01/packages/ti/sysbios/BIOS.c ...
    asmer4ft /home/rootsembeddedlinux/ti/radar/bios_6_73_01_01/packages/ti/sysbios/family/arm/IntrinsicsSupport_asm.asm ...
    asmer4ft /home/rootsembeddedlinux/ti/radar/bios_6_73_01_01/packages/ti/sysbios/family/arm/TaskSupport_asm.asm ...
    asmer4ft /home/rootsembeddedlinux/ti/radar/bios_6_73_01_01/packages/ti/sysbios/family/arm/v7r/vim/Hwi_asm.sv7R ...
    asmer4ft /home/rootsembeddedlinux/ti/radar/bios_6_73_01_01/packages/ti/sysbios/family/arm/v7r/vim/Hwi_asm_switch.sv7R ...
    asmer4ft /home/rootsembeddedlinux/ti/radar/bios_6_73_01_01/packages/ti/sysbios/family/arm/exc/Exception_asm.asm ...
    asmer4ft /home/rootsembeddedlinux/ti/radar/bios_6_73_01_01/packages/ti/sysbios/family/arm/v7r/tms570/Core_asm.sv7R ...
    arer4ft BIOS.obj arm_IntrinsicsSupport_asm.obj arm_TaskSupport_asm.obj vim_Hwi_asm.obj vim_Hwi_asm_switch.obj exc_Exception_asm.obj tms570_Core_asm.obj ...
    gmake[1]: Leaving directory `/home/rootsembeddedlinux/ti/radar/mmwave_industrial_toolbox_4_10_0/labs/People_Counting/Sense_and_Direct_HVAC_Control/src/mss/mmw_configPkg_xwr68xx/package/cfg/mss_mmw_per4ft.src/sysbios'
    Build of libraries done.
    cler4ft package/cfg/mss_mmw_per4ft.c ...
    Finished configuring packages
     
    [R4 Device/Type: iwr68xx/xwr68xx] Building file: mss/mss_main.c
    "mss/mss_mmw.h", line 53: fatal error: cannot open source file "common/mmw_config.h"
    1 catastrophic error detected in the compilation of "mss/mss_main.c".
    Compilation terminated.
    
    >> Compilation failure
    make: *** [/home/rootsembeddedlinux/ti/radar/mmwave_sdk_03_05_00_04/packages/ti/common/mmwave_sdk.mak:284: obj_xwr68xx/mss_main.oer4f] Error 1
    

    The message in the bottom of the file shows 

    [R4 Device/Type: iwr68xx/xwr68xx] Building file: mss/mss_main.c
    "mss/mss_mmw.h", line 53: fatal error: cannot open source file "common/mmw_config.h"

    And it's obvious to see the problem of the lack of related library. If I do not copy the folder into the mss, how to modify the makefile?

    BR

    James

  • Hi James,

    I am finding the same error as you. I think it would be smartest and the least amount of work to simply build this lab in CCS. This is a deprecated lab, and the makefiles are really the secondary way to build this. I am able to build the whole thing in CCS without issue. Is that possible for you?

    Best,

    Nate