DbgConsole_Printf() &C aren't correctly disabled

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

DbgConsole_Printf() &C aren't correctly disabled

1,050 Views
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 Kudos
Reply
1 Reply

1,040 Views
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 Kudos
Reply