leon3 console driver output processing

Cláudio Silva claudiodcsilva at gmail.com
Mon Nov 19 11:46:58 UTC 2012


Hello, Ajish,

Sorry, that documentation is for Gaisler's RTEMS version that is not
yet merged to RTEMS and has the driver manager.

You can find the older documentation here:
http://gaisler.com/anonftp/rcc/doc/rtems-gaisler-drivers-1.0.2.pdf

You will need to register the apbuart driver using:
"apbuart_register(&amba_conf)" as described in the above document.
Using the apbuart driver concurrently with the regular console
(printf...) may lead to problems....

Alternatively, you can edit the console code so it stops appending the
'\r'. I think you can do so by editing the following file:
https://github.com/RTEMS/rtems/blob/master/c/src/lib/libbsp/sparc/leon3/console/printk_support.c
and changing the line 146 from "apbuart_outbyte_polled(dbg_uart, c, 1,
1);" to "apbuart_outbyte_polled(dbg_uart, c, 0, 1);"

Regards,
Cláudio


On Mon, Nov 19, 2012 at 11:21 AM, Ajish Babu <babu.ajish at googlemail.com> wrote:
> Hello,
>
> Claudio ... thanks for your response.
>
> I still can't get it to work. I tried int fd = open("/dev/apbuart0", O_RDWR)
> with different uart numbers, but it could not find anything. According to
> the driver documentation, I should use the driver-manager, but
> <drvmgr/drvmgr_confdefs.h> is not found.
>
> How can I enable this apbuart driver? I am using rtems version 4.11.
>
> regards
> Ajish
>
>
> _______________________________________________
> rtems-users mailing list
> rtems-users at rtems.org
> http://www.rtems.org/mailman/listinfo/rtems-users
>




More information about the users mailing list