Redirect debug console to a custom printf

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Redirect debug console to a custom printf

577 Views
giusloq
Contributor III

Most of SDK source code uses PRINTF() macro to emit messages. It seems PRINTF() can be disabled, redirected to standard printf() and redirected to a custom printf-like function defined in fsl_debug_console.c (that is DbgConsole_Printf).

I already have a custom printf-like function that is named myprintf(). Is it possible to redirect PRINTF() to myprintf()? If no, could you suggest changes to achieve this goal?

 

0 Kudos
Reply
1 Reply

565 Views
ErichStyger
Specialist I

The easiest and simplest way is: change it to your custom printf variant here:

ErichStyger_0-1681194099726.png

 

0 Kudos
Reply