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/AM3352: Is it possible to use a GEL file to configure a target when using the gdb_agent_console in CCS 7.3.0.00019 ?

Part Number: AM3352


Tool/software: Code Composer Studio

When using the gdb_agent_console from a CCS 7.3.0.00019 is it possible to use a GEL file to configure a target?

E.g. have seen that gdb_agent_console supports the Cortex-A8 core in an AM3352, but the <board-data-file> which gdb_agent_console reads as input only contains details of the debug probe and JTAG chain with no apparent way to specify a GEL file to be used for target configuration (as can be specified in the ccxml file used by the CCS debugger).

  • Chester,

    I can't think of any way to do this. The GEL interpreter is part of the CCS debugger. However if you are using GDB then the CCS debugger isn't loaded.

    Regards,
    John
  • Chester,

    Just adding to John's comments, there are two ways I used to do to solve this: 

    - Either convert the GEL file to a C file and include it in your project (or create a completely separate .out that is executed before your program takes place)

    - (If using OpenOCD). Convert the GEL file to .cfg (Tcl).

    I did both processes for a BBB in a somewhat distant past and highly recommend the first option (C to Tcl conversion is a horrid process)

    Cheers,

    Rafael

    AM335x_init_OCMC.zip

    beaglebone_openocd.zip

  • JohnS said:
    The GEL interpreter is part of the CCS debugger. However if you are using GDB then the CCS debugger isn't loaded.

    Thanks for the explanation.

    As a work-around found that can initialise the target hardware first, e.g. boot the AM3352 from a SD card with a program which initialises the external memory and then halts, before starting the gdb_agent_console.

    The ability to use GDB can help to get a "second opinion" to determine if the program or CCS debugger is the cause of some unexpected behaviour (e.g. CCS/66AK2H12: CCS debugging objects derived from virtual base class)

  • desouza said:

    Just adding to John's comments, there are two ways I used to do to solve this: 

    - Either convert the GEL file to a C file and include it in your project (or create a completely separate .out that is executed before your program takes place)

    - (If using OpenOCD). Convert the GEL file to .cfg (Tcl).

    Rafael,

    Thanks for your examples. Looking at the main.c which has been converted from GEL, given the similarity between the GEL and C syntax see why converting GEL to C is the simplest option.