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.

Using Gel files to connect target



Hi all,

I am using Beagle board as my hardware target and connecting with XDS510PPPlus emulator with CCSv4. I used to connect to cortexA8 processor and Measure cycles for sample program by running in it.

Before measuring cycles i used the linker command file to place the code in external memory, enabled cache and MMU.

I observed the cycles varying mostly for every run. for example:

when i loaded program and measured it shown:

454167 cycles

443911 cycles

323177 cycles

353677 cycles

like this it is varying.

after some experimenting, I removed the GEL files that are given in target configuration CCXML file.

and I measured cycles for every time run:

242679 cycles

242311 cycles

243611 cycles

this time it shown some constant change.

So for this can any one suggest me what will happen when no gel file is selected in target configuration file? and what changes in GEL files may results this cycles inconsistence?

for most understanding can also explain GEL files use while connecting?

 

Thanks,

Vinay.

  • Hi Vinay,

    Gel files are used for two purposes -

    1. In a simulator environment, GEL files help to define memory map so that cycle-accurate simulator can predict the behaviour of your program.

    2. In a runtime environment, GEL files help to initialize the DSP processor in a known state,  configures PLL on start-up to define core clock frequency, defines Power-up/shutdown configurations for various modules etc. Some functions in the GEL file also configure certain modules/ controllers on startup by default.

    So, if no GEL file is selected in target configuration file, DSP processor will be in an unknown state during Reset/power-up. AFter that , you will have to define al linitializations. It is usually recommended to keep the processor in a known state at Power-up to prevent it from misbehaving.

    Regards,

    Sid

  • Hi Sid,

    thanks for ur reply, I understood the GEL file functionality but here in my sample program it shown more variations in cycles with GEL files as i said in my previous post.

    why this happens? and You said that DSP processor will be in unknown state during Reset that means it does not have defined initializations. So I think It will run with its boot code.

    so for my case I can consider with out GEL file for measuring cycles as processor is in reset condition.

    or

    this is not the case can u explain why cycles changing everytime?

     

    Thanks,

    Vinay.

  • Hi Vinay,

    When you said Gel "FILES" , are you using multiple gel files? Which gel files are you using and what do they do?

    If some behaviour in a gel file is responsible for triggering some behaviour in another gel file , then the number of cycles may change, though this may change., though this is just a hunch. I would like to know, why multiple gel files, and what each one does? Maybe you can try one gel file at a time, and run  your code to see the amount of variation in the number of cycles during each iteration.

    Regards,

    Sid