Hi, Maddis,
Follow steps below, please!
1. Using Register Programming Aid tool
download it from the link: https://community.nxp.com/t5/i-MX-Processors-Knowledge-Base/i-MX6SX-DDR3-Script-Aid/ta-p/1102580
It is in attachment.
[Note]
Fill your ddr3 parameters in the tool, and get a .inc file, by default, the file's name is realviewice.inc
2. Using i.mx6/7 ddr stress tester tool
Download the tool from the link: https://community.nxp.com/t5/i-MX-Processors-Knowledge-Base/i-MX-6-7-DDR-Stress-Test-Tool/ta-p/11082...
You can use : ddr_stress_tester_v3.00_setup.exe.zip, which can test and calibrate DDR on board via usb otg port, and it supports GUI on windows. After downloading it, install it on your windows PC.
[Note]
copy realviewice.inc file to "D:\Program Files\imx6-7-ddr-stress-tester\ddr_stress_tester_v3.00\script\mx6sx", this is just an example. probably your directory is different.
[note]
Start ddr stress tester, select the correct parameters and the script you just generated according to the prompts, and start calibration.
3. Modifying DDR cfg file in u-boot
After calibration, you will get registers configurations, then you can modify ddr cfg file in u-boot accoding to calibration result.
4. recompiling u-boot.
Hope this information is helpful to you.
Have a nice day!
B.R,
weidong