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 slider in CCS v4

I  can't seem to get a GEL slider to work in CCS v4.1.2.00027 with OMAP L137 EVM.

With program

#include <stdio.h>
void main(void)
{
int gain=10;
    printf("testing L137\n");
    while (gain < 20);
    printf("finished\n");
}

 

loaded in debugger, and GEL file

menuitem "gain slider"
slider gain(0,30,1,1,gain_param)
{
gain = gain_param;
}

loaded and running, if I move the slider before running the program I can see the value of the variable changing appropriately

(in the local watch window, and by hovering the cursor over the variable name in the source file)

but if I run the program, it doesn't seem to respond to moving the slider.

A similar program/GEL file seems to work in CCS v3.3.

What am I missing?

 

Donald

  • Hi Donald,

    GEL needs the target halted so that it can execute (which is why it worked when you moved the slider before running). So if you move the GEL slider while the target is running, it will not change the variable until after the target is halted again.

    Thanks

    ki

  • CCSv4 changed its behaviour when it attempts to make debug accesses when target is in a running state. CCSv3.3 would halt the target, make the access and restart it. It would happen quickly, thus there would be no indication that this is happening. However, this could cause interrupts to be missed and applications to exhibit difficult to track down issues. CCSv4 prevents this from occurring, there is an option that you can change if you would like to see CCS v3.3 behaviour. After you start debugger select Tools->Debugger Options->Generic Debugger Options; under "Realtime Options" group enable "Halt the target before any debugger access", this will change the behaviour for current debug session. If you would like preserve this setting, then scroll to the bottom of the view and click on "Remember my settings"

     

  • Thanks Martin, that appears to be what I was looking for. I was sure that I'd had GEL sliders influence real-time programs while running using earlier CCS versions. In hindsight, the example program listed in my query was not too clever - think optimising compiler - but probably got my point across. I've been able to verify your answer using a more complicated real-time program.

     

    Donald