Search code examples
cembeddediartexas-instruments

CC2541 IAR Output


To begin, I am working on CC2541 IAR 8.20 for 8051. I would like to write in output or file for check the communication between my application and the device.

Even if I have the CC-Debugger and I know if I do View -> Messages -> Tool Output, its output open but how I can write in this window ?

Thanks in advance for your answer.

Regards.


Solution

  • I found.

    I post the answer whether other people need it. You can use :

    puts(const char *);
    putchar(int);
    getchar(void);
    sprintf(char *,const char *,...);
    vsprintf(char *,const char *,va_list);
    printf(const char *,...);
    vprintf(const char *,va_list);
    

    (source)

    After that, run the Debug mode. When you are in debug mode :

    View -> Terminal I/O

    (source)