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

No display of printf() function in debug(printf) viewer

Hi, 

I am working on ARM Cortex M4 with 'SWD' debugger. I have printf statements in my program but when executed there is no output displayed in the 'Debug viewer'

I have tried selecting the components STDERR, STDIN and STDOUT to ITM but no result.

Parents
  • Yes, probably because you haven't added any code to have fputc() and _ttywrch() call ITM_SendChar().

    You likely need to do the plumbing.

    If you stop in the debugger, is it on a BKPT instruction?

    Does the core speed in the Trace options window match that of the processor, and have you enabled/disabled the other options appropriately?

Reply
  • Yes, probably because you haven't added any code to have fputc() and _ttywrch() call ITM_SendChar().

    You likely need to do the plumbing.

    If you stop in the debugger, is it on a BKPT instruction?

    Does the core speed in the Trace options window match that of the processor, and have you enabled/disabled the other options appropriately?

Children