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.

AM3352: About default EMIF parameter

Part Number: AM3352

Hi,

A customer using AM3352 is experiencing defects during mass production.
The timing of the occurrence was just when they changed DDR2 to Micron MT47H128M16RT-25E.
We gave them a backup copy of the TI-Wiki and asked them to check the EMIF and other parameters.
When these parameters were changed to match the DDR dataSheet, the improvement was observed.
The problematic parameter was found in u-boot/ddr_defs.h of the LinuxSDK.
#define MT47H128M16RT25E_EMIF_TIM1 0x0666B3C9
#define MT47H128M16RT25E_EMIF_TIM2 0x243631CA
#define MT47H128M16RT25E_EMIF_TIM3 0x0000033F
With this value, there seems to be a problem with some substrates.

A customer asks, do you know how this value was determined?

Best Regards,

Kouji Nishigata

  • Hi Nishigata-san,
    It seems the last change on MT47H128M16RT-25E DDR parameters was done a while back in this commit ID
    git.ti.com/gitweb
    Best,
    -Hong

  • Hi, Hong
    Thanks for the answer.

    I was misunderstanding the situation.
    I gave the customer the EMIF spreadsheet. They tried to run the calculations on a sample MT47H128M16RT-25E, but the values are different from what is written in u-boot/ddr_defs.h.
    Regarding this, they are using a different RAM (W9751G6KB-25) and they are having trouble determining if the values to the EMIF registers calculated in this spreadsheet are correct.
    Can the values noted in the header file be calculated in this spreadsheet as well? Or has something changed in the parameters, etc.?

    Best Regards,

    Kouji Nishigata

  • Hi Nishigata-san,


    AM335x DDR configuration tool user guide and the package are accessible from:
    www.ti.com/.../SPRACK4
    https://www.ti.com/lit/zip/SPRCAJ0


    From the DDR configuration tool user guide Section 2.2.6 u-boot:
    "The u-boot tab provides code fragments to be used in u-boot for DDR DPLL, controller, and PHY configuration. The structures should be placed in <u-boot>/board/ti/am335x/board.c to define the appropriate parameters for your board design. The config_ddr() function calls the DDR initialization routine
    with pointers to the DDR parameters for your design. The get_dpll_ddr_params() function should return a pointer to the DPLL_DDR parameters. It gets called by setup_dplls(), which subsequently uses that structure to configure DPLL_DDR."


    Best,
    -Hong

  • Hi, Hong

    Thanks for the response.
    But the answer seems to be off.
    They are unable to determine if the value to be set is correct, not about where to set it, etc.
    I used AM335x_DDR_register_calc_tool to create the parameters to the EMIF for the MT47H128M16RT-25E and the values are different from the values in ddr_defs.h.
    Because of this, they cannot determine if the parameters they created are correct for the RAM they are using (W9751G6KB-25) as well.
    Perhaps the spreadsheet is wrong, or the parameters set by the customer are wrong, or the values in ddr_defs.h are wrong, do you know which is the cause?
    I am attaching a spreadsheet with the customer's MT47H128M16RT-25E calculations.

    Best Regards,

    Kouji Nishigata

    AM335x_DDR_register_calc_tool_Custermer_data.zip

  • Kouji, the values in ddr_defs.h may not be optimal or may not match the spreadsheet because some optimizations were done to the spreadsheet after the code was frozen.  

    I checked the spreadsheet and it looks correct for the Micron device.  If they are using a different device, the spreadsheet should be based off of that device's datasheet.  

    Regards,

    James

  • Hi, James

    Thanks for your answer.
    Thanks for having a look at the spreadsheet.
    I will let the customer know that the spreadsheet looks fine to use.
    In the meantime, would it be possible to have a look at the spreadsheet on the device the customer is using (W9751G6KB-25)?

    AM335x_DDR_register_calc_tool_W9751G6KB-25.zipw9751g6kb_a09_20170123-1489769.zip

    Best Regards,

    Kouji Nishigata

  • Kouji, the spreadhsheet for the Winbond DDR2 looks good.

    Regards,

    James

  • Hi, James

    Thanks for reviewing the spreadsheet.
    We have had our customers actually set up their boards to confirm that the problem has not reoccurred with the frequency we have seen so far.

    Best Regards,

    Kouji Nishigata