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 usage for OMAP-L138

Dear E2E:

Thank you for your support.

I need to printout the variable which is unsined integer. The exanple is below:

#define MCASP_XFMT *(unsigned int*)(0x01D000A8)

What function in GEL can do this?

I looked in the help and found two functions: GEL_TargetTextOut and GEL_TextOut .

I tried both but it did not work.

Can you pleas send me the example - how to printout the variable (unsined integer) like: #define MCASP_XFMT *(unsigned int*)(0x01D000A8)?

Thank you for your help,

Boris Ruvinsky

  • Boris,

    Is there some reason you want this output to be printed out from the GEL file. GEL file prints are generally useful only to check the initial setup on the device or to vary PLL settings. For McASP, the CCSv4/v5 Register view or a simple print in the code using the McASP csl file should help you obtain this information.

    If you still want to do this in the GEL here is an example of configuring SPI1_PinMUX on one of the C674x devices.


    menuitem "Full EVM"

    #define SYS_BASE           0x01C14000
    #define DIEID0             *(unsigned int*)(SYS_BASE + 0x008)
    #define DIEID1             *(unsigned int*)(SYS_BASE + 0x00C)
    #define DIEID2             *(unsigned int*)(SYS_BASE + 0x010)
    #define DIEID3             *(unsigned int*)(SYS_BASE + 0x014)

    #define DSP_ROM1           *(unsigned int*)(0x11700008)
    #define DSP_ROM2           *(unsigned int*)(0x1170000C)
    #define ARM_ROM1           *(unsigned int*)(0xFFFD0008)
    #define ARM_ROM2           *(unsigned int*)(0xFFFD000C)

    hotmenu GetDevInfo()
    {
        int j;
        char k = 65;

        GEL_TextOut("***********************************************\n","Output",1,1,1);
      
        GEL_TextOut("DSP_ROM1 = %x\n","Output",1,1,1,DSP_ROM1);
        GEL_TextOut("DSP_ROM2 = %x\n","Output",1,1,1,DSP_ROM2);
        GEL_TextOut("ARM_ROM1 = %x\n","Output",1,1,1,ARM_ROM1);
        GEL_TextOut("ARM_ROM2 = %x\n","Output",1,1,1,ARM_ROM2);
        GEL_TextOut("-----\n","Output",1,1,1);
        GEL_TextOut("DIEID0 = %x\n","Output",1,1,1,DIEID0);
        GEL_TextOut("DIEID1 = %x\n","Output",1,1,1,DIEID1);
        GEL_TextOut("DIEID2 = %x\n","Output",1,1,1,DIEID2);
        GEL_TextOut("DIEID3 = %x\n","Output",1,1,1,DIEID3);
        GEL_TextOut("***********************************************\n","Output",1,1,1);
    }


    menuitem and hotmenu will allow you to call the function out from CCS Script options. If you look at any device GEL file you should be able to figure out these options.

    Hope this helps.

    Regards,

    Rahul