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.

Question about gel file

Other Parts Discussed in Thread: UNIFLASH, TMS320F28335

Hi,

I am new to CCS. I know .gel file is needed for running program in hardware with emulator. For software simulator (such as cycle count simulation), .gel file is not needed. Right? Are there memory size limitation in this kind of simulation? I know the program and data have L1, L2 caches. The simulator assumes all program and data are in L1 cache?

Second, when I import an example project coming with EVM320C6678, I can run the build .out file  without loading .gel file. Who cares .gel file in this case? What is the right  practice?

Thanks.

  • Robert

    The gel file mostly configures and initializes the hardware – setting the various registers values so the device can work properly.  This is basically what boot loader does in normal system. Thus the simulator does not need to have gel file.

    The simulator does not assume that everything is in L1, (only some of the benchmarks make this assumption). You can use linker command file or target definition to decide where the program and the data goes

     

    Please have a look at the gel file of the board that you use, look for example in the directory where you installed ccs5:

    \ccsv5\ccs_base\emulation\boards\evmc6678l\gel

     

    And you will see what it does.

    Hope that it helps.  Please send feedback for this posting

     

  • To expand on what Ran said,

    A GEL file is not always needed, even on hardware with emulator. It depends on the target, what kind of initialization is needed, and where you want to do this initalization. For example, say there is a hardware target with various peripherals. Before you can use them, you need to initialize them. You can initialize it from your code. Or you can initialize it with GEL instead. Sometimes you have to have a GEL file. For example you want to load your code into external memory and before you can do that, memory must be initialized. So you can't do it from your code since you can't load it yet, so you can have GEL do it for you automatically.

    Simulators tend to rely less on startup GEL files. That is because a lot of the hardware initialization is not needed. But people still use the GEL file to set up the debugger memory map and such.

    I recommend reading the below app note for more insight. It talks in more detail about startup GEL files for device initialization:

    http://www.ti.com/lit/an/spraa74a/spraa74a.pdf

    Thanks

    ki

  • Dear Lee,

    I am impressed seeing the way you clarified doubts of CCS users. I am having a doubt, related to ongoing discussion (gel file) and I would appreciate if you or anyone else help me.

    Working environment:

    CCS v6, CCS Uniflash, Control suit, Spectrum digital C2000 XDS510LC, Delfino TMS320F28335 board with docking station.

    Objective:

    Code security module. i.e. Lock and Unlock. 1) I want to have project1.out file to lock, 2) project2.out file to unlock. (not interested to lock/unlock using GUI of CCS or uniflash)

    Current status:

    1) I have been able to create project1.out file in CCS. In Uniflash I have been able to load it in delfino board. Device is locked. - SUCCESSFUL

    2) I have entered correct password in f28335.gel file and drag & drop it into CCS project explorer. If I click debug in CCS, it unlocks my device but .out file does not carry the entered password information (which was added in gel file). So I do not get any .gel file to unlock device.- UNSUCCESSFUL

    I want to know if .gel file can be built along with project and generated .out file carries its information. FYI, my final objective is to have two .out file of my project which I will be loading in my own designed card by SCI-A boot mode (I have hardware control to select boot mode by setting GPIO84, 85, 86, 87 to logic 0,1,1,1). At that time I will not have any JTAG option so I will not be able to use CCS or Uniflash GUI.

    Thanks in advance.

    Regards,

    Anjan