Re: Console driver not working?

James Fitzsimons <[email protected]> Mon, 28 Apr 2025 22:29:19 +1200
Newsgroups gmane.os.rtems.user
Message-ID <CAPi7d=DUkGeMemx95Gwn5kTK0k2maEx3Nk4PvHVarQAWwxUDAQ@mail.gmail.com>
--===============1409249238091979410==
Content-Type: multipart/alternative; boundary="000000000000d23b910633d428b8"

--000000000000d23b910633d428b8
Content-Type: text/plain; charset="UTF-8"

Doing a bit more investigation this evening and it appears that the console
driver for the Beaglebone BSP isn't really implemented properly. Comparing
it with the raspraspberrypi and other bsps the console/console-config.c
file looks very different and doesn't implement the POSIX Termios support
per the latest documentation
https://docs.rtems.org/docs/main/bsp-howto/console.html

When I change my test application to use #define
CONFIGURE_APPLICATION_NEEDS_SIMPLE_CONSOLE_DRIVER instead of #define
CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER it does accept input (albeit
very unreliably).

It looks like if I want console input support for the Beaglebone BSP I am
going to have to implement a better console driver :-/

Cheers,
James


On Mon, 28 Apr 2025 at 13:30, James Fitzsimons <[email protected]>
wrote:

> Hi Chris,
>
> Thanks for your reply.
>
> On Mon, Apr 28, 2025, 09:50 Chris Johns <[email protected]> wrote:
>
>> I suggest you see if the `hello.exe` sample program runs? It would check
>> the low
>> level hardware interface.
>>
>
> The helloworld example works as expected. I actually have a fair amount of
> tracing data printing to the console just fine. It's only when I wanted to
> start reading input (to set some PID parameters) that I encountered
> problems.
>
> The fgets function just returns immediately with no content.
>
> Cheers,
> James
>
>>

--000000000000d23b910633d428b8
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div>Doing a bit more investigation this evening and it ap=
pears that the console driver for the Beaglebone BSP isn&#39;t really imple=
mented properly. Comparing it with the raspraspberrypi and other bsps the c=
onsole/console-config.c file looks very different and doesn&#39;t implement=
 the POSIX Termios support per the latest documentation <a href=3D"https://=
docs.rtems.org/docs/main/bsp-howto/console.html">https://docs.rtems.org/doc=
s/main/bsp-howto/console.html</a></div><div><br></div><div>When I change my=
 test application to use #define CONFIGURE_APPLICATION_NEEDS_SIMPLE_CONSOLE=
_DRIVER instead of #define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER it do=
es accept input (albeit very unreliably).</div><div><br></div><div>It looks=
 like if I want console input support for the Beaglebone BSP I am going to =
have to implement a better console driver :-/</div><div><br></div><div>Chee=
rs,</div><div>James</div><div><br></div><br><div class=3D"gmail_quote gmail=
_quote_container"><div dir=3D"ltr" class=3D"gmail_attr">On Mon, 28 Apr 2025=
 at 13:30, James Fitzsimons &lt;<a href=3D"mailto:[email protected]=
m">[email protected]</a>&gt; wrote:<br></div><blockquote class=3D"=
gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(20=
4,204,204);padding-left:1ex"><div dir=3D"auto"><div>Hi Chris,</div><div dir=
=3D"auto"><br></div><div dir=3D"auto">Thanks for your reply.<br><br><div cl=
ass=3D"gmail_quote" dir=3D"auto"><div dir=3D"ltr" class=3D"gmail_attr">On M=
on, Apr 28, 2025, 09:50 Chris Johns &lt;<a href=3D"mailto:[email protected]"=
 rel=3D"noreferrer noreferrer" target=3D"_blank">[email protected]</a>&gt; w=
rote:</div><blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.=
8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
I suggest you see if the `hello.exe` sample program runs? It would check th=
e low<br>
level hardware interface.<br></blockquote></div></div><div dir=3D"auto"><br=
></div><div dir=3D"auto">The helloworld example works as expected. I actual=
ly have a fair amount of tracing data printing to the console just fine. It=
&#39;s only when I wanted to start reading input (to set some PID parameter=
s) that I encountered problems.</div><div dir=3D"auto"><br></div><div dir=
=3D"auto">The fgets function just returns immediately with no content.</div=
><div dir=3D"auto"><br></div><div dir=3D"auto">Cheers,</div><div dir=3D"aut=
o">James=C2=A0</div><div dir=3D"auto"><div class=3D"gmail_quote" dir=3D"aut=
o"><blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;bord=
er-left:1px solid rgb(204,204,204);padding-left:1ex">
</blockquote></div></div></div>
</blockquote></div></div>

--000000000000d23b910633d428b8--

--===============1409249238091979410==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
users mailing list
[email protected]
http://lists.rtems.org/mailman/listinfo/users
--===============1409249238091979410==--