2401041_en-US

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

2401041_en-US

2401041_en-US

Anyone with experience using MCUXpresso, where does the PRINTF macro print to?

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.

Re: Anyone with experience using MCUXpresso, where does the PRINTF macro print to?

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

タグ(1)
評価なし
バージョン履歴
最終更新日:
3 週間前
更新者: