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/RM57L843: How to use GEL_SymbolLoad function ?

Part Number: RM57L843

Tool/software: Code Composer Studio

Dear Expert,

I make the GEL file below:

menuitem "DAP_Access";
hotmenu LoadSymbolsForDAP()
{
GEL_SymbolLoad("rtiblinky.out");
}

When I load it to Debug section and then go to Script-->DAP_Access--> and run "LoadSymbolsForDAP", the error happen in the Console below:

CortexR5: GEL: Encountered a problem loading file: rtiblinky.out Could not open file
LoadSymbolsForDAP() cannot be evaluated.
Encountered a problem loading file: rtiblinky.out
Could not open file
at GEL_SymbolLoad("rtiblinky.out") [DAP.gel:4]
at LoadSymbolsForDAP()

Can anyone help to solve this problem. 

Thank you so much.

  • hung dang said:
    Encountered a problem loading file: rtiblinky.out
    Could not open file
    at GEL_SymbolLoad("rtiblinky.out") [DAP.gel:4]
    at LoadSymbolsForDAP()

    The CCS documentation doesn't make it clear what the current directory is when GEL functions run.

    From experimenting with CCS 7.2 the current directory is <CCS_install_root>\ccsv7\eclipse when the GEL functions run, as found by placing GEL_System("cd"); in a GEL script.

    Therefore, the GEL_SymbolLoad needs to specify the path to the rtiblinky.out file. E.g. by using the absolute path to the file.

    Another option is to specify a path relative to $(GEL_file_dir) which is the directory the GEL file is in. E.g. if the GEL file is in the root directory of the project and you are running the Debug configuration then could use:

        GEL_SymbolLoad("$(GEL_file_dir)\\Debug\\rtiblinky.out");

  • Dear Mr Chester,

    I had make two GEL files which based on two your options. Both Gel files are loaded to CCS7.2 successful. 

    But I still do not see the value of global variable is updated in Continuous Refresh mode. This variable is only updated when I temperately STOP CPU.

    Can me explain why ? Thank you so  much.

    Picture 1: The "temp" variable is not updated in Continuous Refresh mode

    Picture 2: The "temp" variable is only updated when CPU is temperately stopped.

      

  • hung dang said:
    But I still do not see the value of global variable is updated in Continuous Refresh mode. This variable is only updated when I temperately STOP CPU.

    Can me explain why ?

    As I tried to explain in your other thread CCS/RM57L843: Can not get the value of global variable in continuous refresh mode - CCS 7.1 Debug I think the issue is caused by the cache being enabled.

  • Hi Chester,

    I also believe this to be the case. The global would be stored in Cache for easy and efficient access. The debugger won't have access to this memory during runtime. To resolve this, make the Cache as Write Through so the variable will be stored in primary SRAM.