I'm trying to debug some code on an FRDM-KL25Z, but I can't figure out which console is printed to when this macro is used. I've had to resort to using a serial connection for debugging.
Hello @kyoto5
Thanks for your post.
PRINTF in the MCUXpresso SDK is not the standard C printf() . It is an SDK Debug Console macro, typically mapped to DbgConsole_Printf , and its output destination depends on the project’s SDK Debug Console configuration.
In MCUXpresso IDE, the SDK project can be configured for either:
- Semihosting console
Output is sent through the debugger connection to the IDE semihosting/console window, not through UART.
- UART console
Output is sent through the board UART. On FRDM-KL25Z, this is typically exposed to the host PC as the OpenSDA Virtual COM port, so you need a terminal program such as Tera Term or PuTTY to view it.
To switch UART to PRINTF output in MCUXpresso IDE, please refer to MCUXpresso often won't do PRINTF to Console in 'hello world' example - NXP Community
Hope it helps.
BR
Celeste