This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
/dev/serx device driver
- From: "Ricardo Andrino" <ricardo_andrino at web dot de>
- To: ecos-discuss at sources dot redhat dot com, gary at mlbassoc dot com
- Date: Wed, 10 Dec 2003 11:59:15 +0100
- Subject: [ECOS] /dev/serx device driver
- Organization: http://freemail.web.de/
Hello,
after several temptations i couldn't see the output of printf (hello.c) function without using Redboot. I don't know if that can be really made. My actual configuration is as follow:
*AT91EB40A
*Serial A, port 0
*COM of Pc to download the programs and connects to Angel Monitor:/dev/ttyS0
*CYGDAT_IO_SERIAL_TTY_CONSOLE = /dev/tty1 (my actual console)
*CYGDAT_IO_SERIAL_TTY_TTY1 = enable
*CYGDAT_IO_SERIAL_TTY_TTY1_DEV = /dev/ttyS0 or /dev/ser0 ?
*CYGPKG_IO_SERIAL_DEVICE = enable
*CYGPKG_IO_SERIAL_ARM_AT91_SERIAL0 = enable
*CYGPKG_IO_SERIAL_ARM_AT91_SERIAL0_NAME = /dev/ser0
*CYGDAT_LIBC_STDIO_DEFAULT_CONSOLE = /dev/ser0 or /dev/tty1?
When i type this command ls -lisa in the /dev directory no /dev/serx appear.I don't know if ecos make it or should i./dev/ser0 is the physical driver for port 0 isn't it?
I think that when the program running on the board finds a printf function must write the strings in the serial device output buffer and then send them to the /dev/ser0 (port 0 for the board?).The Pc must read them in /dev/ttyS0 and finally send them to a terminal, in my case /dev/tty1.is something wrong in all of this? Are all connection describing above correct? Why my program hangs up when runnig but is downloaded correct?
I do aprreciate any kind of help because i have tried to make it for 2 days without success.
Thanks a lot
______________________________________________________________________________
Horoskop, Comics, VIPs, Wetter, Sport und Lotto im WEB.DE Screensaver1.2
Kostenlos downloaden: http://screensaver.web.de/?mc=021110
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss