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.

Register View with DAP

Other Parts Discussed in Thread: AM3359

CCS 6.0
AM335x

I like to use the DAP for viewing memory mapped registers because:

  1. I don't have to halt the A8 to do it.
  2. I don't have to worry about the MMU and knowing the virtual addresses of what I want to view.

The only down side of this approach is that the nice "register" view does not seem to be available for the DAP.  Is there a way to hack the xml files to make it show me the memory mapped registers?  Obviously I won't be able to see the Cortex A8 registers, but it would be nice to have the "pretty view" of the peripherals.

  • Maybe?  I have never tried it.

    If I look at the xml file for the DAP it does have one module (register xml file) referenced.  So you could try adding in instances for the registers that you wanted to see.  

    <?xml version="1.0" encoding="UTF-8"?>
    <router HW_revision="1.0" XML_version="1.2" id="CS_DAP" isa="CS_DAP" description="CS_DAP Router">

    <register id="IP_DUMMY" acronym="IP_DUMMY" width="32" description="" />
    <register id="DEVICE_ID" acronym="DEVICE_ID" width="32" description="" />
    <instance href="..\Modules\cs_dap_NotVisible.xml" id="" xml="cs_dap_NotVisible.xml" xmlpath="..\Modules\" HW_revision="1.0" description="" requestor="CS_DAP" baseaddr="0" size="00" accessnumbytes="4" permissions="p" />

    ADD THEM HERE


    </router>

    Remember that this file is shared by all devices that have a coresight DAP so I would create a copy of it and modify the am3359.xml file to point to the copy.

    <instance XML_version="1.2" desc="CS_DAP_M3" href="routers/cs_dap.xml" id="CS_DAP_M3" xml="cs_dap.xml" xmlpath="routers"/>

    When adding the instance lines you can remove the requestor field in bold below.

    <instance href="../Modules/am335x/CM_PER.xml" id="CM_PER" xml="CM_PER.xml" xmlpath="../Modules/am335x/" HW_version="Matrix" description="Clock Module Peripheral Registers" requestor="TMS470R2X" baseaddr="0x44E00000" endaddr="0x44E003FF" size="0x400" accessnumbytes="4" permissions="p" />

  • Thanks for the reply.  I am onto other things already so I'm going to mark this as "verified" for now and will try to come back to it some time.

    If anyone else gets a chance to try this out please let us know your results!  I will post a reply once I get a chance to try it out.