console_internal_ram getchar

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

console_internal_ram getchar

1,027 Views
spartan
Contributor I

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

Labels (1)
0 Kudos
Reply
1 Reply

429 Views
spartan
Contributor I
This is running on CodeWarrior for Coldfire V 7.1
0 Kudos
Reply