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.

what is the PATH variable to represent the working directory..



Hi,

When I use the default linker file for any project the path for the linker file used in IAR is as follows,

"$TOOLKIT_DIR$\CONFIG\lnk430G2403.xcl"

where the env variable TOOLKIT_DIR is the installation folder ( "F:\cbn\softwares\Install_folder\430" in my case ).

when I change the linker file and put into the project folder I am giving the complete path of the changed linker file. But this has some flaw, like if I copy the complete project folder into another computer again I have to change the linker file path fully :(

So , If I change the linker file path as "<Current project directory>\<linkerfile>.xcl" , the project should compile without modification in the linker file path.

Please tell me the env variable that I should use for current project directory.

  • Hi ,

    I found the variable name to represent the current working directory.

    Its actually the current project directory and the environment variable (totally different from the system environment variable set) "PROJ_DIR" can be used to indicate the current project directory.

    The list of environment variables corresponding to IAR workbench can be found in following section of help,

    "help -> Index -> argument variables -> environment variables"

**Attention** This is a public forum