DSPRelated.com
Forums

SDRAM

Started by Henrry Andrian May 23, 2003
Hi, everyone. I have problem when trying to acces the SDRAM which is
provide by the DSKBoard. I am using DSKBoard 6711 rev.2 which have
two SDRAM Chip from Micron MT48LC16MA2. This SDRAM will have 8 bank
(4 bank for each SDRAM chip). The address of all the SDRAM will be
0x80000000,0x81000000,0x82000000,0x83000000, .. I have tried to
access the SDRAM using several method but it seems fail. The bank
slot that I successfull to access is bank 0 at 0x80000000. The
method that I use are:
1. I am trying to access 0x81000000 by the pragma
#pragma DATA_SECTION(frame,".my_section")
unsigned int frame[4096];

void main()
{
unsigned int i;

for(i=0;i<255;i++)
frame[i]=0x12345678;
}

Comment: for this method I successfully allocate the frame variable
to the address 0x81000000. But I couldnt write data to the frame. So
when I view memory at address 0x81000000 the address doesnt contain
my data which is 0x12345678.

2. The second method I use to allocate is using pointer.
void main()
{
unsigned int *j;

j=(unsigned int*)0x81000000;
*j=0x12345678;
}

This method is successfully point to the address 0x81000000, but
again I am fail to write 0x12345678 to the address 0x81000000

So the question that I would like to ask that I want to access the
address of the SDRAM in 0x81000000, 0x82000000.. for Read and Write.
Should I use the EMIF to access the SDRAM. If I should use the EMIF
could anyone told me what is the correct EMIF setting for the SDRAM.
Because I have also use the EMIF to access the address.

TIA

Henrry Andrian



Check the GEL script that CCS runs when it connects to the board. This
script sets upp the
EMIF with the correct timing parameters.

/Regards, P Ligander

Henrry Andrian wrote:

>Hi, everyone. I have problem when trying to acces the SDRAM which is
>provide by the DSKBoard. I am using DSKBoard 6711 rev.2 which have
>two SDRAM Chip from Micron MT48LC16MA2. This SDRAM will have 8 bank
>(4 bank for each SDRAM chip). The address of all the SDRAM will be
>0x80000000,0x81000000,0x82000000,0x83000000, .. I have tried to
>access the SDRAM using several method but it seems fail. The bank
>slot that I successfull to access is bank 0 at 0x80000000. The
>method that I use are:
>1. I am trying to access 0x81000000 by the pragma
> #pragma DATA_SECTION(frame,".my_section")
> unsigned int frame[4096];
>
>void main()
> {
> unsigned int i;
>
>for(i=0;i<255;i++)
> frame[i]=0x12345678;
> }
>
>Comment: for this method I successfully allocate the frame variable
>to the address 0x81000000. But I couldnt write data to the frame. So
>when I view memory at address 0x81000000 the address doesnt contain
>my data which is 0x12345678.
>
>2. The second method I use to allocate is using pointer.
> void main()
> {
> unsigned int *j;
>
>j=(unsigned int*)0x81000000;
> *j=0x12345678;
> }
>
>This method is successfully point to the address 0x81000000, but
>again I am fail to write 0x12345678 to the address 0x81000000
>
>So the question that I would like to ask that I want to access the
>address of the SDRAM in 0x81000000, 0x82000000.. for Read and Write.
>Should I use the EMIF to access the SDRAM. If I should use the EMIF
>could anyone told me what is the correct EMIF setting for the SDRAM.
>Because I have also use the EMIF to access the address.
>
>TIA
>
>Henrry Andrian >_____________________________________
>Note: If you do a simple "reply" with your email client, only the author of
this message will receive your answer. You need to do a "reply all" if you want
your answer to be distributed to the entire group.
>
>_____________________________________
>About this discussion group:
>
>To Join: Send an email to
>
>To Post: Send an email to
>
>To Leave: Send an email to
>
>Archives: http://www.yahoogroups.com/group/c6x
>
>Other Groups: http://www.dsprelated.com >">http://docs.yahoo.com/info/terms/ >
>



Hi,
The address of the SDRAM is 0x80000000 to 0x80FFFFFF which is 16 MB. The
address is not split up into blocks as you said (The address of all the
SDRAM will be 0x80000000,0x81000000,0x82000000,0x83000000, .. ).So you can
not access 0x81000000 address.

Thanks,
Ramanan.
----- Original Message -----
From: "Henrry Andrian" <>
To: <>
Sent: Friday, May 23, 2003 7:21 AM
Subject: [c6x] SDRAM > Hi, everyone. I have problem when trying to acces the SDRAM which is
> provide by the DSKBoard. I am using DSKBoard 6711 rev.2 which have
> two SDRAM Chip from Micron MT48LC16MA2. This SDRAM will have 8 bank
> (4 bank for each SDRAM chip). The address of all the SDRAM will be
> 0x80000000,0x81000000,0x82000000,0x83000000, .. I have tried to
> access the SDRAM using several method but it seems fail. The bank
> slot that I successfull to access is bank 0 at 0x80000000. The
> method that I use are:
> 1. I am trying to access 0x81000000 by the pragma
> #pragma DATA_SECTION(frame,".my_section")
> unsigned int frame[4096];
>
> void main()
> {
> unsigned int i;
>
> for(i=0;i<255;i++)
> frame[i]=0x12345678;
> }
>
> Comment: for this method I successfully allocate the frame variable
> to the address 0x81000000. But I couldnt write data to the frame. So
> when I view memory at address 0x81000000 the address doesnt contain
> my data which is 0x12345678.
>
> 2. The second method I use to allocate is using pointer.
> void main()
> {
> unsigned int *j;
>
> j=(unsigned int*)0x81000000;
> *j=0x12345678;
> }
>
> This method is successfully point to the address 0x81000000, but
> again I am fail to write 0x12345678 to the address 0x81000000
>
> So the question that I would like to ask that I want to access the
> address of the SDRAM in 0x81000000, 0x82000000.. for Read and Write.
> Should I use the EMIF to access the SDRAM. If I should use the EMIF
> could anyone told me what is the correct EMIF setting for the SDRAM.
> Because I have also use the EMIF to access the address.
>
> TIA
>
> Henrry Andrian > _____________________________________
> Note: If you do a simple "reply" with your email client, only the author
of this message will receive your answer. You need to do a "reply all" if
you want your answer to be distributed to the entire group.
>
> _____________________________________
> About this discussion group:
>
> To Join: Send an email to
>
> To Post: Send an email to
>
> To Leave: Send an email to
>
> Archives: http://www.yahoogroups.com/group/c6x
>
> Other Groups: http://www.dsprelated.com > ">http://docs.yahoo.com/info/terms/ >




--- Ramanan <> wrote:
> Hi,
> The address of the SDRAM is 0x80000000 to
> 0x80FFFFFF which is 16 MB. The
> address is not split up into blocks as you said (The
> address of all the
> SDRAM will be
> 0x80000000,0x81000000,0x82000000,0x83000000, .. ).So
> you can
> not access 0x81000000 address.
>
> Thanks,
> Ramanan.

Thx, Thats why I couldnt access to the address. At
first I taught that the DSK provide 32 MB. But after I
have seen the schematic. it seem that it only provide
16 MB. ===== __________________________________