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/EVMK2H: problem understanding ARM GEL File

Part Number: EVMK2H

Tool/software: Code Composer Studio

hi

I have worked with C66x gel and dsp gel file before. in DSP for every Hardware access we define address of register and then access it (which is same in C code)

in ARM normally (as far as i know) we get access to cp15, and this is how things done. but in GEL file provided for ARM processors there are some VARIABLEs or "defined labels" which you can't find any definition for them.

for example in GEL file in address "/opt/ti/ccsv8/ccs_base/emulation/boards/xtcievmk2x_arm.gel" there is REG_CTXA15_CP15_C1_ACTLR and REG_CTXA15_CP15_C1_NSACR but there is no definition for them and you can't figure out how this GEL file can adjust these registers.

  • malek alashiri said:
    for example in GEL file in address "/opt/ti/ccsv8/ccs_base/emulation/boards/xtcievmk2x_arm.gel" there is REG_CTXA15_CP15_C1_ACTLR and REG_CTXA15_CP15_C1_NSACR but there is no definition for them and you can't figure out how this GEL file can adjust these registers

    REG_CTXA15_CP15_C1_ACTLR and REG_CTXA15_CP15_C1_NSACR are examples of device register names used by the "GTI API" part of the CCS Debug Server to read device registers, which for these examples are ARM Cortex-A15 CP15 registers.

    ccsv8/ccs_base/common/targetdb/drivers/TI_reg_ids/TMS470R15X_regids.xml in the CCS installation contains a list of the Cortex-A15 register names which are available in GEL scripts, or in the CCS Debugger Expressions view.

    ccsv8/ccs_base/emulation/doc/gti_api.zip in the CCS installation contains documentation and examples for the GTI API.

    I think the names of the GTI API registers are based upon the names used in the ARM Cortex-A15 Technical Reference Manual. E.g.:

    a. REG_CTXA15_CP15_C1_ACTLR is the Auxiliary Control Register

    b. REG_CTXA15_CP15_C1_NSACR is the Non-Secure Access Control Register

  • Agree with Chester`s response and I couldn`t have provided you a better response than the detail he has in his response.:)
    Most of the core registers can be accessed through the GEL using the register names as they show up in the Register view when connecting to A15

    Regards,
    Rahul