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.

AM5728: I have a trouble in accessing some memory-mapped registers.

Part Number: AM5728

Hi,

I'm now using the board:
TMDXIDK5728:
AM572x Industrial Development Kit (IDK)

But I have a problem in accessing some memory-mapped registers.
In more specific, I cannot access L3_INSTR region (0x5400_0000 ~ 0x547F_FFFF). For example, when I read the value from MPU_C0_CS_PTM_MPU (0x5414_C000 ~ 0x5414_CFFF), all the read values were 0x0 even after writing some non-zero value. According to ARM Cortex-A15 TRM document, 0x5414C004 should not be zero, because [31] and [27] must be non-zero at least. But 0x0 is read from that address.

Is there any restriction to access L3_INSTR register region?

I used the branch "processor-sdk-linux-4.19.y" from github and ti_sdk_dra7x_debug_defconfig as the configuration.
I think, you can simply regenerate this issue.

Thanks,
Hyun

  • Hi Hyun,

    I have check AM572x TRM, I do not see any restrictions to access L3_INSTR register region.

    L3_INSTR (0x5400_0000 to 0x547F_FFFF)

    MPU_C0_CS_PTM_MPU (0x5414_C000 to 0x5414_CFFF)


    The only think I can think of is to check if L3_INSTR clock is enabled in AM572x device PRCM, please check below register values and make sure these have the correct settings.

    CM_L3INSTR_L3_INSTR_CLKCTRL

    CM_L3INSTR_CLKSTCTRL

    Check also if you are able to access (read/write) from u-boot command prompt, you can use "md" command.

    If that do not help, you will need to contact ARM support team, as these registers are described in their TRM.

    Regards,
    Pavel