AM437x DDR Configuration and Programming Guide

= Determining the Register Values =

The following information describes how to set the EMIF registers in the AM437x EMIF module depending on the DDR memory that you are using (LPDDR2 or DDR3).

The primary resources should be the app note AM43xx EMIF Tools and its accompanying spreadsheet.

= Verifying DDR Configuration =

This tool can be useful for trying to debug issues, or simply as some additional verification.

Here's how to use download and use this script:


 * 1) Download am43xx-ddr-analysis.dss.
 * 2) Launch CCS.
 * 3) Create an appropriate target configuration file for connecting to your board.
 * 4) * File -> New -> Target Configuration File
 * 5) * Supply a name/location for the file.
 * 6) * View -> Target Configurations to see the available target configurations (yours should now be among them!).
 * 7) * Double-click your file in the Target Configurations panel to open it for editing.
 * 8) * Select your emulator and processor. Save.
 * 9) Launch the debugger, but do not connect to any CPUs.
 * 10) * In the Target Configurations window, right-click on your ccxml file and select "Launch Selected Configuration"
 * 11) Launch the scripting console by going to View -> Scripting Console.
 * 12) Load am43xx-ddr-analysis.dss in the scripting console by executing "loadJSFile /am43xx-ddr-analysis.dss".
 * 13) It will use the Debug Access Port (DAP) unobtrusively behind the scenes such that the Cortex A9 is never halted.
 * 14) Output files from the tool will be on your desktop:
 * 15) * am43xx-ddr-analysis_yyyy-mm-dd_hhmmss.txt
 * 16) * am43xx-ddr-analysis_yyyy-mm-dd_hhmmss.csv

The txt file will decode many of the registers so you can sanity check your values. If the tool encounters an illegal or unusual setting, it will be noted in the output.