This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Configuring serial ports for Redboot and GDB
- From: "Miguel J. Vega" <mserrano at engin dot umich dot edu>
- To: ecos-discuss at sources dot redhat dot com
- Cc: gary at mlbassoc dot com
- Date: Tue, 6 Jul 2004 22:00:01 -0400 (EDT)
- Subject: [ECOS] Configuring serial ports for Redboot and GDB
Hi Gary and list,
I have built redboot with CYGPKG_REDBOOT_ANY_CONSOLE disabled, debugging
serial port set to channel 0 (serial port 1 on board), diagnostic serial
port set to channel 1 (serial port 2 on board). I disabled
CYGPKG_REDBOOT_ANY_CONSOLE to simplify things and spare myself some
confusion.
When I start up, redboot's output (redboot start-up banner, commands,
etc.) comes from the debug port, which I assume is correct. I also use
this port to communicate with the GDB-console (load, continue, inserting
breakpoints, etc.). The only thing that I was not expecting was for the
printf() functions (when I am running programs from GDB) to output through
the diagnostic port. This output appears on a hyperterminal window that
I have open on another PC, since I only have one com port available on
each PC.
I would like for the printf() output to go to the GDB-console,
but the GDB-console currently communicates to the board via the debugging
port. Any ideas on how I can make it happen?
By the way I am building eCos programs with a default eCos build and the
option "work with a ROM monitor" is checked.
Thanks,
Miguel J. Vega
FEGI C&DH Team
University of Michigan
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss