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.

[参考译文] TMS320F28379D:使用 cmd 文件中的路径变量

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

https://e2e.ti.com/support/microcontrollers/c2000-microcontrollers-group/c2000/f/c2000-microcontrollers-forum/1492967/tms320f28379d-use-path-variable-in-cmd-file

器件型号:TMS320F28379D

工具与软件:

大家好

我正在尝试使用 cmd 文件中的 Path 变量替换静态文件路径。 但我收到一个错误、无法找到该文件

相关

.TI.ramfunc

//-l "C:\\users\\jgalbis\\Desktop\\Prueba\\02 cpu1_ok_Salto Upgrader\\Proyecto_cpu01\\Application\\include\\Upgrader\\F021_API_F2837xD_FPU32.lib"//Works

//-l "$(PROJECT_LOC)/Application/Include/UPGRADER/F021_API_F2837xD_FPU32.lib "//不起作用
}
}负载=应用程序、
RUN = RAMLS0、
Load_start (_RamfuncsLoadStart)、
Load_Size (_RamfuncsLoadSize)、
Load_End (_RamfuncsLoadEnd)、
RUN_START (_RamfuncsRunStart)、
RUN_SIZE (_RamfuncsRunSize)、
RUN_END (_RamfuncsRunEnd)、
页= 0

静态文件路径: 'c:\\users\\jgalbis\\Desktop\\Prueba\\02 cpu1_ok_Salto Upgrader\\Proyecto_cpu01\\Application\\include\\Upgrader\\F021_API_F2837xD_FPU32.lib"'  

路径变量: Project_LOC ' "C:\Users\jgalbis\Desktop\Pruebas\02 CPU1_ok_Salto Upgrader\Proyecto_cpu01"

这是可行的吗? 是否可以在 cmd 文件中使用路径变量?

提前感谢

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

    很抱歉耽误你的时间。

    假设您使用的是 Code Composer Studio (CCS)。

    无法从链接器命令文件中引用构建变量(CCS、环境变量、makefile 变量等)。  请使用链接器选项 -- search_path 指定包含该文件的目录。  这样的目录规范可以引用构建变量。   

    若要了解如何在链接器命令文件中引用该库、请搜索文章 链接器命令文件入门 、查找标题为 从库分配单个输入节的子部分

    谢谢。此致、

    -George.

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

    非常感谢乔治,它的工作!!