Here is an example:
1b. Configure DDR_SDRAM_CFG[ECC_EN]=0b'1 in Target Initialization File.
Comment in reference manual: If this bit is set to 1, DDR_SDRAM_CFG[ACC_ECC_EN] must be set to 1 as well.
The hardware reference manual says that if the ECC_EN is set, which it is, then ACC_ECC_EN should be set. To check this, check bit 29 in the DDR_SDRAM_CFG register, i.e., ACC_ECC_EN.
> devmem 0x1080110 8
OxE5
> devmem 0x1080111 8
0x0C
> devmem 0x1080112 8
0x00
> devmem 0x1080113 8
0x0C
Bit 39 is 1 so ACC_ECC_EN is set correctly when bit 2 ECC_EN is 1 enabled.
In this case, nothing needs to change:
> devmem 0x1080110
0x0C000CE5
After byte swapping this is E50C 000C and this is what you use to read the manual. To make it easier, devmem with a width of 8 bits will order it per the hardware manual as illustrated above.
The RAM begins at 0x1080000. To access the phys mem register, use the offset for each register. The offset for DDR_SDRAM_CFG is 110h. Making the beginning address 0x1080110 for DDR_SDRAM_CFG register. To view the first 8 bits of the register, devmem 0x1080110 8, next 8 bits 0x1080111 8, and so forth for the 32 bit register.
Correct if any mistakes.