AnsweredAssumed Answered

Console input with Processor Expert on FRDM-KLxx

Question asked by Charles Palmer on Jun 19, 2013
Latest reply on Oct 26, 2016 by jefferson ferreira palheta

There are plenty of working examples of using printf() for console output with FRDM-KL25Z etc. But I have not managed to find a working example of console input. The following code appears to block at the getchar() call.


  printf("Console output works\n");

  char c=getchar();

  printf("But this line is never executed.\n");

  printf("I would like to process incoming character %c.\n", c);

What do I need to do? I am using a Processor Expert ConsoleIO component, which I assume is responsible for the functioning printf().