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: GEL files and global variables

Tool/software: Code Composer Studio

Hi there,


for my application I need to share variables between the C project and the GEL file, doing something like this:

C project:

short TestId=0;

while(1)
{
   if(TestId != 0)
 // Execute some code.. 
}


GEL file:

menuitem "Test"

hotmenu Test1()
{
  TestId=1;
}

I load the GEL file and launch the configuration, but when I select he "Test1" script I get this error: "identifier not found at TestId=1".

What am I doing wrong?

Thank you
Regards