[ECOS] Serial interface problem

Roland Caßebohm roland.cassebohm@visionsystems.de
Wed Feb 11 16:45:00 GMT 2004


Hello,

I have found the problem, it seems that the UART does not generate
an interrupt befor the first time a character was send.

After making the attached change it works.

I will make the same patch to the e7t driver and send it to ecos-patches.

Roland

On Mittwoch, 11. Februar 2004 15:16, Roland Caßebohm wrote:
> Hello,
>
> maybe do I have to set "Claim comms virtual vector" in my application?
>
> Roland
>
> On Mittwoch, 11. Februar 2004 13:06, Roland Caßebohm wrote:
> > Hello,
> >
> > I have a problem using the serial interface on our new
> > S3C4510 based platform.
> >
> > I use a copy of the serial driver for the internal UARTS
> > from the e7t platform. It works, but if I configure
> > RedBoot to only use the first UART by disabling
> > CYGPKG_REDBOOT_ANY_CONSOLE, the second UART don't work
> > anymore in my application.
> >
> > If application sends some character s3c4510_serial_start_xmit()
> > gets called and in it the transmit interrupt will be unmasked,
> > but the ISR are never called.
> >
> > // Enable the transmitter on the device
> > static void
> > s3c4510_serial_start_xmit(serial_channel *chan)
> > {
> >     s3c4510_serial_info *s3c4510_chan =
> >             (s3c4510_serial_info *)chan->dev_priv;
> >     s3c4510_chan->tx_enabled = true;
> >     cyg_drv_interrupt_unmask(s3c4510_chan->tx_int_num);
> > }
> >
> > If I look in the registers of the UARTs, both UARTs are
> > configured equal with rx and tx irq enabled.
> >
> > If I look at the interrupt mask register it stay unmasked
> > for the tx interrupt of second port.
> >
> > It seems like RedBoot gets the interrupt but don't give
> > it to the application.
> >
> > Does anybody know what could be wrong?
> >
> > Roland
-------------- next part --------------
A non-text attachment was scrubbed...
Name: devs_serial_s3c4510.diff
Type: text/x-diff
Size: 1061 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/ecos-discuss/attachments/20040211/8075613f/attachment.bin>
-------------- next part --------------
-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss


More information about the Ecos-discuss mailing list