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