TI中文支持网
TI专业的中文技术问题搜集分享网站

AWR1843: 编译driver_vital_signs(xwr16xx_vitalSignsDemo_lab)出错

Part Number:AWR1843Other Parts Discussed in Thread:MATHLIB, IWR6843,

参考官方的指导,Migrating to xWR68xx and xWR18xx Millimeter Wave Sensors(https://www.ti.com/lit/an/swra656b/swra656b.pdf )

以及:C:\ti\mmwave_automotive_toolbox_3_4_0\labs\incabinsensing\driver_vital_signs中说明

想要实现把xwr16xx_vitalSigns这个Demo移植到AWR 1843板子上,在编译过程中出现下述错误:

分析原因为SDK的版本与driver_vital_signs中release note中要求的不一致导致的错误。

driver_vital_signs中release note要求SDK 1.1.0.2:

但是在移植文件中又要求SDK 3.3.0或者更高的版本:

两个文件中的要求前后产生了矛盾,请问应该如何选择呢?

目前我是选择了使用mmwave_sdk_03_03_00_03,从而出现了图一红框中的错误。移植driver_vital_signs这个demo到AWR 1843板子上的这个事情困扰我两天了,还请官方人员帮忙说明一个详细有效的处理步骤。

Shine:

建议用工程编译,在ccs导入工程。

,

xiaochen wang:

您好,我按照移植指导表格中的要求进行修改,并在CCS导入工程的方式进行编译, 在编译dss工程过程中出现下述错误:

**** Build of configuration Debug for project vitalSigns_16xx_dss ****

"C:\\ti\\ccs1100\\ccs\\utils\\bin\\gmake" -k -j 8 all -O rm -f C:/Users/17377/workspace_vital_signs/vitalSigns_16xx_dss/xwr16xx_vitalSignsDemo_dss.binmakefile:187: recipe for target 'pre-build' failedprocess_begin: CreateProcess(NULL, rm -f C:/Users/17377/workspace_vital_signs/vitalSigns_16xx_dss/xwr16xx_vitalSignsDemo_dss.bin, …) failed.make (e=2): 系统找不到指定的文件。 gmake[1]: [pre-build] Error 2 (ignored) Building file: "../dss_data_path.c"Invoking: C6000 Compiler"C:/ti/ti-cgt-c6000_8.1.3/bin/cl6x" -mv6740 –abi=eabi -O3 –include_path="C:/Users/17377/workspace_vital_signs/vitalSigns_16xx_dss" –include_path="C:/ti/mmwave_sdk_03_04_00_03/packages" –include_path="C:/ti/mathlib_c674x_3_1_2_1/packages" –include_path="C:/ti/dsplib_c64Px_3_4_0_0/packages/ti/dsplib/src/DSP_fft16x16/c64P" –include_path="C:/ti/dsplib_c64Px_3_4_0_0/packages/ti/dsplib/src/DSP_fft32x32/c64P" –include_path="C:/ti/ti-cgt-c6000_8.1.3/include" -g –gcc –define=SOC_XWR18XX –define=SUBSYS_DSS –define=DOWNLOAD_FROM_CCS –define=DebugP_ASSERT_ENABLED –diag_wrap=off –diag_warning=225 –display_error_number –gen_func_subsections=on –obj_extension=.oe674 –preproc_with_compile –preproc_dependency="dss_data_path.d_raw" –cmd_file="configPkg/compiler.opt" "../dss_data_path.c" >> Compilation failuresubdir_rules.mk:9: recipe for target 'dss_data_path.oe674' failed"..\dss_mmw.h", line 233: error #20: identifier "Mailbox_Handle" is undefined"../dss_data_path.c", line 101: fatal error #1965: cannot open source file "ti/demo/utils/rx_ch_bias_measure.h"1 error and 1 catastrophic error detected in the compilation of "../dss_data_path.c".Compilation terminated.gmake[1]: *** [dss_data_path.oe674] Error 1Building file: "../dss_main.c"Invoking: C6000 Compiler"C:/ti/ti-cgt-c6000_8.1.3/bin/cl6x" -mv6740 –abi=eabi -O3 –include_path="C:/Users/17377/workspace_vital_signs/vitalSigns_16xx_dss" –include_path="C:/ti/mmwave_sdk_03_04_00_03/packages" –include_path="C:/ti/mathlib_c674x_3_1_2_1/packages" –include_path="C:/ti/dsplib_c64Px_3_4_0_0/packages/ti/dsplib/src/DSP_fft16x16/c64P" –include_path="C:/ti/dsplib_c64Px_3_4_0_0/packages/ti/dsplib/src/DSP_fft32x32/c64P" –include_path="C:/ti/ti-cgt-c6000_8.1.3/include" -g –gcc –define=SOC_XWR18XX –define=SUBSYS_DSS –define=DOWNLOAD_FROM_CCS –define=DebugP_ASSERT_ENABLED –diag_wrap=off –diag_warning=225 –display_error_number –gen_func_subsections=on –obj_extension=.oe674 –preproc_with_compile –preproc_dependency="dss_main.d_raw" –cmd_file="configPkg/compiler.opt" "../dss_main.c" >> Compilation failuresubdir_rules.mk:9: recipe for target 'dss_main.oe674' failed"..\dss_mmw.h", line 233: error #20: identifier "Mailbox_Handle" is undefined"../dss_main.c", line 115: error #20: identifier "SOC_XWR18XX_DSS_HSRAM_SIZE" is undefined"../dss_main.c", line 819: error #20: identifier "Mailbox_Handle" is undefined"../dss_main.c", line 945: error #137: struct "MmwDemo_output_message_header_t" has no field "subFrameNumber""../dss_main.c", line 1312: error #20: identifier "SOC_XWR18XX_DSS_ADCBUF_SIZE" is undefined5 errors detected in the compilation of "../dss_main.c".gmake[1]: *** [dss_main.oe674] Error 1gmake[1]: Target 'main-build' not remade because of errors.gmake: *** [all] Error 2makefile:153: recipe for target 'all' failed

**** Build Finished ****

随后,在编译mss工程中出现下述错误:

**** Build of configuration Debug for project vitalSigns_16xx_mss ****

"C:\\ti\\ccs1100\\ccs\\utils\\bin\\gmake" -k -j 8 all -O rm -f C:/Users/17377/workspace_vital_signs/vitalSigns_16xx_mss/xwr16xx_vitalSignsDemo_mss.binmakefile:186: recipe for target 'pre-build' failedprocess_begin: CreateProcess(NULL, rm -f C:/Users/17377/workspace_vital_signs/vitalSigns_16xx_mss/xwr16xx_vitalSignsDemo_mss.bin, …) failed.make (e=2): 系统找不到指定的文件。 gmake[1]: [pre-build] Error 2 (ignored) Building file: "../cli.c"Invoking: Arm Compiler"C:/ti/ti-cgt-arm_16.9.6.LTS/bin/armcl" -mv7R4 –code_state=32 –float_support=VFPv3D16 -me -O3 –include_path="C:/Users/17377/workspace_vital_signs/vitalSigns_16xx_mss" –include_path="C:/ti/mmwave_sdk_03_04_00_03" –include_path="C:/ti/mmwave_sdk_03_04_00_03/packages" –include_path="C:/ti/ti-cgt-arm_16.9.6.LTS/include" –define=_LITTLE_ENDIAN –define=SOC_XWR18XX –define=SUBSYS_MSS –define=DOWNLOAD_FROM_CCS –define=MMWAVE_L3RAM_SIZE=0x40000 –define=DebugP_ASSERT_ENABLED -g –c99 –diag_warning=225 –diag_wrap=off –display_error_number –gen_func_subsections=on –enum_type=packed –abi=eabi –preproc_with_compile –preproc_dependency="cli.d_raw" –cmd_file="configPkg/compiler.opt" "../cli.c" >> Compilation failuresubdir_rules.mk:9: recipe for target 'cli.obj' failed"..\mss_mmw.h", line 196: error #20: identifier "Mailbox_Handle" is undefined"../cli.c", line 573: warning #225-D: function "MMWDEMO_SATURATE_HIGH" declared implicitly"../cli.c", line 574: warning #225-D: function "MMWDEMO_SATURATE_LOW" declared implicitly1 error detected in the compilation of "../cli.c".gmake[1]: *** [cli.obj] Error 1Building file: "../mss_main.c"Invoking: Arm Compiler"C:/ti/ti-cgt-arm_16.9.6.LTS/bin/armcl" -mv7R4 –code_state=32 –float_support=VFPv3D16 -me -O3 –include_path="C:/Users/17377/workspace_vital_signs/vitalSigns_16xx_mss" –include_path="C:/ti/mmwave_sdk_03_04_00_03" –include_path="C:/ti/mmwave_sdk_03_04_00_03/packages" –include_path="C:/ti/ti-cgt-arm_16.9.6.LTS/include" –define=_LITTLE_ENDIAN –define=SOC_XWR18XX –define=SUBSYS_MSS –define=DOWNLOAD_FROM_CCS –define=MMWAVE_L3RAM_SIZE=0x40000 –define=DebugP_ASSERT_ENABLED -g –c99 –diag_warning=225 –diag_wrap=off –display_error_number –gen_func_subsections=on –enum_type=packed –abi=eabi –preproc_with_compile –preproc_dependency="mss_main.d_raw" –cmd_file="configPkg/compiler.opt" "../mss_main.c" >> Compilation failuresubdir_rules.mk:9: recipe for target 'mss_main.obj' failed"..\mss_mmw.h", line 196: error #20: identifier "Mailbox_Handle" is undefined"../mss_main.c", line 192: error #20: identifier "rlRfInitomplete_t" is undefined"../mss_main.c", line 192: error #20: identifier "ptrRFInitCompleteMessage" is undefined"../mss_main.c", line 196: error #29: expected an expression"../mss_main.c", line 196: error #66: expected a ";""../mss_main.c", line 526: error #20: identifier "Mailbox_Handle" is undefined"../mss_main.c", line 562: warning #169-D: argument of type "int32_t *" is incompatible with parameter of type "MMWave_CalibrationData *""../mss_main.c", line 562: error #167: too few arguments in function call7 errors detected in the compilation of "../mss_main.c".gmake[1]: *** [mss_main.obj] Error 1gmake[1]: Target 'main-build' not remade because of errors.gmake: *** [all] Error 2makefile:152: recipe for target 'all' failed

**** Build Finished ****

这些错误与我使用SDK makefile的方式提示的类似,也是存在一些变量未定义,例如"Mailbox_Handle" is undefined

这是代表源代码缺少引用相关的头文件而导致的错误?还是我之前猜测的SDK版本不对所导致的错误呢?

,

Shine:

请尝试用mmwave_automotive_toolbox_2_9_1和SDK 2.0.0.4编译。mmwave_automotive_toolbox_2_9_1\labs\lab0001-driver-vital-signs\vitalSigns_target and was able to build with SDK 2.0.0.4. https://e2e.ti.com/support/sensors-group/sensors/f/sensors-forum/982790/iwr1642boost-driver-s-vital-signs-lab-used-on-iwr1642

,

xiaochen wang:

您好,SDK 2.0.0.4只支持1642,而我的是1843

,

Chris Meng:

你好,

你可以参考industrial toolbox里IWR6843的vital sign代码么?

,

xiaochen wang:

您好,IWR6843可以在AWR1843板子上运行吗?我试试这个Demo吧

,

Chris Meng:

你好,

IWR6843的代码不能直接在AWR1843上运行,你可以根据你参考的移植文档来移植。IWR6843基于的是sdk3.5.

,

xiaochen wang:

好吧,等我再试一下

,

zhikai yan:

请问移植文档在哪里,移植文档并没有IWR6843移植到AWR1843的说明

,

Chris Meng:

zhikai yan 说:移植文档并没有IWR6843移植到AWR1843的说明

是的。但是移植需要修改的东西是类似,可以参考。

赞(0)
未经允许不得转载:TI中文支持网 » AWR1843: 编译driver_vital_signs(xwr16xx_vitalSignsDemo_lab)出错
分享到: 更多 (0)

© 2024 TI中文支持网   网站地图 鲁ICP备2022002796号-1