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.

IQmath.gel and f28xx.gel

Other Parts Discussed in Thread: CONTROLSUITE

Is there a way to load the device-specifc gel file and the IQmath.gel file before entering Debug mode?

I am able to do it once I'm in Debug mode, but then when I exit Debug mode, I have to add IQmath.gel all over again the next time around.

I'm using: ..\..\emulation\gel\f2812.gel

If I follow this guide, CCS will only allow me to add one GEL file.

http://processors.wiki.ti.com/index.php/GSG:CCSv5.0_Adding_GEL_files_to_a_target_configuration

I am using  CCS Version: 5.5.0.00077.

Thanks for your help.

  • Yes.  Using a text editor, create your own .gel file, say MyGel.gel.  Then use GEL_LoadGEL() function to have it load the other two .gel files.  From the CCS online help:

    ---------------------

    GEL_LoadGEL()

    Loads a GEL file.

    Syntax

    GEL_LoadGel( "fileName" );

    Parameters

    fileName names the GEL file to be loaded. The fileName must be enclosed in quotation marks.

    Description

    This function loads the specified GEL file.

    If the file is not in the current directory, provide a full path name within the string. A double backslash escape sequence is required to ensure that you get a backslash into the fileName Parameters.

    Synchronous

    Synchronous from GEL: Yes

    Completely synchronous: Yes

    Example

    GEL_LoadGel("c:\\mydir\\myfile.gel");

    ---------------------

    I haven't tested this, but it should work.

    Regards,

    David

     

     

  • Thanks, David.

    What am I doing wrong? The load failed.

    Here is my gel file titled f2812_IQmath.gel:

    GEL_LoadGEL("C:\\ti\\ccsv5\\ccs_base\\emulation\\gel\\f2812.gel");
    GEL_LoadGEL("C:\\ti\\controlSUITE\\libs\\math\\IQmath\\v160\\gel\\IQmath.gel");

    Here is the error message from the console:

    C28xx: GEL: Error loading file 'C:\ti\ccsv5\ccs_base\emulation\gel\f2812_IQmath.gel': line 1: unexpected token: "C:\\ti\\ccsv5\\ccs_base\\emulation\\gel\\f2812.gel"

    Thank you.

  • I also tried the function GEL_LoadGel("..."); instead of GEL_LoadGEL.

  • IQmath.gel is only required for CCS versions earlier than 3.3.

    Regards

    Lori

  • Given what Lori said, you may no longer want to use the IQmath.gel file.  Regardless though, to use the method I suggested you need to do a little more work in the .gel file.  your MyGel.gel file would need to look like this (with the paths adjusted as needed):

    OnTargetConnect()
    {
        GEL_LoadGel("..\\ccs_base\\emulation\\gel\\f2812.gel");
        GEL_LoadGel("..\\ccs_base\\emulation\\gel\\IQmath.gel");
    }

    Also, you would need to REMOVE the OnTargetConnect() function from the f2812.gel file.  You could put its contents in the MyGel.gel file function of the same name.  You can only define a function once across all .gel files that are loaded.  The reason I am using OnTargetConnect() is that is a pre-defined function that CCS runs whenever you connect to the target.

    Another way to do all this of course is to no use a MyGel.gel file, and instead just edit OnTargetConnect() in f28335.gel to load the IQmath.gel file (in addition to the other stuff already in OnTargetConnect).

    Regards,

    David

  • Thanks, David. Thanks, Lori.

    Lori, I was going to ask you how I would see the floating point representation of an IQ number in the watch window, but I just figured out for myself that I can right-click on the expression, go to Q-Value and select the base value. 

    Thanks, guys! Thanks for teaching me a little bit about GEL files. Looks like I won't need to delve in any deeper for now.