“线程”中讨论的其它部件:C2000WARE,
似乎我们只能对 projectspec 文件中的所有文件使用一个编译器 BuildOptions,但我需要在项目中使用一个具有不同 编译器 BuildOptions 的特定文件,我可以实现吗?
我知道我可以在 CCS 中执行此操作,但我不知道 如何在 projectspec 文件中执行此操作。
我能找到一些有关 projectspec 文件格式和用法的文档吗?
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.
似乎我们只能对 projectspec 文件中的所有文件使用一个编译器 BuildOptions,但我需要在项目中使用一个具有不同 编译器 BuildOptions 的特定文件,我可以实现吗?
我知道我可以在 CCS 中执行此操作,但我不知道 如何在 projectspec 文件中执行此操作。
我能找到一些有关 projectspec 文件格式和用法的文档吗?
您好,
[引用 userid="512084" url="~ë/support/微处理器/CC2000 -微控制器组/CC2000 /f/C2000 -微控制器-论坛/1079866/tms320f28388d-projectspec"]似乎我们只能对 projectspec 文件中的所有文件使用一个编译器 BuildOptions,但我需要在项目中使用一个具有不同 编译器 BuildOptions 的特定文件,我可以实现吗?
我知道我可以在 CCS 中执行此操作,但我不知道 如何在 projectspec 文件中执行此操作。
[/引用]可以在 <file>元素上使用“compilerBuildOptions”属性为该文件设置特定于文件的选项。
例如,让我们看看随 C2000Ware 一起提供的 F28388D LED 闪烁示例的修改版本:
<projectSpec>
<项目
name="led _ex1_blinky"
器件="TMS320F28388D"
cgVersion ="21.6.0.LTS "
products="c2000ware_software_package"
输出格式="ELF"
启动向导="错误"
linkerCommandFile=""(链接命令文件="")
>
<configuration name="CPU1_RAM" compilerBuildOptions="--opt_level=off -i${C2000WARE_common_include}-i${C2000WARE_headers_include}-v28 -ml -mt --CLA_support=cla2 -CLA_background_task=on ---float_support=fcpu_upd_port_upd=325---guard_upd_upd_upd_upd=dcpu_upd_upd=d=dcpu_upd_upd_upd_upd_upd_upd_upd_port_upd=d_upd_upd_upd_upd_upd_upd_upd=d=d_upd_upd
<configuration name="CPU1_flash" compilerBuildOptions="--opt_level=off -i${C2000WARE_common_include}-i${C2000WARE_headers_include}-v28 -ml -mt --CLA_support=cla2 -CLA_background_task=on ---float_support=fcpud_upd_upd=325---support/scopard_port_upd=d_upd_upd_upd=dcpu_upd=d_upd_upd_upd_upd_upd_upd=d_upd_upd_upd_upd_upd=d_upd_upd_upd_upd_upd=ningu_upd_upd_upd=-
pathVariable name="C2000WARE_common_include" path="
pathVariable name="C2000WARE_HEADER_INCLUDE”path="
文件操作="copy" path="./././通用/源/f2838x_codestartbranch.ASM" TargetDirectory=""/>
文件操作="copy" path="./././通用/源/f2838x_defaultisr.c" TargetDirectory=""/>
文件操作="copy" path="./../../通用/源/f2838x_cpudimers.c" TargetDirectory="" compilerBuildOptions="-opt_level=2"/>
文件操作="copy" path="./../../通用/源/f2838x_DMA.c" TargetDirectory=""/>
文件操作="copy" path="./../通用/源/f2838x_GPIO。c" TargetDirectory=""/>
文件操作="copy" path="./././通用/源/f2838x_PIECTRL.c" TargetDirectory=""/>
文件操作="copy" path="./././通用/源/f2838x_pievect.c" TargetDirectory=""/>
文件操作="copy" path="./../../通用/源/f2838x_sysctrl.c" TargetDirectory=""/>
文件操作="copy" path="./../../通用/源/f2838x_usdelay.ASM" TargetDirectory=""/>
文件操作="copy" path="./././.headers/cmd/f2838x_headers_nonBIOS_CPU1.cmd" TargetDirectory=""/>
文件操作="copy" path="./../页眉/源/f2838x_globalvarifabledefs.c" TargetDirectory=""/>
文件操作="copy" path="./..//./通用/目标配置/TMS320F28388D.CCXML" TargetDirectory="targetConfig"/>
文件操作="copy" path="././././C普通/2838x_RAM_lnk_CPU1.cmd" TargetDirectory="应用程序配置="CPU1_RAM"/>
文件操作="copy" path="././././C普通/2838x_flash_lnk_CPU1.cmd" TargetDirectory="应用程序配置="CPU1_flash"/>
<file action="copy" path="./led _ex1_blinky.c" TargetDirectory=""/>
</project>
</projectSpec>
我添加了红色粗体部分。 这会将特定于文件的选项--opt_level=2"添加到 f2838x_cpudimer.c 文件中。
谢谢
Ki