public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
From: Grant Edwards <grante@visi.com>
To: Jesper Skov <jskov@cambridge.redhat.com>
Cc: ecos-discuss@sources.redhat.com
Subject: Re: [ECOS] Separate console and debug ports?
Date: Thu, 08 Mar 2001 06:57:00 -0000	[thread overview]
Message-ID: <20010308090146.A28096@visi.com> (raw)
In-Reply-To: <ot7l20g2cs.fsf@thinktwice.zoftcorp.dk>

On Thu, Mar 08, 2001 at 08:13:23AM +0100, Jesper Skov wrote:

> Grant> separate ports for GDB debugging and for console I/O.  I've got
> Grant> two diagnostic serial ports, so I'm trying to configure RedBoot
> Grant> to use one for console I/O and the other for GDB debugging.
> 
> Grant> I guess I need to set CYGPKG_REDBOOT_ANY_CONSOLE to 0 (will
> Grant> that disable console on TCP port 9000?).  I can't figure out
> Grant> how to tell it to use diag serial port 0 for console and port 1
> Grant> for debugger.  Can anybody loan me a clue?
> 
> You're looking for the CYGNUM_HAL_VIRTUAL_VECTOR_DEBUG_CHANNEL and
> CYGNUM_HAL_VIRTUAL_VECTOR_CONSOLE_CHANNEL options.
> 
> You also need to disable CYGSEM_HAL_VIRTUAL_VECTOR_INHERIT_CONSOLE and
> CYGDBG_HAL_DIAG_TO_DEBUG_CHAN.

Thanks.  I've got serial gdb debugging working on the console
channel, so I'm going to try to split the diag and debug
channels next.

In order to avoid loosing input characters I got rid of the
timeouts in RedBoot's gets(), so now if there's no input on a
UART, it doesn't delay. It checks the next UART (or the
network) immediately.  I don't understand the purpose of the
delay after checking a UART -- my configuration works a lot
better without them.  

Since nobody is calling the 1ms delay routine that updates the
system time, I did have to add to the main loop a call to a new
routine in ticks.c to advance the system by about 80us
everytime through the loop.  The unfortunate thing about that
setup is that you have to tune the "system time adjust" value
by hand to get a reasonably accurate system time.

But, ping resonse time is 1-2 ms and I never loose console
characters at 57.6K baud.  :)

-- 
Grant Edwards
grante@visi.com

  reply	other threads:[~2001-03-08  6:57 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-03-07 14:37 Grant Edwards
2001-03-07 23:13 ` Jesper Skov
2001-03-08  6:57   ` Grant Edwards [this message]
2001-03-13 12:26     ` Jonathan Larmour
2001-03-13 12:32       ` Grant Edwards

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=20010308090146.A28096@visi.com \
    --to=grante@visi.com \
    --cc=ecos-discuss@sources.redhat.com \
    --cc=jskov@cambridge.redhat.com \
    /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).