This is the mail archive of the ecos-devel@sourceware.org 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]
Other format: [Raw text]

Re: Serial VS Diagnostic interface


"damien millescamps" <damien.millescamps@gmail.com> writes:

> On Wed, Jan 14, 2009 at 2:24 PM, Chris Zimman <czimman@bloomberg.com> wrote:
> >> Actually as it just inline code. I have already checked it is
> >> correctly included. Maybe I should have been more explicit: Is there
> >> anything to ensure the HW serial driver is correctly initialized ?
> >> Where should pc_serial_lookup() be called in a normal behavior ?
> >
> > If you can build the serial tests and they pass, you should be in good shape.
> > Alternatively, if opening "/dev/ser0" succeeds, you're good to go.
> >
> 
> opening /dev/ser0 results in an error. Now that I know it should
> normally work, I can start to instrument a little bit to find out why
> it doesn't work for me.

The most common problem with serial devices is not enabling
CYGPKG_IO_SERIAL_DEVICES. Obviously you also have to include the
CYGPKG_IO_SERIAL package too.

Note that AT91 serial devices cannot be shared between diagnostics and
serial drivers. So if you want to continue using diagnostics on a
particular UART, you need to disable it for the drivers.


-- 
Nick Garnett                                      eCos Kernel Architect
eCosCentric Limited    http://www.eCosCentric.com      The eCos experts
Barnwell House, Barnwell Drive, Cambridge, UK.     Tel: +44 1223 245571
Registered in England and Wales:                        Reg No: 4422071


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