ccs10.2调试

uint8_t gMmwL3[SOC_XWR14XX_MSS_L3RAM_SIZE];

main函数中出现上述代码行报错,请问该怎么解决。

  • 请问具体报什么错?用的是哪个例程?是编译的时候出错还是调试的时候报错?
  • 您好,选择代码实在调试的时候报错,用的例程时industrial toolbox3.3.1里面labs文件下的 Zone Occupancy Detection,报错内容如下

    Description Resource Path Location Type
    #20 identifier "MMWAVE_L3RAM_NUM_BANK" is undefined main.c /mmw_mss_14xx line 733 C/C++ Problem
    Description Resource Path Location Type
    #20 identifier "MMWAVE_SHMEM_BANK_SIZE" is undefined main.c /mmw_mss_14xx line 733 C/C++ Problem

    load program error

    SDK版本安装为2.1.0.04,请问改如何解决?谢谢您的回复

  • 您好,刚此描述有误,这些问题在编译和调试的时候都出现了。
  • 图片显示不出来,请点击右下角“使用高级编辑器编辑文本”插入图片。
    另外,您用的WR1443是ES?
  • 您好,我用的是IWR1443ES2.0,上述的图片问题为编译时出现:

    **** Build of configuration Debug for project mmw_mss_14xx ****

    "C:\\ti\\ccs1020\\ccs\\utils\\bin\\gmake" -j 4 all -O

    rm -f C:/Users/ETHEL/workspace_v10/mmw_mss_14xx/xwr14xx_mmw_mss.bin
    makefile:209: recipe for target 'pre-build' failed
    process_begin: CreateProcess(NULL, rm -f C:/Users/ETHEL/workspace_v10/mmw_mss_14xx/xwr14xx_mmw_mss.bin, ...) failed.
    make (e=2): 系统找不到指定的文件。

    gmake[1]: [pre-build] Error 2 (ignored)

    Building file: "../main.c"
    Invoking: Arm Compiler
    "C:/ti/ccs1020/ccs/tools/compiler/ti-cgt-arm_20.2.5.LTS/bin/armcl" -mv7R4 --code_state=16 --float_support=VFPv3D16 -me -O3 --include_path="C:/Users/ETHEL/workspace_v10/mmw_mss_14xx" --include_path="C:/ti/mmwave_sdk_02_01_00_04/packages" --include_path="C:/ti/ccs1020/ccs/tools/compiler/ti-cgt-arm_20.2.5.LTS/include" --define=SOC_XWR14XX --define=SUBSYS_MSS --define=DOWNLOAD_FROM_CCS --define=MMWAVE_L3RAM_SIZE=0x40000 --define=DebugP_ASSERT_ENABLED --define=_LITTLE_ENDIAN -g --diag_warning=225 --diag_wrap=off --display_error_number --gen_func_subsections=on --enum_type=packed --abi=eabi --obj_extension=.oer4f --preproc_with_compile --preproc_dependency="main.d_raw" --include_path="C:/Users/ETHEL/workspace_v10/mmw_mss_14xx/Debug/syscfg" --cmd_file="configPkg/compiler.opt" "../main.c"

    >> Compilation failure
    subdir_rules.mk:9: recipe for target 'main.oer4f' failed
    "../main.c", line 733: error #20: identifier "MMWAVE_L3RAM_NUM_BANK" is undefined
    "../main.c", line 733: error #20: identifier "MMWAVE_SHMEM_BANK_SIZE" is undefined
    2 errors detected in the compilation of "../main.c".
    gmake[1]: *** [main.oer4f] Error 1
    gmake: *** [all] Error 2
    makefile:176: recipe for target 'all' failed

    **** Build Finished ****

    调试的时候出现:

    Description Resource Path Location Type
    #20 identifier "MMWAVE_L3RAM_NUM_BANK" is undefined main.c /mmw_mss_14xx line 733 C/C++ Problem

    Description Resource Path Location Type
    #20 identifier "MMWAVE_SHMEM_BANK_SIZE" is undefined main.c /mmw_mss_14xx line 733 C/C++ Problem

    Description Resource Path Location Type
    gmake: *** [all] Error 2 mmw_mss_14xx C/C++ Problem

    Description Resource Path Location Type
    gmake[1]: *** [main.oer4f] Error 1 mmw_mss_14xx C/C++ Problem

    由于图片无法正常上传,此处以图片形式发送给您。

    感谢您的回复。

  • mmwave SDK要用1.02.00.05版本的,在user guide里的Build the Firmware from Source Code有软件版本说明。
  • 您好,我安装了1.02.00.05还会出现以下的这些问题:
    Description Resource Path Location Type
    #20 identifier "ptrRFInitCompleteMessage" is undefined main.c /mmw_mss_14xx line 1934 C/C++ Problem
    Description Resource Path Location Type
    #20 identifier "rlRfInitComplete_t" is undefined main.c /mmw_mss_14xx line 1934 C/C++ Problem
    Description Resource Path Location Type
    #29 expected an expression main.c /mmw_mss_14xx line 1938 C/C++ Problem

    编译时问题如下:

    **** Build of configuration Debug for project mmw_mss_14xx ****

    "C:\\ti\\ccs1020\\ccs\\utils\\bin\\gmake" -j 4 all -O

    rm -f C:/Users/ETHEL/workspace_v10/mmw_mss_14xx/xwr14xx_mmw_mss.bin
    makefile:209: recipe for target 'pre-build' failed
    process_begin: CreateProcess(NULL, rm -f C:/Users/ETHEL/workspace_v10/mmw_mss_14xx/xwr14xx_mmw_mss.bin, ...) failed.
    make (e=2): 系统找不到指定的文件。

    gmake[1]: [pre-build] Error 2 (ignored)

    Building file: "../main.c"
    Invoking: Arm Compiler
    "C:/ti/ccs1020/ccs/tools/compiler/ti-cgt-arm_20.2.5.LTS/bin/armcl" -mv7R4 --code_state=16 --float_support=VFPv3D16 -me -O3 --include_path="C:/Users/ETHEL/workspace_v10/mmw_mss_14xx" --include_path="C:/ti/mmwave_sdk_01_02_00_05/packages" --include_path="C:/ti/ccs1020/ccs/tools/compiler/ti-cgt-arm_20.2.5.LTS/include" --define=SOC_XWR14XX --define=SUBSYS_MSS --define=DOWNLOAD_FROM_CCS --define=MMWAVE_L3RAM_SIZE=0x40000 --define=DebugP_ASSERT_ENABLED --define=_LITTLE_ENDIAN -g --diag_warning=225 --diag_wrap=off --display_error_number --gen_func_subsections=on --enum_type=packed --abi=eabi --obj_extension=.oer4f --preproc_with_compile --preproc_dependency="main.d_raw" --include_path="C:/Users/ETHEL/workspace_v10/mmw_mss_14xx/Debug/syscfg" --cmd_file="configPkg/compiler.opt" "../main.c"

    >> Compilation failure
    subdir_rules.mk:9: recipe for target 'main.oer4f' failed
    "../main.c", line 1934: error #20: identifier "rlRfInitComplete_t" is undefined
    "../main.c", line 1934: error #20: identifier "ptrRFInitCompleteMessage" is undefined
    "../main.c", line 1938: error #29: expected an expression
    "../main.c", line 1938: error #66: expected a ";"
    4 errors detected in the compilation of "../main.c".
    gmake[1]: *** [main.oer4f] Error 1
    gmake: *** [all] Error 2
    makefile:176: recipe for target 'all' failed

    **** Build Finished ****

  • 我电脑上没装ccs v10,用CCS v9.0.1可以编译,您先试试v9看是否可以。
  • 您好,安装了9.0.1之后可以成功编译和调试了,谢谢您的回复。

    可否请您告诉我,为什么会出现这样的问题呢,我安装的CCS是最新版本10.2,为和会无法进行此demo正常的编译和调试呢?

  • 我今天安装了CCS 10.2,重新导入用CCS v9编译通过的工程,可以编译成功,没有出现您的问题。