Reply by Lucky443 September 4, 20092009-09-04
>mantaray <egeus@rocketmail.com> wrote: >: Hello, > >: I posted early on regarding how to initialise SDRAM. Did some more >: research and got the following observations, would like to verify >: them... > >: MUC: Samsung S3C4510B >: SDRAM: Samsung K4S281632F-TC75 128Mb (8Mx16 CAN=9) > >: There is a SDRAM Power-up Sequence timing diagram (4-34) in the 4510B >: manual, am I right to interpret the that is definitely how the MCU
will
>: assert those signals whenever it power up or rather after it is >: informed that there is SDRAM onboard (by setting of the DRAMCON)? > >Look at the boot code for BIOS-LT at the folloing sites. >http://sourceforge.net/projects/bios-lt/ (main site) or at
http://ucrouter.ru
> > >You have the option for changing many of the initial parameters such as
the
>SDRAM interface values and save it to the boot block part of the flash. >I use mostly 32 bit SDRAM parts on my board and I >have not had a problem with booting the image that BIOS-LT has in it by
default. It looks
>like you have 16bit wide SDRAM so you will have to just to change the
default 32 bit wide to 16 bit wide before you build an image. I have TSOP sockets on
>some of my boards so I just boot on the 32 bit board and configure the
BIOS-LT
>parameter to 16 bit and the plug it into the 16 bit board. I can send
both
>32 or 16 bit images if that would be easier. > >greg (dot) holdren (at) <initials of company> (dot) com > >
Hello, I am lucky, i am working with KMC board with NEC vr4131 processor and samsung K4S561632C SDRAM. my processor have an inbuilt SDRAM control unit. When we are initializaing the sdram, we have to follow the sequence(200us NOP, Precharge, 2xAuto Refresh and MRS) or initializaing the sdram controller's registers is enough. I tried by initializaing the SDRAM control unit registers initialization.After the initialization, i copied my init code from flash to ram.But the contents on the flash and copied code on the SDRAM is not equal. That means the problem is because of improper SDRAM initialization or something else. Any suggestion is greatly helpful. Thanks in advance Regards, Lucky --------------------------------------- This message was sent using the comp.arch.embedded web interface on http://www.EmbeddedRelated.com
Reply by Lucky443 September 4, 20092009-09-04
>mantaray <egeus@rocketmail.com> wrote: >: Hello, > >: I posted early on regarding how to initialise SDRAM. Did some more >: research and got the following observations, would like to verify >: them... > >: MUC: Samsung S3C4510B >: SDRAM: Samsung K4S281632F-TC75 128Mb (8Mx16 CAN=9) > >: There is a SDRAM Power-up Sequence timing diagram (4-34) in the 4510B >: manual, am I right to interpret the that is definitely how the MCU
will
>: assert those signals whenever it power up or rather after it is >: informed that there is SDRAM onboard (by setting of the DRAMCON)? > >Look at the boot code for BIOS-LT at the folloing sites. >http://sourceforge.net/projects/bios-lt/ (main site) or at
http://ucrouter.ru
> > >You have the option for changing many of the initial parameters such as
the
>SDRAM interface values and save it to the boot block part of the flash. >I use mostly 32 bit SDRAM parts on my board and I >have not had a problem with booting the image that BIOS-LT has in it by
default. It looks
>like you have 16bit wide SDRAM so you will have to just to change the
default 32 bit wide to 16 bit wide before you build an image. I have TSOP sockets on
>some of my boards so I just boot on the 32 bit board and configure the
BIOS-LT
>parameter to 16 bit and the plug it into the 16 bit board. I can send
both
>32 or 16 bit images if that would be easier. > >greg (dot) holdren (at) <initials of company> (dot) com > >
Hello, I am lucky, i am working with KMC board with NEC vr4131 processor and samsung K4S561632C SDRAM. my processor have an inbuilt SDRAM control unit. When we are initializaing the sdram, we have to follow the sequence(200us NOP, Precharge, 2xAuto Refresh and MRS) or initializaing the sdram controller's registers is enough. I tried by initializaing the SDRAM control unit registers initialization.After the initialization, i copied my init code from flash to ram.But the contents on the flash and copied code on the SDRAM is not equal. That means the problem is because of improper SDRAM initialization or something else. Any suggestion is greatly helpful. Thanks in advance Regards, Lucky --------------------------------------- This message was sent using the comp.arch.embedded web interface on http://www.EmbeddedRelated.com
Reply by Greg Holdren February 18, 20052005-02-18
mantaray <egeus@rocketmail.com> wrote:
: Hello,

: I posted early on regarding how to initialise SDRAM. Did some more
: research and got the following observations, would like to verify
: them...

: MUC: Samsung S3C4510B
: SDRAM: Samsung K4S281632F-TC75 128Mb (8Mx16 CAN=9)

: There is a SDRAM Power-up Sequence timing diagram (4-34) in the 4510B
: manual, am I right to interpret the that is definitely how the MCU will
: assert those signals whenever it power up or rather after it is
: informed that there is SDRAM onboard (by setting of the DRAMCON)?

Look at the boot code for BIOS-LT at the folloing sites. 
http://sourceforge.net/projects/bios-lt/ (main site) or at http://ucrouter.ru


You have the option for changing many of the initial parameters such as the 
SDRAM interface values and save it to the boot block part of the flash.
I use mostly 32 bit SDRAM parts on my board and I 
have not had a problem with booting the image that BIOS-LT has in it by default. It looks  
like you have 16bit wide SDRAM so you will have to just to change the default 32 bit wide to 16 bit wide before you build an image. I have TSOP sockets on 
some of my boards so I just boot on the 32 bit board and configure the BIOS-LT
parameter to 16 bit and the plug it into the 16 bit board. I can send both 
32 or 16 bit images if that would be easier. 

greg (dot) holdren (at) <initials of company> (dot) com

Reply by mantaray February 18, 20052005-02-18
Hello,

I posted early on regarding how to initialise SDRAM. Did some more
research and got the following observations, would like to verify
them...

MUC: Samsung S3C4510B
SDRAM: Samsung K4S281632F-TC75 128Mb (8Mx16 CAN=9)

There is a SDRAM Power-up Sequence timing diagram (4-34) in the 4510B
manual, am I right to interpret the that is definitely how the MCU will
assert those signals whenever it power up or rather after it is
informed that there is SDRAM onboard (by setting of the DRAMCON)?

As I observed, the sequence of 200us NOP, Precharge, 2xAuto Refresh and
MRS is the same as the sequence in SDRAM initialization sequence. But I
noticed that the signal assertion for the precharge is abit different
from the signals needed in the precharge command of the SDRAM. Eg. The
nDWE and A10/AP signals are supposed to go low, but it remains high in
the 4510B timing diagram.

If the sequence of the MCU is fixed, I think it means that we just
require to setup the DRAMCON register for the timing of each signals
and the initialization is taken care by the MCU automatically...?

But how do we take care of the difference in the assertion of signals
for the precharge command if we are unable to assert the pin to
whatever level we want?

Is setting the DRAMCON sufficient to use the SDRAM.

Thanks in advanced!

Rgds,
Leslie

Reply by mantaray February 16, 20052005-02-16
Another question, how do you assert the CPU output pins like nCAS,
nRAS, nDWE? There is no registers I can write value to set these pins
right?

Thanks!

Reply by mantaray February 16, 20052005-02-16
Btw, I am using Samsung K4S281632F-TC75 128Mb SDRAM.

I found documentations on device operations for Samsung SDRAM with
Power Up Sequence (some pre-charge, auto refresh and MRS commands), is
that sequence what my boot up code should perform?

Should this sequence be performed after or before remapping? I suppose
its after the System Manager registers are set...

Would appreciate very much if anyone who have done similar
initialisation to post that portion of your code. Thanks alot!

Reply by mantaray February 15, 20052005-02-15
I am using the s3c4510b mcu, is it necessary to initialize the SDRAM in
the bootup sequence or I can use the SDRAM directly after I set the
special registers?

If initialization of the SDRAM is required, what is the typical
sequence like in assembly?

Thanks!