public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* [ECOS] Fast serial debugging
@ 2000-07-24 12:46 Fabrice Gautier
  2000-07-25  2:59 ` Jesper Skov
  0 siblings, 1 reply; 5+ messages in thread
From: Fabrice Gautier @ 2000-07-24 12:46 UTC (permalink / raw)
  To: Ecos-List (E-mail)

Hi,
It is said in the docs that the eCos gdb stubs works at 38400 bps. 

And I'm trying to  go faster. At 115200.I'm using an ARM PID board that
support that speed with the ARM tools. 

So I tried to recompile the gdb stub setting serial  speed at 115200 in the
configuration tool.( defines CYGHWR_HAL_ARM_PID_GDB_BAUD and
CYGHWR_HAL_ARM_PID_DIAG_BAUD)

But not i'm sure this setting impact on the stub speed. For when i try to
connect at 115200 it fails. 

I'm not sure too if eCos library, or the flash tool, have to be compiled
with the same serial speed.

Another (minor) problem that i saw is that the legal values for the serial
speed in the conf tool are 9600, 19200, 38400 or 115200 while insight GUI
only offer 9600, 19200, 38400, 57600 (but I set 115200 with the console). So
why eCos doesn't offer 57600 and Insoght doesn't offer 115200? 

Thanks

A+
-- 
Fabrice Gautier
fabrice_gautier@sdesigns.com 




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

* Re: [ECOS] Fast serial debugging
  2000-07-24 12:46 [ECOS] Fast serial debugging Fabrice Gautier
@ 2000-07-25  2:59 ` Jesper Skov
  0 siblings, 0 replies; 5+ messages in thread
From: Jesper Skov @ 2000-07-25  2:59 UTC (permalink / raw)
  To: Fabrice Gautier; +Cc: Ecos-List (E-mail)

>>>>> "Fabrice" == Fabrice Gautier <Fabrice_Gautier@sdesigns.com> writes:

Fabrice> Hi, It is said in the docs that the eCos gdb stubs works at
Fabrice> 38400 bps.

Fabrice> And I'm trying to go faster. At 115200.I'm using an ARM PID
Fabrice> board that support that speed with the ARM tools.

Fabrice> So I tried to recompile the gdb stub setting serial speed at
Fabrice> 115200 in the configuration tool.( defines
Fabrice> CYGHWR_HAL_ARM_PID_GDB_BAUD and CYGHWR_HAL_ARM_PID_DIAG_BAUD)

Fabrice> But not i'm sure this setting impact on the stub speed. For
Fabrice> when i try to connect at 115200 it fails.

Have you tried connecting using a terminal emulator? It could just be
that the board cannot keep up at 115200 - I don't think it's using the
FIFO.

Fabrice> I'm not sure too if eCos library, or the flash tool, have to
Fabrice> be compiled with the same serial speed.

It doesn't.

Fabrice> Another (minor) problem that i saw is that the legal values
Fabrice> for the serial speed in the conf tool are 9600, 19200, 38400
Fabrice> or 115200 while insight GUI only offer 9600, 19200, 38400,
Fabrice> 57600 (but I set 115200 with the console). So why eCos
Fabrice> doesn't offer 57600 and Insoght doesn't offer 115200?

eCos should be able to handle 57600. It may be that it has failed to
do so in tests - and so has been disabled in the config. That would be
a mistake. Try adding it to the CDL and see if it behaves correctly.

Jesper

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

* RE: [ECOS] Fast serial debugging
@ 2000-07-26 16:45 Fabrice Gautier
  0 siblings, 0 replies; 5+ messages in thread
From: Fabrice Gautier @ 2000-07-26 16:45 UTC (permalink / raw)
  To: Fabrice Gautier, Ecos-List (E-mail)

> -----Original Message-----
> From: Fabrice Gautier [ mailto:Fabrice_Gautier@sdesigns.com ]
> Subject: RE: [ECOS] Fast serial debugging
> 
> Well, finally I succeded in running at 57600 (I will try at 115200). I
> recompiled the stubs with a new build tree. 
> It's look like there is something wrong with the Config tool 
> when changing
> the configuration. But it may be also that I did something wrong when
> flashing and connecting GDB.

One more important thing to do in order to have full debugging support is to
set the baud rate of your eCos library to the same that you set the GDB
stub. 
I suspect this is only required when you have the stub included in the HAL.

If I don't do that I'm still abble to connect and load put GDB hangs when I
run.

A+ 

Regards

-- 
Fabrice Gautier
fabrice_gautier@sdesigns.com 

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

* RE: [ECOS] Fast serial debugging
@ 2000-07-26 16:24 Fabrice Gautier
  0 siblings, 0 replies; 5+ messages in thread
From: Fabrice Gautier @ 2000-07-26 16:24 UTC (permalink / raw)
  To: Ecos-List (E-mail)

> -----Original Message-----
> From: Fabrice Gautier [ mailto:Fabrice_Gautier@sdesigns.com ]
> Subject: RE: [ECOS] Fast serial debugging
>  
> > eCos should be able to handle 57600. It may be that it has failed to
> > do so in tests - and so has been disabled in the config. 
> > That would be a mistake. Try adding it to the CDL and see if it behaves
> > correctly.
> 
> I added to the config, plus I had to modify two files (plf_stub.c and
> hal_diag.c) to add the correct programming for 56K. By the 
> way this is the
> same duplicated code that I had to modify in those two files.
> 
> Then I recompiled the whole at 57600, and it doesn't work at 
> 56K. But it does work at 38400.
> So I guess the stub serial driver doesn't use the same code 
> than the HAL serial driver.

Well, finally I succeded in running at 57600 (I will try at 115200). I
recompiled the stubs with a new build tree. 
It's look like there is something wrong with the Config tool when changing
the configuration. But it may be also that I did something wrong when
flashing and connecting GDB.

Thanks

A+
-- 
Fabrice Gautier
fabrice_gautier@sdesigns.com 

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

* RE: [ECOS] Fast serial debugging
@ 2000-07-26 14:21 Fabrice Gautier
  0 siblings, 0 replies; 5+ messages in thread
From: Fabrice Gautier @ 2000-07-26 14:21 UTC (permalink / raw)
  To: 'Jesper Skov'; +Cc: Ecos-List (E-mail)

> -----Original Message-----
> From: Jesper Skov [ mailto:jskov@redhat.com ]
> Subject: Re: [ECOS] Fast serial debugging
> 
> Have you tried connecting using a terminal emulator? It could just be
> that the board cannot keep up at 115200 - I don't think it's using the
> FIFO.

From the board manual, this is a ST16C552 UART with FIFO. And, according to
the manual the baud generator can be programmed to 56K or 115.2K as well as
38.4K. 

And we are abble to connect to the Angel monitor on this board with the ARM
dev tools. But it was not very reliable. ( The board User Guide say % ERROR
=2.77 for 56K...)
 
> eCos should be able to handle 57600. It may be that it has failed to
> do so in tests - and so has been disabled in the config. That would be
> a mistake. Try adding it to the CDL and see if it behaves correctly.

I added to the config, plus I had to modify two files (plf_stub.c and
hal_diag.c) to add the correct programming for 56K. By the way this is the
same duplicated code that I had to modify in those two files.

Then I recompiled the whole at 57600, and it doesn't work at 56K. But it
does work at 38400.
So I guess the stub serial driver doesn't use the same code than the HAL
serial driver.

thanks

A+
-- 
Fabrice Gautier
fabrice_gautier@sdesigns.com 

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

end of thread, other threads:[~2000-07-26 16:45 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-07-24 12:46 [ECOS] Fast serial debugging Fabrice Gautier
2000-07-25  2:59 ` Jesper Skov
2000-07-26 14:21 Fabrice Gautier
2000-07-26 16:24 Fabrice Gautier
2000-07-26 16:45 Fabrice Gautier

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).