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.

adding a directory to the source search path in CCS v3.3

 

I am using CCS v3.3 and the CCSripting utility to download my image to a target and run. I am running a perl script to automate this process. The perl script contains CCS Scripting calls to load the program, reset the board, run the executable....etc.  When trying to debug the program i have to manually point to the directory where the source code resides. Is there a way via some CCS scripting call to add a path to the search path that CCS will look for the source in so i don't have to manually select and configure search directories from inside the CCS IDE? The directory i run the perl script from (current directory) contains the executable image i need to download and run, but the source code is at a different location, so i'd like to have both paths on the search path.

 

Thanks

 

 

  • Hello,

    There is no CCScripting API but there is a GEL function called 'GEL_SrcDirAdd( "directory" )' you can use by calling it from the CCScriping API 'TargetEvalExpression' (which can call any GEL function or expression).

    Thanks

    ki


  • Ki

    can the "directory" parameter passed to the GEL function contain multiple search paths (separated by ; or ,)  and should the it be using forward slashes or backslashes in the directory path name? where can i find the GEL functions API descriptions?

     

    thanks

     

  • rmb_vector said:
    can the "directory" parameter passed to the GEL function contain multiple search paths (separated by ; or ,) 

    It's one path at a time. You will have to make multiple calls to add multiple paths

    rmb_vector said:
    and should the it be using forward slashes or backslashes in the directory path name?

    I would use forward slashes since backslashes must be indicated with the escape sequence of \\.

    rmb_vector said:
    where can i find the GEL functions API descriptions?

    'Help->Contents'. Then expand 'Making a Code Composer Project -> Automating Tasks with General Extension Language (GEL) -> Built-In GEL Functions'

    Thanks

    ki