<div dir="ltr">Hi, I'm working with an ERC 32 target board and would like<br>to read strings or any characters in the serial input (UART).<br>regular C printf() function works well but when I try <br>fgets(), scanf() or fgetc() the board just does not get the string<br>or any character, is there any RTEMS specific ways to get<br>characters or strings through the standard serial port ?<br><br>a sample code:<br><br>#include <bsp.h><br>#include <stdlib.h><br>#include <stdio.h><br><br>char line[6];<br><br>rtems_task Init(<br>  rtems_task_argument ignored<br>)<br>{<br><br>    fgets(line,6,stdin);<br>    printf( "string: %s\n",line );<br>    <br>}<br><br>/* configuration information */<br><br>#define CONFIGURE_APPLICATION_DOES_NOT_NEED_CLOCK_DRIVER<br>#define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER<br><br>#define CONFIGURE_RTEMS_INIT_TASKS_TABLE<br>#define CONFIGURE_MAXIMUM_TASKS 1<br><br>#define CONFIGURE_INIT<br><br>#include <rtems/confdefs.h></div>