public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* [ECOS] Problem in modify ecos for EDB7312
@ 2001-09-03 10:45 Peihong Li
  0 siblings, 0 replies; 6+ messages in thread
From: Peihong Li @ 2001-09-03 10:45 UTC (permalink / raw)
  To: ecos-discuss

All,
I am trying to modify ecos V1.3 (based on the
edb7212's) for my edb7312. What I have done on
hal_platform_setup.h is as follow:
 
#define INIT_MEMORY_CONFIG         \
/* Initialize memory configuration  ;\
	ldr r1,=MEMCFG1            ;\
//***	ldr r2,=0x8200A080         ;\
	ldr r2,=0x1f101710		;\
	str r2,[r1]                 ;\
	ldr r1,=MEMCFG2             ;\
//***	ldr r2,=0xFEFC0000     ;\
	ldr r2,=0x00001f13     ;\
	str r2,[r1]            ;\
//***	ldr r1,=DRFPR          ;\
//***	ldr r2,=0x81 /*DRAM refresh=64KHz */      ;\
//***	strb r2,[r1]		;\
	ldr r1,=0x80002300	;\
	ldr r2,=0x00000522	;\
	str r2,[r1]		;\
	ldr r1,=0x80002340	;\
	ldr r2,=0x00000240	;\
	str r2,[r1]
#endif

But it still cannot connect with arm-elf-gdb. Who can
tell me why?

Thanks,

Peihong Li


__________________________________________________
Do You Yahoo!?
Get email alerts & NEW webcam video instant messaging with Yahoo! Messenger
http://im.yahoo.com

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [ECOS] Problem in modify ecos for EDB7312
  2001-09-04 23:44   ` Jesper Skov
@ 2001-09-05  1:54     ` Peihong Li
  0 siblings, 0 replies; 6+ messages in thread
From: Peihong Li @ 2001-09-05  1:54 UTC (permalink / raw)
  To: Jesper Skov; +Cc: ecos-discuss

Thx you,Jesper,
I checked the datasheet for EDB7312. Because the
EP7312 (MCU) provides a SDRAM controller, the
initialization for SDRAM (such as mode data writing)
should be operated automatically. 

Peihong Li

--- Jesper Skov <jskov@redhat.com> wrote:
> >>>>> "Peihong" == Peihong Li <liphhz@yahoo.com>
> writes:
> 
> Peihong> Thx, Dan I have setup the registers for
> SDRAM -
> Peihong> SDCONF(@0x80002300)=0x00000522 and
> Peihong> SDRFPR(@80002340)=0x00000102.  Is there
> anything else for
> Peihong> SDRAM init?
> 
> SDRAM init usually involves writing mode data to the
> SDRAMs themselves
> too. Don't ask me how to do it for your board
> though.
> 
> Jesper


__________________________________________________
Do You Yahoo!?
Get email alerts & NEW webcam video instant messaging with Yahoo! Messenger
http://im.yahoo.com

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [ECOS] Problem in modify ecos for EDB7312
  2001-09-04 19:11 ` Peihong Li
@ 2001-09-04 23:44   ` Jesper Skov
  2001-09-05  1:54     ` Peihong Li
  0 siblings, 1 reply; 6+ messages in thread
From: Jesper Skov @ 2001-09-04 23:44 UTC (permalink / raw)
  To: Peihong Li; +Cc: ecos-discuss, danc

>>>>> "Peihong" == Peihong Li <liphhz@yahoo.com> writes:

Peihong> Thx, Dan I have setup the registers for SDRAM -
Peihong> SDCONF(@0x80002300)=0x00000522 and
Peihong> SDRFPR(@80002340)=0x00000102.  Is there anything else for
Peihong> SDRAM init?

SDRAM init usually involves writing mode data to the SDRAMs themselves
too. Don't ask me how to do it for your board though.

Jesper

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [ECOS] Problem in modify ecos for EDB7312
       [not found] <00a601c135ae$d0e2f140$4e09a43d@lphnotebook>
@ 2001-09-04 19:11 ` Peihong Li
  2001-09-04 23:44   ` Jesper Skov
  0 siblings, 1 reply; 6+ messages in thread
From: Peihong Li @ 2001-09-04 19:11 UTC (permalink / raw)
  To: ecos-discuss; +Cc: danc

Thx, Dan
I have setup the registers for SDRAM -
SDCONF(@0x80002300)=0x00000522 and
SDRFPR(@80002340)=0x00000102.
Is there anything else for SDRAM init?

Peihong Li

> ----- Original Message ----- 
> From: "Dan Conti" <danc@iobjects.com>
> To: <ecos-discuss@sources.redhat.com>
> Sent: Wednesday, September 05, 2001 2:16 AM
> Subject: RE: [ECOS] Problem in modify ecos for
> EDB7312
> 
> 
> Are you initializing the sdram controller? You can't
> use the on board
> sdram until you do, and chances are gdb wont load at
> all until sdram is
> available.
> 
> > -----Original Message-----
> > From: Peihong Li [ mailto:liphhz@yahoo.com ]
> > Sent: Monday, September 03, 2001 10:56 AM
> > To: ecos-discuss@sources.redhat.com
> > Subject: [ECOS] Problem in modify ecos for EDB7312
> > 
> > 
> > All,
> > I am trying to modify ecos V1.3 (based on the
> > edb7212's) for my edb7312. What I have done on
> > hal_platform_setup.h is as follow:
> >  
> > ......
> >  #define INIT_MEMORY_CONFIG         \
> >  /* Initialize memory configuration  ;\
> >  ldr r1,=MEMCFG1            ;\
> >  //*** ldr r2,=0x8200A080         ;\
> >  ldr r2,=0x1f101710 ;\
> >  str r2,[r1]                 ;\
> >  ldr r1,=MEMCFG2             ;\
> >  //*** ldr r2,=0xFEFC0000     ;\
> >  ldr r2,=0x00001f13     ;\
> >  str r2,[r1]            ;\
> >  //*** ldr r1,=DRFPR          ;\
> >  //*** ldr r2,=0x81 /*DRAM refresh=64KHz */  
>    ;\
> >  //*** strb r2,[r1] ;\
> >  ldr r1,=0x80002300 ;\
> >  ldr r2,=0x00000522 ;\
> >  str r2,[r1] ;\
> >  ldr r1,=0x80002340 ;\
> >  ldr r2,=0x00000240 ;\
> >  str r2,[r1]
> >  #endif
> > ......
> > 
> > But it still cannot connect with arm-elf-gdb. Who
> can
> > tell me why?
> > 
> > Thanks,
> > 
> > Peihong Li


__________________________________________________
Do You Yahoo!?
Get email alerts & NEW webcam video instant messaging with Yahoo! Messenger
http://im.yahoo.com

^ permalink raw reply	[flat|nested] 6+ messages in thread

* RE: [ECOS] Problem in modify ecos for EDB7312
@ 2001-09-04 11:16 Dan Conti
  0 siblings, 0 replies; 6+ messages in thread
From: Dan Conti @ 2001-09-04 11:16 UTC (permalink / raw)
  To: ecos-discuss

Are you initializing the sdram controller? You can't use the on board
sdram until you do, and chances are gdb wont load at all until sdram is
available.

> -----Original Message-----
> From: Peihong Li [ mailto:liphhz@yahoo.com ]
> Sent: Monday, September 03, 2001 10:56 AM
> To: ecos-discuss@sources.redhat.com
> Subject: [ECOS] Problem in modify ecos for EDB7312
> 
> 
> All,
> I am trying to modify ecos V1.3 (based on the
> edb7212's) for my edb7312. What I have done on
> hal_platform_setup.h is as follow:
>  
> ......
>  #define INIT_MEMORY_CONFIG         \
>  /* Initialize memory configuration  ;\
>  ldr r1,=MEMCFG1            ;\
>  //*** ldr r2,=0x8200A080         ;\
>  ldr r2,=0x1f101710 ;\
>  str r2,[r1]                 ;\
>  ldr r1,=MEMCFG2             ;\
>  //*** ldr r2,=0xFEFC0000     ;\
>  ldr r2,=0x00001f13     ;\
>  str r2,[r1]            ;\
>  //*** ldr r1,=DRFPR          ;\
>  //*** ldr r2,=0x81 /*DRAM refresh=64KHz */      ;\
>  //*** strb r2,[r1] ;\
>  ldr r1,=0x80002300 ;\
>  ldr r2,=0x00000522 ;\
>  str r2,[r1] ;\
>  ldr r1,=0x80002340 ;\
>  ldr r2,=0x00000240 ;\
>  str r2,[r1]
>  #endif
> ......
> 
> But it still cannot connect with arm-elf-gdb. Who can
> tell me why?
> 
> Thanks,
> 
> Peihong Li
> 
> 
> 
> __________________________________________________
> Do You Yahoo!?
> Get email alerts & NEW webcam video instant messaging with 
> Yahoo! Messenger
> http://im.yahoo.com
> 

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [ECOS] Problem in modify ecos for EDB7312
@ 2001-09-03 10:56 Peihong Li
  0 siblings, 0 replies; 6+ messages in thread
From: Peihong Li @ 2001-09-03 10:56 UTC (permalink / raw)
  To: ecos-discuss

All,
I am trying to modify ecos V1.3 (based on the
edb7212's) for my edb7312. What I have done on
hal_platform_setup.h is as follow:
 
......
 #define INIT_MEMORY_CONFIG         \
 /* Initialize memory configuration  ;\
 ldr r1,=MEMCFG1            ;\
 //*** ldr r2,=0x8200A080         ;\
 ldr r2,=0x1f101710 ;\
 str r2,[r1]                 ;\
 ldr r1,=MEMCFG2             ;\
 //*** ldr r2,=0xFEFC0000     ;\
 ldr r2,=0x00001f13     ;\
 str r2,[r1]            ;\
 //*** ldr r1,=DRFPR          ;\
 //*** ldr r2,=0x81 /*DRAM refresh=64KHz */      ;\
 //*** strb r2,[r1] ;\
 ldr r1,=0x80002300 ;\
 ldr r2,=0x00000522 ;\
 str r2,[r1] ;\
 ldr r1,=0x80002340 ;\
 ldr r2,=0x00000240 ;\
 str r2,[r1]
 #endif
......

But it still cannot connect with arm-elf-gdb. Who can
tell me why?

Thanks,

Peihong Li



__________________________________________________
Do You Yahoo!?
Get email alerts & NEW webcam video instant messaging with Yahoo! Messenger
http://im.yahoo.com

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2001-09-05  1:54 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-09-03 10:45 [ECOS] Problem in modify ecos for EDB7312 Peihong Li
2001-09-03 10:56 Peihong Li
2001-09-04 11:16 Dan Conti
     [not found] <00a601c135ae$d0e2f140$4e09a43d@lphnotebook>
2001-09-04 19:11 ` Peihong Li
2001-09-04 23:44   ` Jesper Skov
2001-09-05  1:54     ` Peihong Li

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).