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.

CODECOMPOSER: CCS Debug mode unable to see few registers

Part Number: CODECOMPOSER
Other Parts Discussed in Thread: TMS570LC4357

we are using Code Composer Studio Version: 11.1.0.00011 and the device is TMS570lc4357. While in debug mode few of the EMAC registers are not visible and it is showing error message that "unable to read". I have attached snapshot for your reference.  Could you please help me in resolving the issues.

Thanks,

Subash

  • Hi Subash,

     The debugger memory map setup is incorrect. The gel file used to set up the debugger memory map has the following lines:

    /* EMIF/Ethernet Registers */
    GEL_MapAdd(0xFCFFE800, 0, 0x00000100, 1, 1); /* EMIF */
    GEL_MapAdd(0xFCF78000, 0, 0x00000400, 1, 1); /* CPGMAC Slave */
    GEL_MapAdd(0xFCF78800, 0, 0x00000100, 1, 1); /* CPGMACSS Wrapper */
    GEL_MapAdd(0xFCF78900, 0, 0x00000100, 1, 1); /* Ethernet MDIO */

    As you see, the CPGMAC slave register frame is only defined to be of size 0x400. This needs to be increased to a size of 0x800. You can change this setting manually for now, I will try and get this corrected in the next update to CCS as well.

      (from table 6-25 of Datasheet)

    The relevant gel file is usually: C:\ti\ccsv8\ccs_base\emulation\gel\tms570lc43xx.gel if CCS is installed with the default folder-location settings.

  • Hi QJ,

    Thank you very much! It is working as expected.

    Best Regards,

    Subash