Custom Board Support XML file settings do not initialize SDRAM correctly

I have created an Custom Board Support XML file for my target. The values used for the EBIU registers are based on values set in a working project so I know the all of setting in this XML should be OK. However, when I use this XML I am encountering issues accessing SDRAM. The values I am using are as follows:
EBIU_SDRRC=0x026B
EBIU_SDBCTL=0x25
EBIU_SDGCTL=0x80111109

  • 0
    •  Analog Employees 
    on May 11, 2009 9:32 AM

    CraigG wrote:

    I have created an Custom Board Support XML file for my target. The values used for the EBIU registers are based on values set in a working project so I know the all of setting in this XML should be OK. However, when I use this XML I am encountering issues accessing SDRAM. The values I am using are as follows:
    EBIU_SDRRC=0x026B
    EBIU_SDBCTL=0x25
    EBIU_SDGCTL=0x80111109


    The behaviour you are seeing is because the PSSE bit in the EBIU_SDGCTL register is not set in your XML file. This PSSE bit must be set to 1 to enable the SDRAM power up sequence. However, please note that the PSSE bit always returns "0" when it is read, which may be the source of this incorrect value.

    As you will see in the xml file ...\System\Archdef\adsp-bf526-proc.xml, we set the EBIU_SDGCTL to 0x0091190D, which sets the PSSE bit (bit 23) to 1. Your xml file uses the value 0x80111109, which means this bit is not set, so the SDRAM power up sequence is not performed until you configure SDRAM explicitly in your code.

    If you change the value of EBIU_SDGCTL to 0x80911109, the power up sequence is performed when the board is reset and the xml values are applied.

  • 0
    •  Analog Employees 
    on Apr 29, 2019 10:45 AM
    This question has been closed by the EZ team and is assumed answered.