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

printf debbung without uart

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

Parents
  • 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.

Reply
  • 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.

Children