public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* [ECOS] aeb
@ 2001-01-24  8:20 Natarajan, Mekala (CTS)
  2001-01-24 11:12 ` Jonathan Larmour
  0 siblings, 1 reply; 2+ messages in thread
From: Natarajan, Mekala (CTS) @ 2001-01-24  8:20 UTC (permalink / raw)
  To: 'ecos-discuss@sources.redhat.com'

Hi,
	i am using aeb-1 rev-b as my target platform. It has got only one
serial port.
i referred the previous mailing list. it says with one serial port it is not
possible to get a character since the serial port is used by gdb. I have a
doubt regarding this. If we give printf it is printing the characters in the
console. Printing is again through serial port i guess. how is this
happening.
Can someone help on this.

i am not able to a character from input.
i tried using getchar(), hal_diag_read_char();it doesn't work..




This e-mail and any files transmitted with it are for the sole use of the intended recipient(s) and may contain confidential and privileged information.
If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message. 
Any unauthorised review, use, disclosure, dissemination, forwarding, printing or copying of this email or any action taken in reliance on this e-mail is strictly 
prohibited and may be unlawful.

		Visit us at http://www.cognizant.com

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [ECOS] aeb
  2001-01-24  8:20 [ECOS] aeb Natarajan, Mekala (CTS)
@ 2001-01-24 11:12 ` Jonathan Larmour
  0 siblings, 0 replies; 2+ messages in thread
From: Jonathan Larmour @ 2001-01-24 11:12 UTC (permalink / raw)
  To: Natarajan, Mekala (CTS); +Cc: 'ecos-discuss@sources.redhat.com'

"Natarajan, Mekala (CTS)" wrote:
> 
> Hi,
>         i am using aeb-1 rev-b as my target platform. It has got only one
> serial port.
> i referred the previous mailing list. it says with one serial port it is not
> possible to get a character since the serial port is used by gdb. I have a
> doubt regarding this. If we give printf it is printing the characters in the
> console. Printing is again through serial port i guess. how is this
> happening.

You mean the output is happening through GDB. The point is that this output
is encoded in a GDB packet, received by GDB and displayed by GDB.

> Can someone help on this.
> 
> i am not able to a character from input.
> i tried using getchar(), hal_diag_read_char();it doesn't work..

GDB doesn't support getting characters from the keyboard and sending them
over serial to the target.

If you require serial input, you will have to disconnect from GDB and use
the serial port directly. You will also need to enable the eCos serial
device driver on the AEB.

Jifl
-- 
Red Hat, Rustat House, Clifton Road, Cambridge, UK. Tel: +44 (1223) 271062
Un cheval, pas du glue. Pas du cheval, beaucoup du glue. || Opinions==mine

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2001-01-24 11:12 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-01-24  8:20 [ECOS] aeb Natarajan, Mekala (CTS)
2001-01-24 11:12 ` Jonathan Larmour

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