4.1.7. Enabling the TCM retry and read-modify-write

If the TCM connected to the processor supports error detection and correction then the TCM interface must be configured to support the retry and read-modify-write features. These can be enabled at reset in the system by external signals on the processor. If they are disabled at reset then the following code example can be used to enable them in software:


        LDR r11, =CM7_ITCMCR
        LDR r0, [r11]
        ORR r0, r0, #0x1:SHL:1    ; Set CM7_ITCMCR.RMW field
        ORR r0, r0, #0x1:SHL:2    ; Set CM7_ITCMCR.RETEN field
        STR r0, [r11]

        LDR r11, =CM7_DTCMCR
        LDR r0, [r11]
        ORR r0, r0, #0x1:SHL:1    ; Set CM7_DTCMCR.RMW field
        ORR r0, r0, #0x1:SHL:2    ; Set CM7_DTCMCR.RETEN field
        STR r0, [r11]

Copyright © 2014-2016, 2018 Arm. All rights reserved.ARM DDI 0489F