Read and Write to DRAM

cancel
Showing results for 
Search instead for 
Did you mean: 

Read and Write to DRAM

253 Views
mariyapradeep
Contributor II

Hi,
I am working on wandboard imx6 dual, I was able to write and read a value to a ram location 0x12000000 using md and mw commands. But once the board was reboot via software the value resets and gets back to the initial value. Why it happens so,is it the actual behavior? Also I would like to know where dram initialization takes place.

Thanks in advance.

0 Kudos
2 Replies

131 Views
igorpadykov
NXP TechSupport
NXP TechSupport

ddr initialized in dcd header in uboot/board/freescale/mx6sabresd/mx6q_4x_mt41j128.cfg

or similar locations on other boards.

Also it may be useful to check schematic as on some boards reset is performed as

whole board reset when pmic shortly switch off/on (for MMPF0100 using PWRON).

~igor

0 Kudos

131 Views
RossMcLuckie
NXP Employee
NXP Employee

Hi,

If the software reboot, generates a hardware reset, via the POR pin, which is likely, then the DRAM controller will be reset and re-initialised and the behaviour you are describing would be expected.

DRAM initialisation is not fixed and up to the user, but the most common, and likely, initialisation is done through the DCD filed at boot time, see the boot chapter in the reference manual for more details -

i.MX 6Dual Processors|Advanced 3D Graphics|NXP 

For more specifics on the wandboard you could try their site and forums -

Wandboard - NXP i.MX6 ARM Cortex-A9 Community Development Board - BLOG 

Regards

Ross

0 Kudos