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.
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?
Thanks for the solution.
I am getting error
Following are my Trace settings
Typically debuggers first interrogate the device ROM table to identify the debug infrastructure supported by the implementation.
It seems that your device does not have all the required debug components for trace: DWT, ITM, TPIU.
Are you using a custom Cortex-M4 without TPIU (Trace Port Interface Unit) which is optional?
View all questions in Keil forum