Redirect debug console to a custom printf

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Redirect debug console to a custom printf

1,126件の閲覧回数
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 件の賞賛
返信
1 返信

1,114件の閲覧回数
ErichStyger
Specialist I

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

ErichStyger_0-1681194099726.png

 

0 件の賞賛
返信