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/IWR1443BOOST: CAN test application

Expert 1985 points
Part Number: IWR1443BOOST
Other Parts Discussed in Thread: MMWAVE-SDK, AWR1443

Tool/software: Code Composer Studio

Hello,

I need transfer targets data with CAN port in the mmwave-sdk demo. How can I use the CAN test application

“C:\ti\mmwave_sdk_01_00_00_05\packages\ti\drivers\can\test".

Thank you for your help.

regards,

Amin

  • Hello Amin,
    Files in that directory show example implementation of CAN driver usage.

    Please check html files in file:///C:/ti/mmwave_sdk_01_00_00_05/packages/ti/drivers/can/docs/doxygen/html/index.html for description.
    Hope that helps you get started.

    Thank you,
    Vaibhav
  • Hello Vaibhav,

    Thank you for your help. I checked this file, but the project is large and I have a problem with it.

    Thanks and best regards,
    Amin
  • Hello Amin,

    Your query was answered in the below thread
    e2e.ti.com/.../2277459

    You should be just including the static CAN lib and call the CAN driver functions to send the data out of the device.

    Please let us know the problem you are facing.

    Regards,
    Raghu
  • Hello Raghu,

    Thank you for your help. I checked this post, but the project is large and I have a problem with it. Can you show me the changes in the main.c code of sdk and CAN?

    Archive.zip

    Thanks and best regards,
    Amin

  • Amin,

    What does the attachment contain? SDK original file and your modification ?

    -Raghu
  • Raghu,

    Two files are original main file. "mmw-sdk/main.c" and "can/test/common/main.c"

    Amin
  • Hello Amin,

    You can use the attached modifications as a reference for your development.

    Please note this is just a reference of how to include the CAN related changes in the mmWave demo code and send CAN  message out of the device.

    Can_Inc.zip

    Thanks,

    Raghu

  • Hello Raghu,


    Thank you for your help. There is an error:

    ////////////////////////////////////////////////////////////////////////////////////////////

    **** Build of configuration Debug for project mmw ****
    
    "C:\\ti\\ccsv7\\utils\\bin\\gmake" -k -j 8 all -O 
    rm -f C:/Users/AMIN/workspace_vspi/mmw/xwr14xx_mmw_mss.bin
    makefile:193: recipe for target 'pre-build' failed
    process_begin: CreateProcess(NULL, rm -f C:/Users/AMIN/workspace_vspi/mmw/xwr14xx_mmw_mss.bin, ...) failed.
    make (e=2): The system cannot find the file specified.
    
    gmake[1]: [pre-build] Error 2 (ignored)
    ' '
    'Building file: ../mmw.cfg'
    'Invoking: XDCtools'
    "C:/ti/xdctools_3_50_00_10_core/xs" --xdcpath="C:/ti/bios_6_50_01_12/packages;C:/ti/ccsv7/ccs_base;" xdc.tools.configuro -o configPkg -t ti.targets.arm.elf.R4F -p ti.platforms.cortexR:IWR14XX:false:200 -r release -c "C:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.3.LTS" "../mmw.cfg"
    making package.mak (because of package.bld) ...
    generating interfaces for package configPkg (because package/package.xdc.inc is older than package.xdc) ...
    configuring mmw.xer4f from package/cfg/mmw_per4f.cfg ...
    generating custom ti.sysbios library makefile ... 
    Starting build of library sources ...
    making C:/Users/AMIN/workspace_vspi/mmw/src/sysbios/sysbios.aer4f ...
    gmake[1]: Entering directory `C:/Users/AMIN/workspace_vspi/mmw/src/sysbios'
    gmake[1]: Nothing to be done for `all'.
    gmake[1]: Leaving directory `C:/Users/AMIN/workspace_vspi/mmw/src/sysbios'
    Build of libraries done.
    cler4f package/cfg/mmw_per4f.c ...
    'Finished building: ../mmw.cfg'
    ' '
    'Building file: ../config_edma_util.c'
    'Invoking: ARM Compiler'
    "C:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.3.LTS/bin/armcl" -mv7R4 --code_state=32 --float_support=VFPv3D16 -me -O3 --include_path="C:/Users/AMIN/workspace_vspi/mmw" --include_path="C:/ti/mmwave_sdk_01_00_00_05/packages" --include_path="C:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.3.LTS/include" --define=SOC_XWR14XX --define=SUBSYS_MSS --define=DOWNLOAD_FROM_CCS --define=DebugP_ASSERT_ENABLED -g --diag_warning=225 --diag_wrap=off --display_error_number --gen_func_subsections=on --enum_type=packed --abi=eabi --preproc_with_compile --preproc_dependency="config_edma_util.d" --cmd_file="configPkg/compiler.opt" "../config_edma_util.c"
    'Finished building: ../config_edma_util.c'
    ' '
    'Building file: ../mmw_cli.c'
    'Invoking: ARM Compiler'
    "C:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.3.LTS/bin/armcl" -mv7R4 --code_state=32 --float_support=VFPv3D16 -me -O3 --include_path="C:/Users/AMIN/workspace_vspi/mmw" --include_path="C:/ti/mmwave_sdk_01_00_00_05/packages" --include_path="C:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.3.LTS/include" --define=SOC_XWR14XX --define=SUBSYS_MSS --define=DOWNLOAD_FROM_CCS --define=DebugP_ASSERT_ENABLED -g --diag_warning=225 --diag_wrap=off --display_error_number --gen_func_subsections=on --enum_type=packed --abi=eabi --preproc_with_compile --preproc_dependency="mmw_cli.d" --cmd_file="configPkg/compiler.opt" "../mmw_cli.c"
    'Finished building: ../mmw_cli.c'
    ' '
    'Building file: ../sensor_mgmt.c'
    'Invoking: ARM Compiler'
    "C:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.3.LTS/bin/armcl" -mv7R4 --code_state=32 --float_support=VFPv3D16 -me -O3 --include_path="C:/Users/AMIN/workspace_vspi/mmw" --include_path="C:/ti/mmwave_sdk_01_00_00_05/packages" --include_path="C:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.3.LTS/include" --define=SOC_XWR14XX --define=SUBSYS_MSS --define=DOWNLOAD_FROM_CCS --define=DebugP_ASSERT_ENABLED -g --diag_warning=225 --diag_wrap=off --display_error_number --gen_func_subsections=on --enum_type=packed --abi=eabi --preproc_with_compile --preproc_dependency="sensor_mgmt.d" --cmd_file="configPkg/compiler.opt" "../sensor_mgmt.c"
    'Finished building: ../sensor_mgmt.c'
    ' '
    'Building file: ../config_hwa_util.c'
    'Invoking: ARM Compiler'
    "C:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.3.LTS/bin/armcl" -mv7R4 --code_state=32 --float_support=VFPv3D16 -me -O3 --include_path="C:/Users/AMIN/workspace_vspi/mmw" --include_path="C:/ti/mmwave_sdk_01_00_00_05/packages" --include_path="C:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.3.LTS/include" --define=SOC_XWR14XX --define=SUBSYS_MSS --define=DOWNLOAD_FROM_CCS --define=DebugP_ASSERT_ENABLED -g --diag_warning=225 --diag_wrap=off --display_error_number --gen_func_subsections=on --enum_type=packed --abi=eabi --preproc_with_compile --preproc_dependency="config_hwa_util.d" --cmd_file="configPkg/compiler.opt" "../config_hwa_util.c"
    'Finished building: ../config_hwa_util.c'
    ' '
    'Building file: ../post_processing.c'
    'Invoking: ARM Compiler'
    "C:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.3.LTS/bin/armcl" -mv7R4 --code_state=32 --float_support=VFPv3D16 -me -O3 --include_path="C:/Users/AMIN/workspace_vspi/mmw" --include_path="C:/ti/mmwave_sdk_01_00_00_05/packages" --include_path="C:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.3.LTS/include" --define=SOC_XWR14XX --define=SUBSYS_MSS --define=DOWNLOAD_FROM_CCS --define=DebugP_ASSERT_ENABLED -g --diag_warning=225 --diag_wrap=off --display_error_number --gen_func_subsections=on --enum_type=packed --abi=eabi --preproc_with_compile --preproc_dependency="post_processing.d" --cmd_file="configPkg/compiler.opt" "../post_processing.c"
    'Finished building: ../post_processing.c'
    ' '
    'Building file: ../data_path.c'
    'Invoking: ARM Compiler'
    "C:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.3.LTS/bin/armcl" -mv7R4 --code_state=32 --float_support=VFPv3D16 -me -O3 --include_path="C:/Users/AMIN/workspace_vspi/mmw" --include_path="C:/ti/mmwave_sdk_01_00_00_05/packages" --include_path="C:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.3.LTS/include" --define=SOC_XWR14XX --define=SUBSYS_MSS --define=DOWNLOAD_FROM_CCS --define=DebugP_ASSERT_ENABLED -g --diag_warning=225 --diag_wrap=off --display_error_number --gen_func_subsections=on --enum_type=packed --abi=eabi --preproc_with_compile --preproc_dependency="data_path.d" --cmd_file="configPkg/compiler.opt" "../data_path.c"
    'Finished building: ../data_path.c'
    ' '
    'Building file: ../main.c'
    'Invoking: ARM Compiler'
    "C:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.3.LTS/bin/armcl" -mv7R4 --code_state=32 --float_support=VFPv3D16 -me -O3 --include_path="C:/Users/AMIN/workspace_vspi/mmw" --include_path="C:/ti/mmwave_sdk_01_00_00_05/packages" --include_path="C:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.3.LTS/include" --define=SOC_XWR14XX --define=SUBSYS_MSS --define=DOWNLOAD_FROM_CCS --define=DebugP_ASSERT_ENABLED -g --diag_warning=225 --diag_wrap=off --display_error_number --gen_func_subsections=on --enum_type=packed --abi=eabi --preproc_with_compile --preproc_dependency="main.d" --cmd_file="configPkg/compiler.opt" "../main.c"
    "../main.c", line 1397: warning #225-D: function "Can_Initalize" declared implicitly
    "../main.c", line 1965: warning #161-D: declaration is incompatible with previous "Can_Initalize" (declared at line 1397)
    "../main.c", line 1999: warning #552-D: variable "retVal" was set but never used
    'Finished building: ../main.c'
    ' '
    'Building target: xwr14xx_mmw_mss.xer4f'
    'Invoking: ARM Linker'
    "C:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.3.LTS/bin/armcl" -mv7R4 --code_state=32 --float_support=VFPv3D16 -me -O3 --define=SOC_XWR14XX --define=SUBSYS_MSS --define=DOWNLOAD_FROM_CCS --define=DebugP_ASSERT_ENABLED -g --diag_warning=225 --diag_wrap=off --display_error_number --gen_func_subsections=on --enum_type=packed --abi=eabi -z -m"xwr14xx_mmw_mss.map" --heap_size=0x800 --stack_size=0x800 -i"C:/ti/mmwave_sdk_01_00_00_05/packages/ti/control/mmwave/lib" -i"C:/ti/mmwave_sdk_01_00_00_05/packages/ti/control/mmwavelink/lib" -i"C:/ti/mmwave_sdk_01_00_00_05/packages/ti/drivers/adcbuf/lib" -i"C:/ti/mmwave_sdk_01_00_00_05/packages/ti/drivers/crc/lib" -i"C:/ti/mmwave_sdk_01_00_00_05/packages/ti/drivers/dma/lib" -i"C:/ti/mmwave_sdk_01_00_00_05/packages/ti/drivers/edma/lib" -i"C:/ti/mmwave_sdk_01_00_00_05/packages/ti/drivers/esm/lib" -i"C:/ti/mmwave_sdk_01_00_00_05/packages/ti/drivers/gpio/lib" -i"C:/ti/mmwave_sdk_01_00_00_05/packages/ti/drivers/hwa/lib" -i"C:/ti/mmwave_sdk_01_00_00_05/packages/ti/drivers/mailbox/lib" -i"C:/ti/mmwave_sdk_01_00_00_05/packages/ti/drivers/osal/lib" -i"C:/ti/mmwave_sdk_01_00_00_05/packages/ti/drivers/pinmux/lib" -i"C:/ti/mmwave_sdk_01_00_00_05/packages/ti/drivers/soc/lib" -i"C:/ti/mmwave_sdk_01_00_00_05/packages/ti/drivers/uart/lib" -i"C:/ti/mmwave_sdk_01_00_00_05/packages/ti/utils/cli/lib" -i"C:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.3.LTS/lib" -i"C:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.3.LTS/include" --reread_libs --disable_auto_rts --diag_warning=225 --diag_wrap=off --display_error_number --warn_sections --xml_link_info="xwr14xx_mmw_mss_linkInfo.xml" --rom_model --unused_section_elimination=on -o "xwr14xx_mmw_mss.xer4f" "./config_edma_util.obj" "./config_hwa_util.obj" "./data_path.obj" "./main.obj" "./mmw_cli.obj" "./post_processing.obj" "./sensor_mgmt.obj" "../mss_mmw_linker.cmd" "../r4f_linker.cmd" -l"configPkg/linker.cmd" -llibosal_xwr14xx.aer4f -llibesm_xwr14xx.aer4f -llibgpio_xwr14xx.aer4f -llibsoc_xwr14xx.aer4f -llibpinmux_xwr14xx.aer4f -llibcrc_xwr14xx.aer4f -llibuart_xwr14xx.aer4f -llibmailbox_xwr14xx.aer4f -llibmmwavelink_xwr14xx.aer4f -llibmmwave_xwr14xx.aer4f -llibadcbuf_xwr14xx.aer4f -llibdma_xwr14xx.aer4f -llibedma_xwr14xx.aer4f -llibcli_xwr14xx.aer4f -llibhwa_xwr14xx.aer4f -lrtsv7R4_T_le_v3D16_eabi.lib -llibc.a 
    <Linking>
    "../r4f_linker.cmd", line 35: error #10099-D: program will not fit into available memory.  placement with alignment fails for section ".const" size 0x1077 .  Available memory ranges:
       PROG_RAM     size: 0x1ff00      unused: 0x23c        max hole: 0x23c     
    
     undefined           first referenced
      symbol                 in file     
     ---------           ----------------
     CAN_configBitTime   ./main.obj      
     CAN_createMsgObject ./main.obj      
     CAN_getData         ./main.obj      
     CAN_getOptions      ./main.obj      
     CAN_init            ./main.obj      
     CAN_transmitData    ./main.obj      
    
    error #10234-D: unresolved symbols remain
    error #10010: errors encountered during linking; "xwr14xx_mmw_mss.xer4f" not built
    
    >> Compilation failure
    makefile:169: recipe for target 'xwr14xx_mmw_mss.xer4f' failed
    gmake[2]: *** [xwr14xx_mmw_mss.xer4f] Error 1
    makefile:165: recipe for target 'main-build' failed
    gmake[1]: *** [main-build] Error 2
    makefile:160: recipe for target 'all' failed
    gmake: *** [all] Error 2
    
    **** Build Finished ****

    ////////////////////////////////////////////////////////////////////////////////////////////

    Regards,

    Amin

  • Hello Raghu,


    Thank you for your help. There is an error:

    **** Build of configuration Debug for project mmw ****
    
    "C:\\ti\\ccsv7\\utils\\bin\\gmake" -k -j 8 all -O 
    rm -f C:/Users/AMIN/workspace_vspi/mmw/xwr14xx_mmw_mss.bin
    makefile:193: recipe for target 'pre-build' failed
    process_begin: CreateProcess(NULL, rm -f C:/Users/AMIN/workspace_vspi/mmw/xwr14xx_mmw_mss.bin, ...) failed.
    make (e=2): The system cannot find the file specified.
    
    gmake[1]: [pre-build] Error 2 (ignored)
    ' '
    'Building file: ../mmw.cfg'
    'Invoking: XDCtools'
    "C:/ti/xdctools_3_50_00_10_core/xs" --xdcpath="C:/ti/bios_6_50_01_12/packages;C:/ti/ccsv7/ccs_base;" xdc.tools.configuro -o configPkg -t ti.targets.arm.elf.R4F -p ti.platforms.cortexR:IWR14XX:false:200 -r release -c "C:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.3.LTS" "../mmw.cfg"
    making package.mak (because of package.bld) ...
    generating interfaces for package configPkg (because package/package.xdc.inc is older than package.xdc) ...
    configuring mmw.xer4f from package/cfg/mmw_per4f.cfg ...
    generating custom ti.sysbios library makefile ... 
    Starting build of library sources ...
    making C:/Users/AMIN/workspace_vspi/mmw/src/sysbios/sysbios.aer4f ...
    gmake[1]: Entering directory `C:/Users/AMIN/workspace_vspi/mmw/src/sysbios'
    gmake[1]: Nothing to be done for `all'.
    gmake[1]: Leaving directory `C:/Users/AMIN/workspace_vspi/mmw/src/sysbios'
    Build of libraries done.
    cler4f package/cfg/mmw_per4f.c ...
    'Finished building: ../mmw.cfg'
    ' '
    'Building file: ../config_edma_util.c'
    'Invoking: ARM Compiler'
    "C:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.3.LTS/bin/armcl" -mv7R4 --code_state=32 --float_support=VFPv3D16 -me -O3 --include_path="C:/Users/AMIN/workspace_vspi/mmw" --include_path="C:/ti/mmwave_sdk_01_00_00_05/packages" --include_path="C:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.3.LTS/include" --define=SOC_XWR14XX --define=SUBSYS_MSS --define=DOWNLOAD_FROM_CCS --define=DebugP_ASSERT_ENABLED -g --diag_warning=225 --diag_wrap=off --display_error_number --gen_func_subsections=on --enum_type=packed --abi=eabi --preproc_with_compile --preproc_dependency="config_edma_util.d" --cmd_file="configPkg/compiler.opt" "../config_edma_util.c"
    'Finished building: ../config_edma_util.c'
    ' '
    'Building file: ../mmw_cli.c'
    'Invoking: ARM Compiler'
    "C:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.3.LTS/bin/armcl" -mv7R4 --code_state=32 --float_support=VFPv3D16 -me -O3 --include_path="C:/Users/AMIN/workspace_vspi/mmw" --include_path="C:/ti/mmwave_sdk_01_00_00_05/packages" --include_path="C:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.3.LTS/include" --define=SOC_XWR14XX --define=SUBSYS_MSS --define=DOWNLOAD_FROM_CCS --define=DebugP_ASSERT_ENABLED -g --diag_warning=225 --diag_wrap=off --display_error_number --gen_func_subsections=on --enum_type=packed --abi=eabi --preproc_with_compile --preproc_dependency="mmw_cli.d" --cmd_file="configPkg/compiler.opt" "../mmw_cli.c"
    'Finished building: ../mmw_cli.c'
    ' '
    'Building file: ../sensor_mgmt.c'
    'Invoking: ARM Compiler'
    "C:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.3.LTS/bin/armcl" -mv7R4 --code_state=32 --float_support=VFPv3D16 -me -O3 --include_path="C:/Users/AMIN/workspace_vspi/mmw" --include_path="C:/ti/mmwave_sdk_01_00_00_05/packages" --include_path="C:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.3.LTS/include" --define=SOC_XWR14XX --define=SUBSYS_MSS --define=DOWNLOAD_FROM_CCS --define=DebugP_ASSERT_ENABLED -g --diag_warning=225 --diag_wrap=off --display_error_number --gen_func_subsections=on --enum_type=packed --abi=eabi --preproc_with_compile --preproc_dependency="sensor_mgmt.d" --cmd_file="configPkg/compiler.opt" "../sensor_mgmt.c"
    'Finished building: ../sensor_mgmt.c'
    ' '
    'Building file: ../config_hwa_util.c'
    'Invoking: ARM Compiler'
    "C:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.3.LTS/bin/armcl" -mv7R4 --code_state=32 --float_support=VFPv3D16 -me -O3 --include_path="C:/Users/AMIN/workspace_vspi/mmw" --include_path="C:/ti/mmwave_sdk_01_00_00_05/packages" --include_path="C:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.3.LTS/include" --define=SOC_XWR14XX --define=SUBSYS_MSS --define=DOWNLOAD_FROM_CCS --define=DebugP_ASSERT_ENABLED -g --diag_warning=225 --diag_wrap=off --display_error_number --gen_func_subsections=on --enum_type=packed --abi=eabi --preproc_with_compile --preproc_dependency="config_hwa_util.d" --cmd_file="configPkg/compiler.opt" "../config_hwa_util.c"
    'Finished building: ../config_hwa_util.c'
    ' '
    'Building file: ../post_processing.c'
    'Invoking: ARM Compiler'
    "C:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.3.LTS/bin/armcl" -mv7R4 --code_state=32 --float_support=VFPv3D16 -me -O3 --include_path="C:/Users/AMIN/workspace_vspi/mmw" --include_path="C:/ti/mmwave_sdk_01_00_00_05/packages" --include_path="C:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.3.LTS/include" --define=SOC_XWR14XX --define=SUBSYS_MSS --define=DOWNLOAD_FROM_CCS --define=DebugP_ASSERT_ENABLED -g --diag_warning=225 --diag_wrap=off --display_error_number --gen_func_subsections=on --enum_type=packed --abi=eabi --preproc_with_compile --preproc_dependency="post_processing.d" --cmd_file="configPkg/compiler.opt" "../post_processing.c"
    'Finished building: ../post_processing.c'
    ' '
    'Building file: ../data_path.c'
    'Invoking: ARM Compiler'
    "C:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.3.LTS/bin/armcl" -mv7R4 --code_state=32 --float_support=VFPv3D16 -me -O3 --include_path="C:/Users/AMIN/workspace_vspi/mmw" --include_path="C:/ti/mmwave_sdk_01_00_00_05/packages" --include_path="C:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.3.LTS/include" --define=SOC_XWR14XX --define=SUBSYS_MSS --define=DOWNLOAD_FROM_CCS --define=DebugP_ASSERT_ENABLED -g --diag_warning=225 --diag_wrap=off --display_error_number --gen_func_subsections=on --enum_type=packed --abi=eabi --preproc_with_compile --preproc_dependency="data_path.d" --cmd_file="configPkg/compiler.opt" "../data_path.c"
    'Finished building: ../data_path.c'
    ' '
    'Building file: ../main.c'
    'Invoking: ARM Compiler'
    "C:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.3.LTS/bin/armcl" -mv7R4 --code_state=32 --float_support=VFPv3D16 -me -O3 --include_path="C:/Users/AMIN/workspace_vspi/mmw" --include_path="C:/ti/mmwave_sdk_01_00_00_05/packages" --include_path="C:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.3.LTS/include" --define=SOC_XWR14XX --define=SUBSYS_MSS --define=DOWNLOAD_FROM_CCS --define=DebugP_ASSERT_ENABLED -g --diag_warning=225 --diag_wrap=off --display_error_number --gen_func_subsections=on --enum_type=packed --abi=eabi --preproc_with_compile --preproc_dependency="main.d" --cmd_file="configPkg/compiler.opt" "../main.c"
    "../main.c", line 1397: warning #225-D: function "Can_Initalize" declared implicitly
    "../main.c", line 1965: warning #161-D: declaration is incompatible with previous "Can_Initalize" (declared at line 1397)
    "../main.c", line 1999: warning #552-D: variable "retVal" was set but never used
    'Finished building: ../main.c'
    ' '
    'Building target: xwr14xx_mmw_mss.xer4f'
    'Invoking: ARM Linker'
    "C:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.3.LTS/bin/armcl" -mv7R4 --code_state=32 --float_support=VFPv3D16 -me -O3 --define=SOC_XWR14XX --define=SUBSYS_MSS --define=DOWNLOAD_FROM_CCS --define=DebugP_ASSERT_ENABLED -g --diag_warning=225 --diag_wrap=off --display_error_number --gen_func_subsections=on --enum_type=packed --abi=eabi -z -m"xwr14xx_mmw_mss.map" --heap_size=0x800 --stack_size=0x800 -i"C:/ti/mmwave_sdk_01_00_00_05/packages/ti/control/mmwave/lib" -i"C:/ti/mmwave_sdk_01_00_00_05/packages/ti/control/mmwavelink/lib" -i"C:/ti/mmwave_sdk_01_00_00_05/packages/ti/drivers/adcbuf/lib" -i"C:/ti/mmwave_sdk_01_00_00_05/packages/ti/drivers/crc/lib" -i"C:/ti/mmwave_sdk_01_00_00_05/packages/ti/drivers/dma/lib" -i"C:/ti/mmwave_sdk_01_00_00_05/packages/ti/drivers/edma/lib" -i"C:/ti/mmwave_sdk_01_00_00_05/packages/ti/drivers/esm/lib" -i"C:/ti/mmwave_sdk_01_00_00_05/packages/ti/drivers/gpio/lib" -i"C:/ti/mmwave_sdk_01_00_00_05/packages/ti/drivers/hwa/lib" -i"C:/ti/mmwave_sdk_01_00_00_05/packages/ti/drivers/mailbox/lib" -i"C:/ti/mmwave_sdk_01_00_00_05/packages/ti/drivers/osal/lib" -i"C:/ti/mmwave_sdk_01_00_00_05/packages/ti/drivers/pinmux/lib" -i"C:/ti/mmwave_sdk_01_00_00_05/packages/ti/drivers/soc/lib" -i"C:/ti/mmwave_sdk_01_00_00_05/packages/ti/drivers/uart/lib" -i"C:/ti/mmwave_sdk_01_00_00_05/packages/ti/utils/cli/lib" -i"C:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.3.LTS/lib" -i"C:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.3.LTS/include" --reread_libs --disable_auto_rts --diag_warning=225 --diag_wrap=off --display_error_number --warn_sections --xml_link_info="xwr14xx_mmw_mss_linkInfo.xml" --rom_model --unused_section_elimination=on -o "xwr14xx_mmw_mss.xer4f" "./config_edma_util.obj" "./config_hwa_util.obj" "./data_path.obj" "./main.obj" "./mmw_cli.obj" "./post_processing.obj" "./sensor_mgmt.obj" "../mss_mmw_linker.cmd" "../r4f_linker.cmd" -l"configPkg/linker.cmd" -llibosal_xwr14xx.aer4f -llibesm_xwr14xx.aer4f -llibgpio_xwr14xx.aer4f -llibsoc_xwr14xx.aer4f -llibpinmux_xwr14xx.aer4f -llibcrc_xwr14xx.aer4f -llibuart_xwr14xx.aer4f -llibmailbox_xwr14xx.aer4f -llibmmwavelink_xwr14xx.aer4f -llibmmwave_xwr14xx.aer4f -llibadcbuf_xwr14xx.aer4f -llibdma_xwr14xx.aer4f -llibedma_xwr14xx.aer4f -llibcli_xwr14xx.aer4f -llibhwa_xwr14xx.aer4f -lrtsv7R4_T_le_v3D16_eabi.lib -llibc.a 
    <Linking>
    "../r4f_linker.cmd", line 35: error #10099-D: program will not fit into available memory.  placement with alignment fails for section ".const" size 0x1077 .  Available memory ranges:
       PROG_RAM     size: 0x1ff00      unused: 0x23c        max hole: 0x23c     
    
     undefined           first referenced
      symbol                 in file     
     ---------           ----------------
     CAN_configBitTime   ./main.obj      
     CAN_createMsgObject ./main.obj      
     CAN_getData         ./main.obj      
     CAN_getOptions      ./main.obj      
     CAN_init            ./main.obj      
     CAN_transmitData    ./main.obj      
    
    error #10234-D: unresolved symbols remain
    error #10010: errors encountered during linking; "xwr14xx_mmw_mss.xer4f" not built
    
    >> Compilation failure
    makefile:169: recipe for target 'xwr14xx_mmw_mss.xer4f' failed
    gmake[2]: *** [xwr14xx_mmw_mss.xer4f] Error 1
    makefile:165: recipe for target 'main-build' failed
    gmake[1]: *** [main-build] Error 2
    makefile:160: recipe for target 'all' failed
    gmake: *** [all] Error 2
    
    **** Build Finished ****

    Best regards,

    Amin

  • Amin,

    Are you able to successfully build other projects in the SDK , like the drivers/mmw demo without the CAN modifications ?
    I suspect that your build environment is not setup correctly.

    The unresolved symbols error is due to the not linking the CAN libs . Include the CAN libs in your mmw.mak .

    Thanks,
    Raghu
  • Raghu,

    "Are you able to successfully build other projects in the SDK , like the drivers/mmw demo without the CAN modifications ? "
    Yes, I can successfully build mmwave-sdk project demo(without the CAN modifications).

    Thanks and best regards,
    Amin
  • Raghu,

    How can I use the mmw.mak file?
    Thank you.

    Regards,
    Amin
  • Hello Amin,

    The mmw.mak makefile is already available in the "mmw" folder. You will need to include the the CAN lib in your "MMW_DEMO_STD_LIBS" along with the location of the CAN lib in "MMW_DEMO_LOC_LIBS".

    I suggest you to please also go over the online tutorial on makefile. This will help you understand the makefile build better.

    Thanks,
    Raghu
  • Hello Raghu,

    Thanks for your help. I have used this project:
    mmwave_training_1_2_1/demos/demo0004-mmwave-sdk
    Please give me more details to fix problem.

    Regards,
    Amin
  • Amin,

    Once you have the MMWAVE-SDK downloaded and installed. Please follow the "4. 4. Developing using SDK" in the MMWAVE-SDK-USERGUIDE

    This will help you understand the build process of the demo application. 

    If you follow all the steps in the MMWAVE-SDK-USERGUIDE, you will be able to successfully build the demo application.

    Please follow the build procedure without modifying any of the MMWAVE-SDK code.

    Once you are able to build the demo code, you can add the modification for the CAN application as suggested in the earlier posts.

    Regards,

    Raghu

  • Raghu,

    I added the CAN library:


    Please see the error:

    Thank you.

    Regards,

    Amin

  • Hello Raghu,

    Based on "mmwave_sdk_user_guide", I compiled the project(with your CAN modified files),  but there is an error:

    Thank you.

    Regards,

    Amin

  • Hello Amin,

    Are you able to resolve this issue? If not please see the below details

    AWR1443 has program memory of size 128KB. Till you add CAN, program size is less than 128KB so it works and when you add CAN to the application it goes beyond 128KB of program memory and in that case, while downloading image over JTAG it'll try to write beyond memory limit hence fails.

    To make it work as one option you can follow to move const section to L3 memory of AWR1443.

    /* r4f_linker.cmd */

    .const : {} > L3_RAM
    /* mmw\main.c */

    /*! L3 RAM buffer */

    uint8_t gMmwL3[SOC_XWR14XX_MSS_L3RAM_SIZE - Size_Of_Const];
    #pragma DATA_SECTION(gMmwL3, ".l3ram");
    In above change, you need to take care L3 memory heap size what demo requires to do the processing (which is based on your profile configuration), remaining you can use for Size_Of_Const to allocate your .const section.

    This reply is also available in below post:
    e2e.ti.com/.../617609


    Regards,
    Raghu