Redirect debug console to a custom printf

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Redirect debug console to a custom printf

1,125 次查看
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,113 次查看
ErichStyger
Specialist I

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

ErichStyger_0-1681194099726.png

 

0 项奖励
回复