System halt during DDR calibration.

cancel
Showing results for 
Search instead for 
Did you mean: 

System halt during DDR calibration.

Jump to solution
603 Views
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?

Labels (2)
0 Kudos
1 Solution
379 Views
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.

View solution in original post

0 Kudos
1 Reply
380 Views
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 Kudos