This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Is there an un-blocking getchar function to read a character from CCS console?

I have tried getchar (), getch (), etc without any success of being non-blocking. Any one know a way to read a char from CCS console without blocking the thread?

Thanks,

Kay

  • Kaushalya Satharasinghe said:
    Any one know a way to read a char from CCS console without blocking the thread?

    I don't have a specific suggestion but perhaps others from the E2E community may chime in with their suggestions. Also, since this is more of a general programming question you may get some good ideas from a Web search as well. 

  • I am no expert but,

    From a generic C point of view, this cannot be done.

    Looking at platform specific behavior, I am not optimistic this can be done either.  You might gain more understanding by studying the compiler manual for your device (e.g. 8.2.3).  There is info on the wiki that might help.  You also might gain insight by reviewing (or modifying) some of the IO implementation files which come with the compiler, e.g. ti/ccsv5/tools/compiler/c6000_7.4.14/lib/src stdio.h, file.h, trgdrv.c, etc.

    It seems to be like this might require a modification to the way some component of the CCS debugger or the emulator behaves.