This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

When is DDR2 Auto-Initialization completed ?

I am programming U Boot Codes for DM365.

In the code,the code is copied to Flush memory from DDR2 soon after DDR2 Configuration Initialization.

DDR2 could not be  accessed by DM365 correctly. I guess that Auto-Initialization might be failed.

So I want to know when DDR2 Auto-Initialization is completed and how to check it.

Could you please give any information if you know anything ?

  • Hi Chiaki,

    Could you please give more details about your platform? The DDR2 is initialized by UBL bootloader and then u-boot is copied from Flash to DDR2 and executed from DDR2. DDR2 is initialized in UBL code.

    Are you using DM365 for your custom board or are you using Evaluation module? If you are using custom board, then DDR2 settings can be different from the EVM. In that case you have calculate the DDR2 configuration and timing parameters. 

  • I am using H5PS1G63EFR-S5. And I am setting the parms as follows. How about them ?


    Program PHY Control Register(0x200000e4) 0x000000c6
    Program Peripheral Bus Burst Priority Register(0x20000020) 0x000000fe
    SDRAM Bank Config Register(0x20000008) 0x00d3ca32
    ->NM 1:16_bit bus width.
    -> CL: CAS Latency = 5
    ->IBANK 3:Eight banks
    ->PAGESIZE  2: 1024_word page requiring 10 column address bits
    SDRAM Timing Register 1 (0x20000010) 0x3cdb5351
    SDRAM Timing Register 2 (0x20000014)0x4421c732

     

  • Morita-san,

    Is this a custom design or are you using a reference design. Also what is the clock that you are giving to the DDR2?

  •  

    This is for our custom board. And DDR clock is 243MHz.

    Thanks a lot !

  • Morita-san,

    Is it possible to share the portion of schematics and the piece of code which configures the DDR? If its okay, could you please send it to renjith.thomas@pathpartnertech.com