Hi,
I would like to understand how to configure DDR for iMX8QM system.
Our board has 8Go of DDR4 which is more than the iMX8QM MEK board.
How to configure the system to indicate additional RAM to initialize ?
How is the DDR configured ?
There are 2 channels, are they configured in interleaved mode ?
How the channel mapped to the memory region ?
The SCFW porting kit has a number of tests that can be run. Some are relevant to DDR.
I am able to run the DDR and DRC test on iMX8QM MEK but the DDR stress test fails :
*** DDR Stress SC Test
Power up DRC 0
Power up DRC 1
Allocate memory
Init DDRC
board_init_ddr(1)
DDR frequency = 1596000000
board_init_ddr(0)
DDR frequency = 1596000000
Current DDR Clock rate:
- DRC controller0: 798000000Hz, -DDR0 PHY: 1596000000Hz
- DRC controller1: 798000000Hz, -DDR1 PHY: 1596000000Hz
The DDR stress test can run with an incrementing frequency or at a static freq
To run at a static freq, simply set the start freq and end freq to the same valueEnter desired START freq in MHz and in 50MHz increments, then hit enter.
For example, for 1GHz, enter 1000, for 850MHz, enter 850.
1596
The freq you entered was: 1596 MHzEnter desired END freq in MHz and in 50MHz increments, then hit enter.
Make sure this is equal to or greater than start freq
1596
The freq you entered was: 1596 MHzDo you want to run DDR Stress Test for simple loop or infintely (till failure)?
Type '0' for simple loop. Type '1' for infinte test
0----------------------------
DDR freq passed into function * 1000000: 1596000000** pm_clock_enable error!, err 6
**Error occurred when trying to set DDR freq, re-start testDDR Stress test ended due to detected data failure
Regards,
Stan
Hi @sbertrand ,
Will you please provide the steps to DDR Test Calibration and DDR value initialization for IMX8QM board.
Hi Stan,
There exists a RPA Tool (RegisterProgrammingAid) for the DDR configuration (it's) an Excel Sheet. With this you can extract two files: *.cfg and *.ds.
With the ds you can run the NXP DDR Tool and with the cfg you have to build a new SCFW.
Pls. contact your NXP rep. for this files and tools.
This link might be useful, too: https://community.nxp.com/docs/DOC-341872
BR,
Stefan
We got the RPA and the stress test tool.
The new configuration for 8Gbyte has been made. Testing will be performed soon.
Regards,
Stan