This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

New to the IDE...cant see output of printf YET

Hello,
I am new to the C51 Compiler and I have problems getting the debug to work the way I want. the Simulator mode dont show the output of printf and so far, I cant debug my programs.

Amos

  • The output from printf() will show up in one of the serial windows. (There are two.) That is, I assume you're using a standard 8051 UART for your printf() output.

    You might double-check your serial port code if it's not working. You can step through the code with the simulator and debug without using printf() to start.

  • "The output from printf() will show up in one of the serial windows. (There are two.)"

    You have to assign the UART output to a serial window or COM port.

    AS I said before, you need to read the Manual and do the examples - then it will all become clear!