Hello all, I would like to know if there is a way in the simulation with uVision to use a printf to display debugging information on window of uVision to a micro cortex m3 without committing a uart and without using ulink. Tanks
While all printf() functions may bring in a bit of code, that is often not a problem for ARM-class processors.
sprintf() is a good candidate for printing to a text string, then sending the contents of this string to some suitable send-char functions like the above mentioned ITM_Sendchar() function.
So you can create your own debug_printf(char* fmt,...) that directs the output whereever you like, while still reserving printf() for some other output stream.
thanks for the help, I used the ITM_Sendchar it works.