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.
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