leon3 console driver output processing

Cláudio Silva claudiodcsilva at gmail.com
Mon Nov 19 14:00:13 UTC 2012


That seems something on the protocol level... Are you using the
Console or APBuart directly?
I don't think the driver is doing it, maybe termios...
A quick google search finds that those are PPP escape characters.

Cláudio

On Mon, Nov 19, 2012 at 1:00 PM, Ajish Babu <babu.ajish at googlemail.com> wrote:
> Hello Claudio,
>
> Thanks a lot ... Half of the problem is fixed now. '\n' is not appended with
> '\r' anymore.
>
> But I still have the problem that 0x7D is appended with 0x5D or 0x5E. Where
> is this happening? How do I diable it?
>
> regards
> Ajish
>
>
>
> On 11/19/2012 12:46 PM, Cláudio Silva wrote:
>>
>> 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