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: Use path variable in cmd file

Part Number: TMS320F28379D


Tool/software:

Hi everyone

I'm trying to replace an static file path using a Path variable in a cmd file. But i get an error, is not posible find the file

GROUP
{
.TI.ramfunc
{
// -l "C:\\Users\\jgalbis\\Desktop\\Pruebas\\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" //not works
}
} LOAD = APPLICATION,
RUN = RAMLS0,
LOAD_START(_RamfuncsLoadStart),
LOAD_SIZE(_RamfuncsLoadSize),
LOAD_END(_RamfuncsLoadEnd),
RUN_START(_RamfuncsRunStart),
RUN_SIZE(_RamfuncsRunSize),
RUN_END(_RamfuncsRunEnd),
PAGE = 0

Static File Path:  'C:\\Users\\jgalbis\\Desktop\\Pruebas\\02 CPU1_ok_salto Upgrader\\Proyecto_cpu01\\Application\\Include\\UPGRADER\\F021_API_F2837xD_FPU32.lib"' 

Path Variable:  PROJECT_LOC ' 'C:\Users\jgalbis\Desktop\Pruebas\02 CPU1_ok_salto Upgrader\Proyecto_cpu01'

Is this possible? Is possible use a path variable in a cmd file?

Many thanks in advance

  • I apologize for the delay.

    I presume you use Code Composer Studio (CCS).

    It is not possible to refer to a build variable (CCS, environment variable, makefile variable, etc.) from within a linker command file.  Instead, use the linker option --search_path to specify the directory that contains the file.  Such a directory specification can refer to a build variable.  

    To see how to refer to the library in the linker command file, please search the article Linker Command File Primer for the sub-part titled Allocate a Single Input Section from a Library.

    Thanks and regards,

    -George

  • Many thanks George, it works!!