public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
From: Gary Thomas <gary@mlbassoc.com>
To: Ricardo Andrino <ricardo_andrino@web.de>
Cc: ecos-discuss@sources.redhat.com
Subject: Re: [ECOS] /dev/serx device driver
Date: Wed, 10 Dec 2003 11:14:00 -0000	[thread overview]
Message-ID: <1071054847.16658.192.camel@hermes> (raw)
In-Reply-To: <200312101059.hBAAxFQ19854@mailgate5.cinetic.de>

On Wed, 2003-12-10 at 03:59, Ricardo Andrino wrote:
> 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. 

So, why don't you just install RedBoot?  Then your problems will be 
solved.  If you must run via Angel, then you need to make sure that
  CYGSEM_HAL_USE_ROM_MONITOR 
it not set.

> 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 ?

/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?

/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?

These are not related at all.  The devices on your target board
have nothing to do with the devices which show up on your desktop.

> 
> 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.

Install RedBoot -> be happy :-)

-- 
Gary Thomas <gary@mlbassoc.com>
MLB Associates


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

      reply	other threads:[~2003-12-10 11:14 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-12-10 10:59 Ricardo Andrino
2003-12-10 11:14 ` Gary Thomas [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1071054847.16658.192.camel@hermes \
    --to=gary@mlbassoc.com \
    --cc=ecos-discuss@sources.redhat.com \
    --cc=ricardo_andrino@web.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).