This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: Serial ports on SA-1100
- From: Andrew Lunn <andrew dot lunn at ascom dot ch>
- To: "Schumacher, Gordon" <gordon_schumacher at maxtor dot com>
- Cc: "'ecos-discuss at sources dot redhat dot com'" <ecos-discuss at sources dot redhat dot com>
- Date: Thu, 31 Oct 2002 09:20:50 +0100
- Subject: Re: [ECOS] Serial ports on SA-1100
- References: <E836CBDA0DC0D5118606009027DE2A0C983C0E@mcoexc02.mlm.maxtor.com>
On Wed, Oct 30, 2002 at 03:55:48PM -0700, Schumacher, Gordon wrote:
> I have an custom-port SA-1100 based system which appears to be (otherwise)
> functioning properly. I'm trying to do some serial I/O in my main()
> function. I've tried reading and writing data to either /dev/ttydiag
> (pointed to port 0) or to /dev/ser1, but in both cases the cyg_io_lookup
> works fine, and cyg_io_write and cyg_io_read return -EDEVNOSUPP (-202).
Probably the simplist way to track down this problem is to single step
you way through the write call on /dev/ser1. When you get to a return
-EDEVNOSUPP you should know what the problem is.Don't try this on
/dev/ttydiag, or you get into the problem to debugging the serial port
the debug info is passed over...
Andrew
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss