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.

directory substitution in hex6x utility

I'm trying to use hex6x.exe utility to create .hex file.  Everything is working fine except I'd like to be able to define output file directories using environmental variables (i.e. PROJECT_ROOT).  Is it possible to use these environmental variables within a command file?  I can't seem to figure out how to do this and just keep getting errors like "filename not found" because the environmental variable is not being substituted.

 I'd like to export the output file(test.hex) to the project root directory (or some other directory). The reason I want to do this is for certain backward compatiblity with how this .hex file is used.  my command file is shown below

 

DSP1.out

-m

-o PROJECT_ROOT\Test.hex

-image

-memwidth 32

-map romsmap.map

-b

 

 

  • Ryan Major said:
    Is it possible to use these environmental variables within a command file?

    The hex utility does not look up any environment variables, either from CCS or from your OS, when processing the command file.

    Thanks and regards,

    -George