I'm using and MCF52211 EVB and want to print and retrieve characers from the console provided by the conosloe_internal_ram target (UART's are already assigned). printf statements work without a problem, but getchar(), getc() doesn't work properly. It seems like the characters are being buffered in one of the library's buffer somewhere , but not sure. The same thing works on internal flash but not console_internal_ram.
For example:
for ( ; ; )
{
while (array1[n++] != '\r')// && (n<buffer_size))
{
array1[n++] = getc();
}
printf("The command entered was: ");
array1[(cmd_buffer_size-1)]='\0';
puts (array1);
}
Any ideas? Thanx