This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: Fast serial debugging


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]