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.

GEL_file_dir Path Variable Doesn't Seem To Work

Hello,

I've had to edit the root GEL file (i.e. C:\ti\ccs1240\ccs\ccs_base\emulation\gel\AM263x\AM263x.gel ) to enable mutli-core debugging.

Since it is edited I need to commit it to a VCS and so I've moved the root GEL file to the project targetConfigs directory and of course modified the Target Configuration initialization script field accordingly.

I added the GEL_file_dir path variable:

However, the Path Variable GEL_file_dir referred doesn't resolve correctly...

        //Load the common GEL
        GEL_LoadGel( "$(GEL_file_dir)/AM263_common/AM263_common.gel");

...and I get the following error:

How can I implement GEL_file_dir please?

  • Hello,

    I added the GEL_file_dir path variable:

    You cannot re-define the variable. It will always point to the location of the loaded GEL file that is evaluating GEL_file_dir.

    Thanks

    ki

  • Thanks Ki.

    I see so $(GEL_file_dir) means "this GEL file's directory" and is not really a variable given that I can't vary it.

    Fortunately I found a solution. Modify the path in the GEL file such that it is relative to ECLIPSE_HOME.

    Say ECLIPSE_HOME is "C:\ti\ccs1240\eclipse" and AM263x.gel file directory is "C:\ti\ccs1240\ccs\ccs_base\emulation\gel\AM263x\"

    then change $(GEL_file_dir) to ../ccs_base/emulation/gel/AM263x

    e.g.

  • I see so $(GEL_file_dir) means "this GEL file's directory" and is not really a variable given that I can't vary it.

    Exactly.

    Please note that GEL cannot access variables defined in the CCS Eclipse IDE or system environment variables (and vice versa).

    Thanks

    ki