[ECOS] Serial Console application - iq80310

Jonathan Larmour jlarmour@redhat.com
Mon Oct 22 08:24:00 GMT 2001


Shlomi wrote:
> 
> I try to develop a serial console application for the iq80310.
> I use dev/ttydiag.
> Output to the console is fine but input from the console does not work
> properly.
> If interrupts are disabled while performing cyg_io_read then it works
> fine.
> But if the interrupts are enabled it does not work. Input is not read,
> and one in about 10 to 20 keystrokes an unexpected input is character is
> obtained.

The diag channel is probably being used for ctrl-c support. Look at
hal/arm/iq80310/current/src/hal_diag.c:cyg_hal_plf_serial_isr. There's no
(simple) way to pass that to anything polling on the channel. Disabling GDB
ctrl-c support might be sufficient.

> Here is the relevant code.

Consider using the _real_ serial driver for the iq80310 rather than the
diag one.

Jifl
-- 
Red Hat, Rustat House, Clifton Road, Cambridge, UK. Tel: +44 (1223) 271062
Maybe this world is another planet's Hell -Aldous Huxley || Opinions==mine



More information about the Ecos-discuss mailing list