This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Configuring serial ports for Redboot and GDB


On Tue, 2004-07-06 at 20:00, Miguel J. Vega wrote:
> 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?

This is how it is supposed to work - all "console" output through GDB
goes via the debug channel.

If you want to have a debug channel (used by GDB and diag_printf()), and
separate other channel for printf() to use (of course, this would 
require two serial connections), then you'll need to do some 
configuring.  

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


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]