Read and Write to DRAM

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Read and Write to DRAM

676 次查看
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 项奖励
回复
2 回复数

554 次查看
igorpadykov
NXP Employee
NXP Employee

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 项奖励
回复

554 次查看
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 项奖励
回复