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.

[参考译文] TMS320F28388D:查询:CCS 项目中的宏重新定义和路径变量替换问题疑难解答

Guru**** 2540720 points


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

https://e2e.ti.com/support/microcontrollers/c2000-microcontrollers-group/c2000/f/c2000-microcontrollers-forum/1398680/tms320f28388d-query-troubleshooting-macro-redefinition-and-path-variable-replacement-issues-in-ccs-project

器件型号:TMS320F28388D

工具与软件:

我对 CCS 项目有几个疑问:

  1. 宏重新定义错误 :在构建 CCS 项目时,我遇到一个错误,指出宏已经定义,即使我自己定义了它。

  2. 路径变量更换问题 :我的自定义宏路径被自动替换为内置路径。 具体而言、我已将宏定义如下:

    <pathVariable name="C2000WARE_DIR" path="C:\ti\c2000\C2845D~1\" scope="project" />

    但是、它正在被替换为 ${TI_PRODUCTS_DIR_TIREX}\c2000\C2845D~1、这是无法解释的、并且会在文件链接过程中导致错误

你能给我解释一下这两个问题背后的原因吗?

1.什么可以触发此宏重新定义错误
2.为什么要替换此路径、如何解决此问题?