AnsweredAssumed Answered

128MB SDRAM initialization

Question asked by Sandip on Jun 22, 2009
Latest reply on Jun 22, 2009 by Andreas

I am using Video_In_Out code of ADSP-BF561 Ez-Kit.
I am facing the  following problem in SDRAM initialization.
SDRAM type : MT48LC32M16A2 - 8  Meg x 16 x 4 banks (128 MBytes)
When I am debugging Video_In_Out code using   ADSP-BF561 Ez-Kit, the SDRS bit of
EBIU_SDSTAT register (Init_SDRAM.c file)  is zero.

 

I am using the same .LDF file in our code. I am doing the  following
change in .LDF file of Video_In_Out code.

Instead of   RESOLVE(_sFrame0,0x0000C400)
                  RESOLVE(_sFrame1,0x01000000)
                  RESOLVE(_sFrame2,0x02000000)
                  RESOLVE(_sFrame3,0x03000000)

 

We are using 128MB SDRAM, so we are  configuring it as
                  RESOLVE(_sFrame0,0x0000C400)
                  RESOLVE(_sFrame1,0x02000000)
                  RESOLVE(_sFrame2,0x04000000)
                  RESOLVE(_sFrame3,0x06000000)

 

But after building up the code, I am  getting 0x0011 of EBIU_SDSTAT
register. I am getting EAB access generated  an error.

 

Why did I  get this error?
What changes can I do in  .LDF file for removing this error?
How can I configure 128MB SDRAM in  Video_In_Out code .LDF file?

 

 



I have gone through EE-326 , for SDRAM technology.
I am configuring the SDRAM registers as follows:

    *pEBIU_SDBCTL = 0x00000027;                    //SDRAM Memory Bank Control Register
         ssync();
         *pEBIU_SDRRC =  0x000003a9;                    //SDRAM Refresh Rate Control Register
         ssync();
         *pEBIU_SDGCTL = 0x0091998f;                    //SDRAM Memory Global Control Register
         ssync();

 

Regards,

Sandip Shah

Outcomes