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]
Other format: [Raw text]

Re: Problem in writing to /dev/ttyS1


On Fri, Apr 09, 2004 at 02:48:05PM -0700, Giri Raja wrote:
> Hi,
>    I'm unable to write anything on the Serial B on
> eb40a. 
> I used the graphical configuration tool, and enabled
> Hardware and TTY-Mode Serial device drivers for
> /dev/ttyS1. I'm using /dev/haldiag for the other
> serial port, and using GDB to communicate with the
> board. That part is working fine and I'm getting no
> errors when I do 
> 
> cyg_io_lookup("/dev/ser1", &serial2);
> 
> But when I try to write a test string to this serial2,
> nothing is getting printed on the hyperterminal.

Why not use gdb to trace the write call. See if the characters are
reaching the device. 
 
> I'm using a linux machine for the GDB end a windows
> laptop for the hyperterminal, would this be a problem.

Nope.

> 
> There was another mail, quoting the same problem --
> 
> http://sources.redhat.com/ml/ecos-discuss/2004-03/msg00010.html
> and the remedy was to enable CYGPKG_IO_SERIAL_DEVICES

You must have this enabled or you would of gotten an error with the
lookup.
        
        Andrew

-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss


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