This is a multi-part message in MIME format.

------=_NextPart_000_005D_01C60D6C.3222FA60
Content-Type: text/plain;
charset="gb2312"
Content-Transfer-Encoding: quoted-printable

I want to expend my S3C2410 device SDRAM from 64MB to 128MB(two =
chip),before sdram is hy57V561620BT-H(32MB*2) , now I will use the =
K4S511632B(64MB*2). the platform is AXD+Multi-ICE.

the change of hardware :
-------------------------------------------------------------------------=
----
(change before) CPU SDRAM | CPU SDRAM (after =
change)
laddr[24] BA0 | laddr[26] BA0
laddr[25] BA1 | laddr[25] BA1


change of the software:
;=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
; NAME: OPTION.A
;;Start address of each stacks,
;_STACK_BASEADDRESS EQU 0x33ff8000 =20
;_MMUTT_STARTADDRESS EQU 0x33ff8000 =20
;_ISR_STARTADDRESS EQU 0x33ffff00

_STACK_BASEADDRESS EQU 0x37ff8000 =20
_MMUTT_STARTADDRESS EQU 0x37ff8000 =20
_ISR_STARTADDRESS EQU 0x37ffff00
+=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
furthermore, the following in the memcfg.s is correct.=20

;Bank 6 parameter
B6_MT EQU 0x3 ;SDRAM
;B6_Trcd EQU 0x0 ;2clk
B6_Trcd EQU 0x1 ;3clk
B6_SCAN EQU 0x1 ;9bit
=20
and the
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D
SMRDATA DATA
; Memory configuration should be optimized for best performance=20
; The following parameter is not optimized. =20
; Memory access cycle parameter strategy
; 1) The memory settings is safe parameters even at HCLK=3D75Mhz.
; 2) SDRAM refresh period is for HCLK=3D75Mhz.=20

DCD =
(0+(B1_BWSCON<<4)+(B2_BWSCON<<8)+(B3_BWSCON<<12)+(B4_BWSCON<<16)+(B5_BWSC=
ON<<20)+(B6_BWSCON<<24)+(B7_BWSCON<<28))
DCD =
((B0_Tacs<<13)+(B0_Tcos<<11)+(B0_Tacc<<8)+(B0_Tcoh<<6)+(B0_Tah<<4)+(B0_Ta=
cp<<2)+(B0_PMC)) ;GCS0
DCD =
((B1_Tacs<<13)+(B1_Tcos<<11)+(B1_Tacc<<8)+(B1_Tcoh<<6)+(B1_Tah<<4)+(B1_Ta=
cp<<2)+(B1_PMC)) ;GCS1=20
DCD =
((B2_Tacs<<13)+(B2_Tcos<<11)+(B2_Tacc<<8)+(B2_Tcoh<<6)+(B2_Tah<<4)+(B2_Ta=
cp<<2)+(B2_PMC)) ;GCS2
DCD =
((B3_Tacs<<13)+(B3_Tcos<<11)+(B3_Tacc<<8)+(B3_Tcoh<<6)+(B3_Tah<<4)+(B3_Ta=
cp<<2)+(B3_PMC)) ;GCS3
DCD =
((B4_Tacs<<13)+(B4_Tcos<<11)+(B4_Tacc<<8)+(B4_Tcoh<<6)+(B4_Tah<<4)+(B4_Ta=
cp<<2)+(B4_PMC)) ;GCS4
DCD =
((B5_Tacs<<13)+(B5_Tcos<<11)+(B5_Tacc<<8)+(B5_Tcoh<<6)+(B5_Tah<<4)+(B5_Ta=
cp<<2)+(B5_PMC)) ;GCS5
DCD ((B6_MT<<15)+(B6_Trcd<<2)+(B6_SCAN)) ;GCS6
DCD ((B7_MT<<15)+(B7_Trcd<<2)+(B7_SCAN)) ;GCS7
DCD =
((REFEN<<23)+(TREFMD<<22)+(Trp<<20)+(Trc<<18)+(Tchr<<16)+REFCNT) =20

DCD 0x32 ;SCLK power saving mode, BANKSIZE 128M/128M

DCD 0x30 ;MRSR6 CL=3D3clk
DCD 0x30 ;MRSR7
; DCD 0x20 ;MRSR6 CL=3D2clk
; DCD 0x20 ;MRSR7
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
=20

after I changed all things. my device is loop at=20

bic r0,r0,#MODEMASK|NOINT
orr r1,r0,#SVCMODE
msr cpsr_cxsf,r1 ;SVCMode
ldr sp,=3DSVCStack
=20
------------------------------
and I had test the 64M config under the 128M chip using, it's running =
okay, but the 64MB space is wasted . when I expand to 128M, but I faild. =


thanks for you Help .
------=_NextPart_000_005D_01C60D6C.3222FA60
Content-Type: text/html;
charset="gb2312"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; charset=3Dgb2312">
<META content=3D"MSHTML 6.00.2900.2802" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY>
<DIV><FONT size=3D2>I want to expend my S3C2410 device SDRAM from 64MB =
to=20
128MB(two chip),before sdram is hy57V561620BT-H(32MB*2) , now I will use =
the=20
K4S511632B(64MB*2). the platform is&nbsp; AXD+Multi-ICE.</FONT></DIV>
<DIV><FONT size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT size=3D2><FONT color=3D#ff0000>the change of hardware</FONT>=20
:</FONT></DIV>
<DIV><FONT=20
size=3D2>----------------------------------------------------------------=
-------------</FONT></DIV>
<DIV><FONT size=3D2>(change before)=20
CPU&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;=20
&nbsp;SDRAM&nbsp;&nbsp; |&nbsp;&nbsp;=20
CPU&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SDRAM (after=20
change)</FONT></DIV>
<DIV><FONT=20
size=3D2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;=20
&nbsp;laddr[24]&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
BA0&nbsp;&nbsp;&nbsp;&nbsp; |&nbsp; =
&nbsp;laddr[26]&nbsp;&nbsp;&nbsp;&nbsp;=20
BA0</FONT></DIV>
<DIV><FONT=20
size=3D2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;laddr[25]&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp;=20
BA1&nbsp;&nbsp;&nbsp;&nbsp; |&nbsp;&nbsp; laddr[25]&nbsp;&nbsp;&nbsp;=20
BA1</FONT></DIV>
<DIV><FONT size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT size=3D2>&nbsp;<FONT color=3D#ff0000>change of the=20
software:</FONT></FONT></DIV>
<DIV><FONT =
size=3D2>;=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D<BR>; =
NAME:=20
OPTION.A<BR>;;Start address of each =
stacks,<BR>;_STACK_BASEADDRESS&nbsp;EQU=20
0x33ff8000&nbsp; <BR>;_MMUTT_STARTADDRESS&nbsp;EQU 0x33ff8000&nbsp;=20
<BR>;_ISR_STARTADDRESS&nbsp;EQU 0x33ffff00</FONT></DIV>
<DIV><FONT size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT size=3D2>_STACK_BASEADDRESS&nbsp;EQU 0x37ff8000&nbsp;=20
<BR>_MMUTT_STARTADDRESS&nbsp;EQU 0x37ff8000&nbsp; =
<BR>_ISR_STARTADDRESS&nbsp;EQU=20
0x37ffff00</FONT></DIV>
<DIV><FONT =
size=3D2>+=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D</FONT>=
</DIV>
<DIV><FONT size=3D2>furthermore, the following&nbsp;in the &nbsp; <FONT=20
color=3D#ff0000>memcfg.s</FONT>&nbsp; is correct.&nbsp;</FONT></DIV>
<DIV><FONT size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT size=3D2>;Bank 6=20
parameter<BR>B6_MT&nbsp;&nbsp;EQU&nbsp;0x3&nbsp;;SDRAM<BR>;B6_Trcd&nbsp;&=
nbsp;EQU&nbsp;0x0&nbsp;;2clk<BR>B6_Trcd&nbsp;&nbsp;EQU&nbsp;0x1&nbsp;;3cl=
k<BR>B6_SCAN&nbsp;&nbsp;EQU&nbsp;0x1&nbsp;;9bit<BR>&nbsp;</FONT></DIV>
<DIV><FONT size=3D2>and the</FONT></DIV>
<DIV><FONT=20
size=3D2>=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D</FONT></DIV>
<DIV><FONT size=3D2><FONT color=3D#804040>SMRDATA DATA</FONT><BR>; =
Memory=20
configuration should be optimized for best performance <BR>; The =
following=20
parameter is not=20
optimized.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
<BR>; Memory access cycle parameter strategy<BR>; 1) The memory settings =

is&nbsp; safe parameters even at HCLK=3D75Mhz.<BR>; 2) SDRAM refresh =
period is for=20
HCLK=3D75Mhz. </FONT></DIV>
<DIV><FONT size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT size=3D2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; DCD=20
(0+(B1_BWSCON&lt;&lt;4)+(B2_BWSCON&lt;&lt;8)+(B3_BWSCON&lt;&lt;12)+(B4_BW=
SCON&lt;&lt;16)+(B5_BWSCON&lt;&lt;20)+(B6_BWSCON&lt;&lt;24)+(B7_BWSCON&lt=
;&lt;28))<BR>&nbsp;&nbsp;&nbsp;=20
&nbsp;DCD=20
((B0_Tacs&lt;&lt;13)+(B0_Tcos&lt;&lt;11)+(B0_Tacc&lt;&lt;8)+(B0_Tcoh&lt;&=
lt;6)+(B0_Tah&lt;&lt;4)+(B0_Tacp&lt;&lt;2)+(B0_PMC))&nbsp;&nbsp;=20
;GCS0<BR>&nbsp;&nbsp;&nbsp; &nbsp;DCD=20
((B1_Tacs&lt;&lt;13)+(B1_Tcos&lt;&lt;11)+(B1_Tacc&lt;&lt;8)+(B1_Tcoh&lt;&=
lt;6)+(B1_Tah&lt;&lt;4)+(B1_Tacp&lt;&lt;2)+(B1_PMC))&nbsp;&nbsp;=20
;GCS1 <BR>&nbsp;&nbsp;&nbsp; &nbsp;DCD=20
((B2_Tacs&lt;&lt;13)+(B2_Tcos&lt;&lt;11)+(B2_Tacc&lt;&lt;8)+(B2_Tcoh&lt;&=
lt;6)+(B2_Tah&lt;&lt;4)+(B2_Tacp&lt;&lt;2)+(B2_PMC))&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;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
;SCLK=20
power saving mode, BANKSIZE 128M/128M</FONT></FONT></DIV>
<DIV><FONT size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT size=3D2>&nbsp;&nbsp;&nbsp; &nbsp;DCD=20
0x30&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
;MRSR6=20
CL=3D3clk<BR>&nbsp;&nbsp;&nbsp; &nbsp;DCD=20
0x30&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
;MRSR7<BR>;&nbsp;&nbsp;&nbsp; &nbsp;DCD=20
0x20&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
;MRSR6=20
CL=3D2clk<BR>;&nbsp;&nbsp;&nbsp; &nbsp;DCD=20
0x20&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
;MRSR7</FONT></DIV>
<DIV><FONT=20
size=3D2>=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D</FONT></DIV>
<DIV><FONT size=3D2>&nbsp;</FONT></DIV>
<DIV><FONT size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT size=3D2>after I changed all things.&nbsp; my device is loop =
at=20
</FONT></DIV>
<DIV><FONT size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT size=3D2><FONT=20
color=3D#804040>&nbsp;bic&nbsp;r0,r0,#MODEMASK|NOINT<BR>&nbsp;orr&nbsp;r1=
,r0,#SVCMODE<BR>&nbsp;msr&nbsp;cpsr_cxsf,r1&nbsp;&nbsp;;SVCMode<BR>&nbsp;=
ldr&nbsp;sp,=3DSVCStack</FONT><BR>&nbsp;</FONT></DIV>
<DIV><FONT size=3D2>------------------------------</FONT></DIV>
<DIV><FONT size=3D2>and I had test the 64M config under the&nbsp; 128M =
chip using,=20
it's running okay, but the 64MB space is wasted . when I expand to 128M, =
but I=20
faild.&nbsp;</FONT></DIV>
<DIV><FONT size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT size=3D2>thanks for you Help&nbsp; .&nbsp; =
</FONT></DIV></BODY></HTML>

------=_NextPart_000_005D_01C60D6C.3222FA60--