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

problems being faced while using printf() statements

can anybody please help me as i am facing problems using printf() statements as i am not understanding how i will print the statements on the console.

can anyone provide us with the steps for console debugging using printf() statements.

  • Sorry, but my own hardware doesn't even have any console.

    So the fact that you talk about consoles gives me the idea that maybe, just maybe, you should try to give a bit more information about what hardware you have. And where you want your printouts to go.

    Another alternative is, of course, to take a peek at all the sample code available and installed together with the Keil tools. Some of these sample programs to use printf() to send out trace output somewhere.

  • yes sure sir, i am working on linux using gnu-arm 3.4.3 toolchain and i am trying to understand the code flow by using printf() statements and connecting it to UART0 port and trying to find out the code flow on minicom...

    but the messages are getting printed but they are garbage values getting printed

    also i have written a code for debugging using ASSERT under a different file named usbdebug.h and defined there with printf().

  • Thats a completely different compiler (arm gcc) not keil

    I'd suggest looking at examples for arm gcc for the lpc2378
    www.siwawi.arubi.uni-kl.de/.../