DbgConsole_Printf() &C aren't correctly disabled

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

DbgConsole_Printf() &C aren't correctly disabled

1,087 次查看
giusloq
Contributor III

SDK LPC54606J512 v2.12.0

For Release build I'd like to completely disable DbgConsole_Printf() &C. I started by defining

SDK_DEBUGCONSOLE = DEBUGCONSOLE_DISABLE

 and undefining SDK_DEBUGCONSOLE_UART. However this doesn't work perfectly. Indeed in fsl_debug_console.h there's the following code:

#if SDK_DEBUGCONSOLE
int DbgConsole_Printf(const char *fmt_s, ...);
int DbgConsole_Putchar(int ch);
int DbgConsole_Scanf(char *fmt_s, ...);
int DbgConsole_Getchar(void);
#endif /* SDK_DEBUGCONSOLE */

However SDK_DEBUGCONSOLE is defined as DEBUGCONSOLE_DISABLE that is 2.

0 项奖励
回复
1 回复

1,077 次查看
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello @giusloq 

This definition controls PRINTF redirect to which one,  toolchain printf, scanf to uart or not.

Do you want to use UART to output? Or doesn't need output function?

If choose  SDK_DEBUGCONSOLE = DEBUGCONSOLE_DISABLE

the PRINTF is empty, no use.

 

BR

Alice

0 项奖励
回复