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.

[参考译文] C2000WARE:F28379D 的 ADC_ex3_temp_sensor 示例无法在 Linux 下编译、从而导致.projectspec 文件中出现不正确的目录情况

Guru**** 2235160 points
Other Parts Discussed in Thread: C2000WARE
请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/microcontrollers/c2000-microcontrollers-group/c2000/f/c2000-microcontrollers-forum/980255/c2000ware-adc_ex3_temp_sensor-example-for-f28379d-fails-to-build-under-linux-to-incorrect-directory-case-in-the-projectspec-file

器件型号:C2000WARE

使用 Linux 下的 CCS 10.2  、使用 CCS 中的 Resource Explorer 从 C2000Ware_3_04_00_00_Software 导入了 ADC_ex3_temp_sensor 示例(C2000Ware - 3.04.00.00 -> English -> Examples -> F2837xD -> CPU1 -> ADC_ex3_temp_sensor):

生成的示例未能链接报告错误:

****为项目 ADC_ex3_temp_sensensor 构建配置 CPU1_RAM ****

/home/mr_halfword/ti/ccs1020/ccs/utils/bin/gmake -k -j 12 all -O

gmake:***没有规则使目标'/libraries/calibration/hrpwm/F2837xD/lib/SFO_v8_fpu_lib_build_c28_driverlib.lib,'all'需要。
gmake:目标"全部"不会由于错误而重新生成。

****构建完成**** 

问题是 Linux 下的文件系统区分大小写、示例中的一些路径是 /libraries/calibration/hrpwm/F2837xD (一些大写字符)、而 C2000Ware 安装是 libraries/calibration/HRPWM/f2837xd (所有小写)。

更正 了 C2000Ware_3_04_00_00_Software/driverlib/f2837xd/examples/CPU1/ADC/CCS/adc_ex3_temp_sensor.projectspec 中路径的情况后、能够导入并成功构建项目:

MR_halword@Haswell-Ubuntu:~/ti/C2000Ware_3_04_00_00_Software/driverlib/f2837xd/examples/cpu1/adc/CCS git diff adc_ex3_temp_sensor.projectspec.orig adc_ex3_temp_sensor.projectspec
diff --git a/adc_ex3_temp_sensor.projectspec.orig b/adc_ex3_temp_sensor.projectspec
index 429d124.8fe2634 100644
---- adc_ex3_temp_sensor.projectspec.orig
++ b/adc_ex3_temp_sensor.projectspec
@@-19、13 +19、13 @@



- 
+ ^M





- 
+ ^M



不确定有多少其他 C2000Ware 示例受到同一问题的影响

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    切斯特、您好!

    感谢您指出这一点。  由于 Linux 中的外壳灵敏度、只有 F2837xD ADC 示例受到影响。 将在 C2000Ware 的下一版本中介绍。

    此致

    Siddharth