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.

CCS/CC1312R: Is there a way to load automaticaly my custom .GEL fail without to modify original .GEL.

Part Number: CC1312R
Other Parts Discussed in Thread: TM4C129ENCPDT

Tool/software: Code Composer Studio

Hi, 

In other worts is there a way to set my .gel file in target configuration initialisation script and it to load default .gel (that with StartUp() inside)? The goal is to avoid modifications in default .gel file (camming with CCS).

Regards

Dimitar

 

  • Hi Dimitar,

    Yes, this is supported. In your target configuration (ccxml) file, simply replace the existing startup gel file with your custom one. In your custom gel file, you can use the "GEL_LoadGel()" function to then load the default GEL file.

    Thanks

    ki

  • Ki said:
    In your custom gel file, you can use the "GEL_LoadGel()" function to then load the default GEL file.

    Is there any way to load the default GEL file from the CCS installation without having to specify the absolute path to the default GEL file?

  • Chester Gillon said:
    Is there any way to load the default GEL file from the CCS installation without having to specify the absolute path to the default GEL file?

    The $(GEL_file_dir) macro is typically used to avoid absolute paths:

    https://software-dl.ti.com/ccs/esd/documents/users_guide/gel/macros.html

    Thanks

    ki

  • Ki said:
    The $(GEL_file_dir) macro is typically used to avoid absolute paths

    I wasn't clear. GEL_file_dir is documented as expanding the to the directory in which the (calling) GEL file is located.

    The issue is when you add a custom device file to your project, e.g. a modified tm4c129encpdt.gel, which then wants to call an unmodified GEL file from the CCS installation, e.g. CortexM3_util.gel.

    I wasn't able to see a way to load the unmodified GEL file in the CCS installation from the custom GEL file in the project without either:

    a. Specifying the absolute path to the CCS installation in the GEL_LoadGel call.

    b. Copying the unmodified GEL file from the CCS installation to the project directory with the custom device GEL file.

  • I know that that "GEL_LoadGel()" can load gel file, but what should i write in my .gel file, so GEL_LoadGel() to be executed automaticaly?

    I could not have StartUp() function in my .gel as there is such in the default that I am going to load. 

      

      

  • Chester Gillon said:
    a. Specifying the absolute path to the CCS installation in the GEL_LoadGel call.

    I guess another option is to define a custom macro and then use that macro in the GEL_LoadGel call:

    #define GEL_STARTUP_FILE     "$(GEL_file_dir)//..//..//ti//ccs1011//ccs//ccs_base//emulation//gel//cc26x2.gel"

    hotmenu LoadStartGel()
    {
        GEL_LoadGel(GEL_STARTUP_FILE);
    }

    But the custom macro is going to have an absolute path (or close to it) so it doesn't resolve the root issue.

  • D. Devedzhiev said:

    I could not have StartUp() function in my .gel as there is such in the default that I am going to load. 

    Yes, you are correct. This is a limitation as far as I know. Since StartUp is the only function automatically called when the file is loaded, this would cause a conflict. I'm not sure if there is good workaround for this. I'm waiting for confirmation from engineering but I'm pretty sure this is the case.

    ki 

  • Ki said:
    Yes, you are correct. This is a limitation as far as I know. Since StartUp is the only function automatically called when the file is loaded, this would cause a conflict. I'm not sure if there is good workaround for this. I'm waiting for confirmation from engineering but I'm pretty sure this is the case.

    I did confirm that this is the case. Hence there is no way to have a custom parent GEL file referenced by the ccxml that will automatically load the startup GEL file that comes with CCS. Either you'll have to have the GEL_LoadGel call inside a custom function (a hotmenu function would be most convenient) that you can call manually once the GEL file is loaded, or you'll have to modify the original startup GEL file (which I'm sure you don't want to do).

    ki