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; ustat17; / dm(SDRDIV)=ustat1; ustat1=dm(IOCTL); bit set ustat1 SDPSS|SDBN2|SDBS3|SDTRP3|SDTRAS5|SDCL2|SDPGS256|SDDCK1; dm(IOCTL)=ustat1; //#endif /**************************************************************/ /**************************************************************/ |
|
Problem with SDRAM initialisation on EPROM boot for EZ_KIT 21065L
Started by ●May 21, 2003
Reply by ●May 21, 20032003-05-21
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; > ustat17; / 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 |
Reply by ●May 23, 20032003-05-23
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; ustat17; /*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; > > ustat17; / > > 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 > > _____________________________________ > 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://groups.yahoo.com/group/adsp > > Other Groups: http://www.dsprelated.com/groups.php3 > ">http://docs.yahoo.com/info/terms/ |