System halt during DDR calibration.

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

System halt during DDR calibration.

跳至解决方案
2,058 次查看
danielmi
Contributor I

Hey there,

I'm wondering how to properly calibrate the DDR via MMDC once the system is up and running (i.e. after exiting DCD and starting the application).

Directly after my boot ROM copied and started the application code, I initialize my console to see what's up, copy the calibration code to IRAM and start execution of the calibration code.

As soon as I set the MMDC MDSCR register bit CON_REQ to 0x1 (config request) and CMD to 0x2 (auto-refresh) (0x8020), the system seems to halt, I can't even poll the CON_ACK bit.

Any ideas what's going on?

标签 (2)
0 项奖励
回复
1 解答
1,834 次查看
VladanJovanovic
NXP Employee
NXP Employee

Are you sure your code is really in IRAM? Do you have your own setup code with DCD headers or did you modify u-boot?

I believe u-boot will enable MMU unit very early so you need to keep that in mind when accessing memory regions.

在原帖中查看解决方案

0 项奖励
回复
1 回复
1,835 次查看
VladanJovanovic
NXP Employee
NXP Employee

Are you sure your code is really in IRAM? Do you have your own setup code with DCD headers or did you modify u-boot?

I believe u-boot will enable MMU unit very early so you need to keep that in mind when accessing memory regions.

0 项奖励
回复