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

How to use debug printf in keil by arm

Hai, I am using Keil for arm controller that in debugging session I could not use debug printf viewer if I use that only special characters are displaying not the actual message is displaying. Can anyone help me how to configure it?
I have configured the ide by seeing the user guide provided by Keil but still getting the same error
www.keil.com/.../uv4_db_dbg_printf_viewer.htm

  • To make debug prints work, enter the correct Core Clock value in the Trace tab.
    This usually is the SystemCoreClock value in MHz, after execution of SystemClock_Config().
    For example for 60 MHz enter 60.0

    -- pa

  • Often the clock.
    Perhaps you can be specific about the hardware involved here, the micro being used, the debug pod being used. What speed? Standard board others might have, or something custom?
    Make sure the SWO pin is wired up. That is it not conflicting with other pins/functionality on the board, is not being reconfigured, has any jumpers or solder bridge appropriately configured.
    Check if ITM_SendChar() works outside of printf/putchar retargeting.
    Check if clocks have been setup prior to use.