This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Problem in writing to /dev/ttyS1
- From: Giri Raja <giri_amf at yahoo dot com>
- To: ecos-discuss at ecos dot sourceware dot org
- Date: Fri, 9 Apr 2004 14:48:05 -0700 (PDT)
- Subject: [ECOS] Problem in writing to /dev/ttyS1
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.
I'm using a linux machine for the GDB end a windows
laptop for the hyperterminal, would this be a problem.
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
I do see a
package -template CYGPKG_IO_SERIAL current ;
and
cdl_component CYGPKG_IO_SERIAL_DEVICES {
# Flavor: bool
user_value 1
in my .ecc file.
I'm clueless here, can someone tell me where I'm going
wrong.
Thanks.
Giri
__________________________________
Do you Yahoo!?
Yahoo! Small Business $15K Web Design Giveaway
http://promotions.yahoo.com/design_giveaway/
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss