Fred Talbot

MCF51QE128RM getchar() doesn't return char

Discussion created by Fred Talbot on Feb 29, 2008
Latest reply on Mar 1, 2008 by CrasyCat
Hi, I'm trying to get a char coming from a RS232, and I don't receive anythin. I'm using debug to see what's happening, and I see that the getchar() is using this function:

char TERMIO_GetChar( void )
size_t cnt = 1;
char ch;
    __read_console(0, (unsigned char *)&ch, &cnt, 0L);

I see the entered character in the ch variable, but the function doesn't return the character.

Is the library wrong or I'm a using the wrong library. I'm having those librairies in my project:
- fp_coldfire_nodiv.a
- C_4i_CF_RegABI_MSL.a
- C_4i_CF_RegABI_Runtime.a

Have a nice day !

Fred Talbot