This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
Re: Input from debug console
- From: Evgeniy Dushistov <dushistov at mail dot ru>
- To: "Michael W. Ellis" <mellis at pesa dot com>
- Cc: ecos-discuss at ecos dot sourceware dot org
- Date: Thu, 30 Jun 2016 19:09:01 +0300
- Subject: Re: Input from debug console
- "x-pgp-key: https://sks-keyservers.net/pks/lookup?op=vindex&search=dushistov%40mail.ru"
- Authentication-results: sourceware.org; auth=none
- References: <07FFDDED6CBCCE4E9FBD46AEC3EBFD4F02C50652 at exchange> <07FFDDED6CBCCE4E9FBD46AEC3EBFD4F02C50BB3 at exchange> <njumgc$p71$1 at ger dot gmane dot org> <07FFDDED6CBCCE4E9FBD46AEC3EBFD4F02C50BF3 at exchange> <njv6dn$ohb$1 at ger dot gmane dot org> <07FFDDED6CBCCE4E9FBD46AEC3EBFD4F02CA18F3 at exchange> <07FFDDED6CBCCE4E9FBD46AEC3EBFD4F02CA18FD at exchange>
On Thu, Jun 30, 2016 at 11:02:53AM -0500, Michael W. Ellis wrote:
> > -----Original Message-----
> > From: ecos-discuss-owner@ecos.sourceware.org [mailto:ecos-discuss-
> > owner@ecos.sourceware.org] On Behalf Of Michael W. Ellis
> > Sent: Thursday, June 30, 2016 9:54 AM
> > To: ecos-discuss@ecos.sourceware.org
> > Subject: [ECOS] Input from debug console
> >
> > My application calls diag_printf() to display information to the debug
> > console using serial port 0 of my processor. I would like to be able
> > to implement some simple diagnostics that are initiated through the
> > console port. Is it possible to accept input from the console? If
> so,
> > how is this done?
>
> Correction - I'm using the AT91SAM9260 processor and the debug console
> uses a serial port connected to the Debug Unit instead of serial port 0.
> The console device name is "/dev/ttydiag". Without writing new drivers,
> is it possible to get simple input from this port?
>
I read from /dev/dbgu on at91sam9363 using such code:
cyg_io_handle_t serialH;
err = cyg_io_lookup("/dev/dbgu", &serialH);
cyg_io_read(serialH,...);
--
/Evgeniy
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss