<div dir="ltr"><div>Hi all,</div><div><br></div><div>I'm trying to get back into some embedded development using RTEMS after a number of years away and have resurrected an old project using the Beaglebone black as a starting point.</div><div><br></div><div>I have built the latest RTEMS and have some test applications running on the board ok, but today I was trying to build a basic UI task and try as I might I can't read input from the console.</div><div><br></div><div>I'm using the following code in the Init task:</div><div><br></div><div>     char buf[80] = "";<br>  char *cmd, *sval, *rval;<br>      printf("cmd: ");<br><br>  rval = fgets(buf, 80, stdin);<br> if (rval == NULL) {<br>           printf("fgets returned NULL\n");<br>    } else {<br>              printf("fgets returned %s\n", rval);<br>        }<br><br>   printf("buf = %s\n", buf);</div><div>     cmd = strtok(buf, " \t\n");<br> printf("cmd = %s\n", cmd);</div><div><br></div><div>which outputs:</div><div><br></div><div>Starting kernel ...<br><br><br>RTEMS Beagleboard: am335x-based<br>        ARM Debug: 0x4b141000<br>Starting Motor Testing<br>cmd: fgets returned NULL<br>buf = <br>cmd = (null)<br></div><div><br></div><div>I know the hardware connections are fine as I can use the Linux console ok. <br></div><div><br></div><div>Am I doing something stupid, or is the console driver for this BSP not working as expected?</div><div><br></div><div>Many thanks for any advice you can provide!</div><div>Cheers,</div><div>James</div><div><br></div><div><br></div></div>