Sign in

username:

password:



Not a member?

Search c55x



Search tips

Subscribe to c55x



c55x by Keywords

AIC23 | C5509 | CCS | CSL | EMIF | EVM | GEL | GPIO | HPI | Interfacing | JTAG | McBSP | OMAP | Omap15 | OMAP59 | RTDX | SDRAM | TMS320VC5509 | USB | XDS5

Ads

Discussion Groups

Discussion Groups | TMS320C55x | interfacing SDRAM with c5502

Technical discussions about the TI C55x DSPs (including the c5501, c5502, c5503, c5507, c5509, c5510 and OMAP5910).

  

Post a new Thread

interfacing SDRAM with c5502 - vishnu_0806 - Dec 19 8:04:33 2006



hai friends,
            my name is vishnu. i have been working with C5502 for some
time for my current project. coding is done in CCS2. in our DSP board
an SDRAM is also connected. i have to configure the SDRAM. i have
tried so many ways but i am not able configure the SDRAM correctly.
the sdram used is MT48LC2M32B2.. it is a 512K*32*4 bank SDRAM. I have
been using csl library.. but i am not able to get it to work. 
can anyone help me?? please give a comment on this problem??
have any of u friends have any sample code on interfacing and
configuring SDRAM with c5502.

thanks in advance
                                                     vishnu prasad



(You need to be a member of c55x -- send a blank email to c55x-subscribe@yahoogroups.com )

Re: interfacing SDRAM with c5502 - Jeff Brower - Dec 19 13:01:00 2006

Vishnu-

>             my name is vishnu. i have been working with C5502 for some
> time for my current project. coding is done in CCS2. in our DSP board
> an SDRAM is also connected. i have to configure the SDRAM. i have
> tried so many ways but i am not able configure the SDRAM correctly.
> the sdram used is MT48LC2M32B2.. it is a 512K*32*4 bank SDRAM. I have
> been using csl library.. but i am not able to get it to work.
> can anyone help me?? please give a comment on this problem??

What CEn space are you using?  Is this an in-house board or DSK board?  If it's an
in-house board, have you got other external memory to work yet, for example Flash or
SRAM?  What settings are you using for GBLCTL1, GBLCTL2, and SDCTL registers?

What about CESCR register?  Since your SDRAM will take 8 Mbyte, then only CE0 and CE2
can be active, and you must set CESCR accordingly.  Did you do that?

> have any of u friends have any sample code on interfacing and
> configuring SDRAM with c5502.

Sure but it probably doesn't match your board.  To solve your problem, you need
thorough understanding of the board and 5502 setup so you can find the specific thing
that makes a difference.

-Jeff



(You need to be a member of c55x -- send a blank email to c55x-subscribe@yahoogroups.com )

Re: interfacing SDRAM with c5502 - Jeff Brower - Dec 20 13:30:08 2006

Vishnu-

> thanx jeff for replying to my query...
> i am currently working on an inhouse board of c5502.
> the chip select for SDRAM is connected to CE0 space.
> the other spaces are now connected with an ADC to CE1,
> a UART to CE2 and another IC to  CE3..

Ok but for 5502 that's not going to work with 64 Mbit SDRAM.  With that size SDRAM
you can only use CE0 and CE2.  Please double-check the 5501/5502 EMIF reference guide
doc:

  http://focus.ti.com/lit/ug/spru621f/spru621f.pdf

If you need additional CEn, then your SDRAM size has to be smaller -- this is a
design weakness in 55xx series.  You should try another size or configuration of
SDRAM.  You should be able to find pin-compatible SDRAM packages with which to
experiment.  This becomes even more of an issue if you need to boot from Flash:  the
5502 bootloader requires Flash in CE1 space.

-Jeff
> i have given the following values for the emif registers
>
> 1) GBLCTL1   = 0x207C
> 2) GBLCTL2   = 0x0000
> 3) CE0_CTL1  = 0xC430
> 4) CE0_CTL2  = 0x7107
> 5) CEO_SCR1 = 0x0000
> 6) CEO_SCR1 = RESERVED
> 7) SDCTL1      =  0xF000
> 8) SDCTL2      =  0x4577
> 9) SDRFR1      =  0x5DC
> 10) SDRFR2    =  0x0200
> 11) SDEXT1    =  0x5F3F
> 12) SDEXT2    =  0x0017
>              These are the values i have given for configuring SDRAM.. hav i done
> anythin wrong..
> will you please give me a comment on the procedure to follow to configure SDRAM.
>
> thanks in advance
> vishnu prasad
>
> ----- Original Message ----
> From: Jeff Brower <j...@signalogic.com>
> To: Vishnu Prasad <v...@yahoo.com>
> Cc: c...@yahoogroups.com
> Sent: Tuesday, December 19, 2006 11:02:20 PM
> Subject: Re: [c55x] interfacing SDRAM with c5502
>  Vishnu-
>
> >             my name is vishnu. i have been working with C5502 for some
> > time for my current project. coding is done in CCS2. in our DSP board
> > an SDRAM is also connected. i have to configure the SDRAM. i have
> > tried so many ways but i am not able configure the SDRAM correctly.
> > the sdram used is MT48LC2M32B2.. it is a 512K*32*4 bank SDRAM. I have
> > been using csl library.. but i am not able to get it to work.
> > can anyone help me?? please give a comment on this problem??
>
> What CEn space are you using?  Is this an in-house board or DSK board?  If it's an
> in-house board, have you got other external memory to work yet, for example Flash
> or
> SRAM?  What settings are you using for GBLCTL1, GBLCTL2, and SDCTL registers?
>
> What about CESCR register?  Since your SDRAM will take 8 Mbyte, then only CE0 and
> CE2
> can be active, and you must set CESCR accordingly.  Did you do that?
>
> > have any of u friends have any sample code on interfacing and
> > configuring SDRAM with c5502.
>
> Sure but it probably doesn't match your board.  To solve your problem, you need
> thorough understanding of the board and 5502 setup so you can find the specific
> thing
> that makes a difference.
>
> -Jeff
>



(You need to be a member of c55x -- send a blank email to c55x-subscribe@yahoogroups.com )