Hello Hymalai,
Please try to use following sequence if it is needed to reconfigure already enabled memory controller.
Set DDR_SDRAM_CFG[MEM_HALT] bit;
Read DDR_SDRAM_CFG register to ensure that MEM_HALT has been set;
Clear DDR_SDRAM_CFG[MEM_EN] bit;
Make configuration changes (if needed);
Set DDR_SDRAM_CFG[MEM_EN] bit;
Clear DDR_SDRAM_CFG[MEM_HALT] bit
Have a great day,
Yiping
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------