I recommend instead of using printf with plain text strings, to change the concept to event annotations.

This is already implemented in several RTOS systems (i.e. FreeRTOS or RTX).

 

Event annotations give you more flexibility:

 

Let me know if you want to have further pointers or information.

 

Reinhard

IMPORTANT NOTICE: The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Thank you. IMPORTANT NOTICE: The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Thank you.