We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Hi,
is it possible to print some debug information to the debug window (build output window)?
Like printf() for the uart interface...
best regards Bernd
Yes, it is possible to print to the command window in the debug mode. Under the Debug Menu, select the Function Editor. The printf function call in this mode is NOT the same as the C printf in the compiler. The printf in the function editor prints to the command window only. You are not required to set up any UART conditions to use this printf function. Using the Log command you can copy to a file anything written to the command window if desired. Look at the Debug Functions in the User Guide for more information on formatting in the Function Editor. Bradford
The Debug Output window is not the same as the Build Output window!
So which one do you actually mean?
There is, of course, also the Serial Output window(s) - which you can use when debugging in the Simulator...
For details of commands available in Debug mode, see: http://www.keil.com/support/man/docs/uv4/uv4_debug_commands.htm
For documentation on Debug Functions, see: http://www.keil.com/support/man/docs/uv4/uv4_debug_functions.htm
I don't think that Keil compilers support #pragma message or #pragma warn or suchlike - but you'll have to check the appropriate manuals for that...