Sign in

username:

password:



Not a member?

Search adsp



Search tips

Subscribe to adsp



adsp by Keywords

AD1819 | AD7332 | ADSP-2106 | ADSP-21060 | ADSP-21065L | ADSP-2116 | ADSP-21160M | ADSP-2181 | ADSP-218x | ADSP-219 | ADSP-2199 | ADSP219 | BF531 | BF532 | BF533 | BF535 | Blackfin | FFT | JTAG | LDF | SDRAM | SHARC | SPORT | UART | VDSP++ | VisualDSP

Discussion Groups

Discussion Groups | Analog Devices DSPs | Problem with SDRAM initialisation on EPROM boot for EZ_KIT 21065L

Technical discussions related to Analog Devices DSPs (including Blackfin, TigerSHARC, SHARC and ADSP-21xx DSPs).

  

Post a new Thread

Problem with SDRAM initialisation on EPROM boot for EZ_KIT 21065L - gsylvain2003 - May 21 5:47:00 2003



Good morning,

I am developping on an EZ_KIT 21065L evaluation board and I have some
trouble with SDRAM init.
When I load the program with ICE Emulator or serial port, it works but
few values in function table in SDRAM are wrong.
When I load in flash EPROM, It doesn't work and the Kernel is not load.

If someone have a suggestion...

Here is SDRAM init from my Kernel :

/**************************************************************/
/* SETUP SDRAM on EZ-LAB */
/**************************************************************/
//#if 0
ustat1=dm(WAIT);
bit clr ustat1 0x000f8000;
dm(WAIT)=ustat1;
ustat1=937; /
dm(SDRDIV)=ustat1;
ustat1=dm(IOCTL);
bit set ustat1 SDPSS|SDBN2|SDBS3|SDTRP3|SDTRAS5|SDCL2|SDPGS256|SDDCK1;
dm(IOCTL)=ustat1;
//#endif
/**************************************************************/
/**************************************************************/





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

Re: Problem with SDRAM initialisation on EPROM boot for EZ_KIT 21065L - Mike Rosing - May 21 13:54:00 2003

On Wed, 21 May 2003, gsylvain2003 wrote:

> I am developping on an EZ_KIT 21065L evaluation board and I have some
> trouble with SDRAM init.
> When I load the program with ICE Emulator or serial port, it works but
> few values in function table in SDRAM are wrong.
> When I load in flash EPROM, It doesn't work and the Kernel is not load.
>
> If someone have a suggestion...
>
> Here is SDRAM init from my Kernel :
>
> /**************************************************************/
> /* SETUP SDRAM on EZ-LAB */
> /**************************************************************/
> //#if 0
> ustat1=dm(WAIT);
> bit clr ustat1 0x000f8000;
> dm(WAIT)=ustat1;
> ustat1=937; /

do you mean 0x937 here? 0x937 != 937

> dm(SDRDIV)=ustat1;
> ustat1=dm(IOCTL);
> bit set ustat1 SDPSS|SDBN2|SDBS3|SDTRP3|SDTRAS5|SDCL2|SDPGS256|SDDCK1;
> dm(IOCTL)=ustat1;

I'm not familiar with SDRAM, so I don't really know.

Patience, persistence, truth,
Dr. mike




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

Re: Problem with SDRAM initialisation on EPROM boot for EZ_KIT 21065L - Jens Michaelsen - May 23 6:51:00 2003

That's the code I added to 065l_prom.asm.
It supports DRAM on bank 0, so I can execute code from DRAM.
Place it right behind the start label.

Jens Michaelsen

ustat1=dm(WAIT);
bit clr ustat1 0x0000001F; /*clear MS0 waitstate and mode*/
dm(WAIT)=ustat1;
ustat1=937; /*refresh rate*/
dm(SDRDIV)=ustat1;

ustat1=dm(IOCTL); /*mask in SDRAM settings*/
bit set ustat1 SDPSS|SDBS0|SDTRP2|SDTRAS4|SDCL2|SDPGS256|5;
dm(IOCTL)=ustat1;

----- Original Message -----
From: "Mike Rosing" <>
To: "gsylvain2003" <>
Cc: <>
Sent: Wednesday, May 21, 2003 3:54 PM
Subject: Re: [adsp] Problem with SDRAM initialisation on EPROM boot for
EZ_KIT 21065L > On Wed, 21 May 2003, gsylvain2003 wrote:
>
> > I am developping on an EZ_KIT 21065L evaluation board and I have some
> > trouble with SDRAM init.
> > When I load the program with ICE Emulator or serial port, it works but
> > few values in function table in SDRAM are wrong.
> > When I load in flash EPROM, It doesn't work and the Kernel is not load.
> >
> > If someone have a suggestion...
> >
> > Here is SDRAM init from my Kernel :
> >
> > /**************************************************************/
> > /* SETUP SDRAM on EZ-LAB */
> > /**************************************************************/
> > //#if 0
> > ustat1=dm(WAIT);
> > bit clr ustat1 0x000f8000;
> > dm(WAIT)=ustat1;
> > ustat1=937; /
>
> do you mean 0x937 here? 0x937 != 937
>
> > dm(SDRDIV)=ustat1;
> > ustat1=dm(IOCTL);
> > bit set ustat1 SDPSS|SDBN2|SDBS3|SDTRP3|SDTRAS5|SDCL2|SDPGS256|SDDCK1;
> > dm(IOCTL)=ustat1;
>
> I'm not familiar with SDRAM, so I don't really know.
>
> Patience, persistence, truth,
> Dr. mike >
> _____________________________________
> /groups.php3




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