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.

I can't read/write a register in CCS Registers View.

Other Parts Discussed in Thread: AM4376, AM4377, AM4378, AM4379

Hi,

I'm working with AM437x GP EVM and CCS v6.1.3.
After connecting the Cortex-A9 core I tried to read/write a PRCM_CM_WKUP_WDT1_CLKCTRL register in Registers View, but I couldn't
I could read/write it in Memory Browser View.

So, could you please let me know how to read/write it in Registers View?  Is there anything what I should setup?

Thank you in advance for your cooperation.

Best regards,
j-breeze

  • Hi Champs,

    Dose anyone answer this question?

    Best regards,
    j-breeze
  • j-breeze said:
    After connecting the Cortex-A9 core I tried to read/write a PRCM_CM_WKUP_WDT1_CLKCTRL register in Registers View, but I couldn't
    I could read/write it in Memory Browser View.

    From your screen shot the memory browser shows the value 0x2 at address 0x44df2b38. Whereas the register view is showing the PRCM_CM_WKUP_WDT1_CLKCTRL register as having the different value of 0x0. i.e. there is a discrepancy between the memory browser and register view.

    From the AM437x TRM the address of the PRCM_CM_WKUP_WDT1_CLKCTRL is 0x44df2b38.

    On looking at a CCS 6.1.3.00033 installation eith Sitara Device Support 1.2.9 the AM437x device files have incorrectly defined the base address of the CM_WKUP module registers as 0x44df2000 rather than 0x44df2800. i.e. the following files:

    • ccsv6\ccs_base\common\targetdb\devices\AM4376.xml
    • ccsv6\ccs_base\common\targetdb\devices\AM4377.xml
    • ccsv6\ccs_base\common\targetdb\devices\AM4378.xml
    • ccsv6\ccs_base\common\targetdb\devices\AM4379.xml

    Contain the following entry for the CM_WKUP module:

    <instance href = "../Modules/am437x/CM_WKUP.xml" id = "CM_WKUP" xml = "CM_WKUP.xml" xmlpath = "../Modules/am437x/" baseaddr = "0x44df2000" size = "0x2000" accessnumbytes = "1" permissions = "rw" description = "" />
    						

    Which should be:

    <instance href = "../Modules/am437x/CM_WKUP.xml" id = "CM_WKUP" xml = "CM_WKUP.xml" xmlpath = "../Modules/am437x/" baseaddr = "0x44df2800" size = "0x1800" accessnumbytes = "1" permissions = "rw" description = "" />
    						

    After making this correction in a CCS 6.1.3 installation, and restarting CCS, I was then able to use the register view to change the value of the PRCM_CM_WKUP_WDT1_CLKCTRL register in an AM4378.

    Edit: Also correct the size of the CM_WKUP module.

  • Hi Chester,

    I appreciate your support.

    I modified AM4378.xml and then I can read/write the register in Registers View now. I hope the xml files would be revised soon.

    Best regards,
    j-breeze
  • Chester, j-breeze,

    Thanks for reporting this; I filed the bug SDOAPPSCOL-13 today and already fixed this issue.

    This will be available in releases 1.3.0 of the Sitara Device Support (its release date is still TBD).

    I apologize for the inconvenience,
    Rafael