ITM vs. UART Printing on MCUXpresso IDE

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

ITM vs. UART Printing on MCUXpresso IDE

ITM vs. UART Printing on MCUXpresso IDE

1. Introduction

In embedded system development, debugging and log output are critical for ensuring code correctness and optimizing performance. By monitoring system status in real time, capturing abnormal behavior, and recording key data, developers can quickly locate issues and verify functionality. In resource-constrained embedded environments, choosing the right debugging tools and methods significantly impacts development efficiency.

MCXN947, a high-performance microcontroller launched by NXP, offers multiple debugging and logging solutions, among which ITM (Instrumentation Trace Macrocell) and UART printing are the most commonly used. ITM leverages the Cortex-M core’s debugging capabilities to transmit data at high speed via the debug interface, making it suitable for scenarios with strict real-time requirements. UART printing, on the other hand, outputs logs through the UART peripheral, offering strong versatility and suitability for production environments.

This article explains how to use these two output methods in MCUXpresso IDE to improve development efficiency and system reliability.


2. Principles and Features of ITM and UART Printing

2.1 ITM – Principles and Features

Working Principle:
ITM (Instrumentation Trace Macrocell) is a debugging feature provided by the Cortex-M core. It transmits data in real time through the debug interface (e.g., SWD/JTAG) using SWO. Developers can use the ITM_SendChar() function to send debugging information to the ITM port, which is then captured by the debugger and displayed in the IDE’s debug console.

Advantages:

  • High-speed transmission: ITM uses the bandwidth of the debug interface, achieving speeds far higher than UART (typically over 10 Mbps).
  • Low CPU overhead: ITM is handled by hardware, consuming almost no CPU resources.
  • No extra peripherals: Does not rely on UART or other peripherals, saving hardware resources.

Disadvantages:

  • Debugger dependency: Requires a connected debugger (e.g., MCU-Link, J-Link) and cannot be used directly in production environments.
  • Complex configuration: Proper ITM port and debugger settings are needed, which may be challenging for beginners.

2.2 UART Printing – Principles and Features

Working Principle:
UART printing sends debugging information to a serial terminal via the UART peripheral. Developers typically redirect the printf function to UART, enabling standard library functions for log output. Data is transmitted through TX/RX pins and can be viewed on a PC using serial tools (e.g., PuTTY, Tera Term). MCUXpresso IDE also integrates a terminal for UART debugging.

Advantages:

  • Highly versatile: Almost all embedded boards support UART, making it widely applicable.
  • Production-ready: Does not require a debugger and can be used directly in production environments.
  • Easy to implement: Simple configuration, ideal for beginners and rapid prototyping.

Disadvantages:

  • Lower speed: Limited by UART baud rate, resulting in lower transmission efficiency.
  • Peripheral resource usage: Occupies UART peripherals and pins, which may affect other functions.
  • Poor real-time performance: Due to interrupt delays and baud rate limitations, unsuitable for high real-time scenarios.

2.3 Summary of Comparison

The following table summarizes the main characteristics of ITM versus UART printing:

Feature ITM UART Printing
Transmission Speed High (10 Mbps or more) Low (typically 115200 bps)
CPU Overhead Low Higher
Peripheral Dependency None Requires UART peripheral & pins
Debugger Dependency Required Not required
Production Suitability Not suitable Suitable
Configuration Complexity Complex Simple
Real-time Performance High Low

 

Usage Scenarios:

  • ITM: Ideal for development-phase debugging with high real-time requirements (e.g., motor control, signal processing).
  • UART Printing: Suitable for production logging, beginner-friendly setups, and general debugging needs.

3. Implementation Steps in MCUXpresso IDE

3.1 Using ITM Printing

Hardware Requirement: Ensure the chip’s SWO pin is connected to the debugger’s SWO interface.

Alice_Yang_0-1764645814612.png

Software Configuration:

1) When creating a new project, select “Redirect printf/scanf to ITM” to redirect printf/scanf to ITM.                        

 Alice_Yang_2-1764645837570.png

 2) Configure the Trace clock:

Alice_Yang_3-1764645858437.png

 

/*!< Switch TRACE to TRACE_DIV */
CLOCK_AttachClk(kTRACE_DIV_to_TRACE);
/*!< Set up dividers */
/*!< Set TRACECLKDIV divider to value 3 */
CLOCK_SetClkDiv(kCLOCK_DivTraceClk, 3U);
 
 3)In MCUXpresso IDE, open the SWO ITM Console and configure Core Clock and Trace Clock settings.
 

Alice_Yang_6-1764646048650.png 

Alice_Yang_7-1764646056186.png

Alice_Yang_8-1764646066673.png

Alice_Yang_9-1764646097086.pngAlice_Yang_10-1764646101638.png

4)View the output results in the ITM console.

Alice_Yang_11-1764646126756.png


3.2 Using UART Printing

1)When creating a new project, select SDK Debug Console to UART to set DebugConsole to use UART.

        Alice_Yang_12-1764646136052.png

2)Use MCUXpresso IDE’s peripheral tools to configure DebugConsole-UART. Alice_Yang_13-1764646149103.png Alice_Yang_14-1764646156564.png

3)Configure UART TX/RX pins using the Pins tool. Alice_Yang_15-1764646165004.png

4)Connect the serial hardware and view the output results in a terminal. Alice_Yang_16-1764646174816.png


4. Conclusion

ITM and UART printing each have their advantages. Developers should choose the appropriate method based on project requirements. ITM is better suited for high real-time debugging during development, while UART printing is ideal for production environments and general debugging.

%3CLINGO-SUB%20id%3D%22lingo-sub-2252735%22%20slang%3D%22en-US%22%20mode%3D%22UPDATE%22%3EITM%20vs.%20UART%20Printing%20on%20MCUXpresso%20IDE%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2252735%22%20slang%3D%22en-US%22%20mode%3D%22UPDATE%22%3E%3CH3%20id%3D%22toc-hId-2002366397%22%20id%3D%22toc-hId-2002366398%22%3E%3CFONT%20face%3D%22times%20new%20roman%2Ctimes%22%20size%3D%224%22%3E%3CSTRONG%3E1.%20Introduction%3C%2FSTRONG%3E%3C%2FFONT%3E%3C%2FH3%3E%0A%3CP%20class%3D%22lia-align-justify%22%20style%3D%22text-align%20%3A%20justify%3B%22%20style%3D%22text-align%20%3A%20justify%3B%22%3E%3CFONT%20face%3D%22times%20new%20roman%2Ctimes%22%20size%3D%224%22%3EIn%20embedded%20system%20development%2C%20debugging%20and%20log%20output%20are%20critical%20for%20ensuring%20code%20correctness%20and%20optimizing%20performance.%20By%20monitoring%20system%20status%20in%20real%20time%2C%20capturing%20abnormal%20behavior%2C%20and%20recording%20key%20data%2C%20developers%20can%20quickly%20locate%20issues%20and%20verify%20functionality.%20In%20resource-constrained%20embedded%20environments%2C%20choosing%20the%20right%20debugging%20tools%20and%20methods%20significantly%20impacts%20development%20efficiency.%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%20class%3D%22lia-align-justify%22%20style%3D%22text-align%20%3A%20justify%3B%22%20style%3D%22text-align%20%3A%20justify%3B%22%3E%3CFONT%20face%3D%22times%20new%20roman%2Ctimes%22%20size%3D%224%22%3EMCXN947%2C%20a%20high-performance%20microcontroller%20launched%20by%20NXP%2C%20offers%20multiple%20debugging%20and%20logging%20solutions%2C%20among%20which%20ITM%20(Instrumentation%20Trace%20Macrocell)%20and%20UART%20printing%20are%20the%20most%20commonly%20used.%20ITM%20leverages%20the%20Cortex-M%20core%E2%80%99s%20debugging%20capabilities%20to%20transmit%20data%20at%20high%20speed%20via%20the%20debug%20interface%2C%20making%20it%20suitable%20for%20scenarios%20with%20strict%20real-time%20requirements.%20UART%20printing%2C%20on%20the%20other%20hand%2C%20outputs%20logs%20through%20the%20UART%20peripheral%2C%20offering%20strong%20versatility%20and%20suitability%20for%20production%20environments.%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%20class%3D%22lia-align-justify%22%20style%3D%22text-align%20%3A%20justify%3B%22%20style%3D%22text-align%20%3A%20justify%3B%22%3E%3CFONT%20face%3D%22times%20new%20roman%2Ctimes%22%20size%3D%224%22%3EThis%20article%20explains%20how%20to%20use%20these%20two%20output%20methods%20in%20MCUXpresso%20IDE%20to%20improve%20development%20efficiency%20and%20system%20reliability.%3C%2FFONT%3E%3C%2FP%3E%0A%3CHR%20%2F%3E%0A%3CH3%20class%3D%22lia-align-justify%22%20id%3D%22toc-hId-194911934%22%20style%3D%22text-align%20%3A%20justify%3B%22%20id%3D%22toc-hId-194911935%22%20style%3D%22text-align%20%3A%20justify%3B%22%3E%3CFONT%20face%3D%22times%20new%20roman%2Ctimes%22%20size%3D%224%22%3E%3CSTRONG%3E2.%20Principles%20and%20Features%20of%20ITM%20and%20UART%20Printing%3C%2FSTRONG%3E%3C%2FFONT%3E%3C%2FH3%3E%0A%3CH4%20class%3D%22lia-align-justify%22%20id%3D%22toc-hId-885473408%22%20style%3D%22text-align%20%3A%20justify%3B%22%20id%3D%22toc-hId-885473409%22%20style%3D%22text-align%20%3A%20justify%3B%22%3E%3CFONT%20face%3D%22times%20new%20roman%2Ctimes%22%20size%3D%224%22%3E%3CSTRONG%3E2.1%20ITM%20%E2%80%93%20Principles%20and%20Features%3C%2FSTRONG%3E%3C%2FFONT%3E%3C%2FH4%3E%0A%3CP%20class%3D%22lia-align-justify%22%20style%3D%22text-align%20%3A%20justify%3B%22%20style%3D%22text-align%20%3A%20justify%3B%22%3E%3CFONT%20face%3D%22times%20new%20roman%2Ctimes%22%20size%3D%224%22%3E%3CSTRONG%3EWorking%20Principle%3A%3C%2FSTRONG%3E%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%20face%3D%22times%20new%20roman%2Ctimes%22%20size%3D%224%22%3EITM%20(Instrumentation%20Trace%20Macrocell)%20is%20a%20debugging%20feature%20provided%20by%20the%20Cortex-M%20core.%20It%20transmits%20data%20in%20real%20time%20through%20the%20debug%20interface%20(e.g.%2C%20SWD%2FJTAG)%20using%20SWO.%20Developers%20can%20use%20the%20%3CFONT%20color%3D%22%23000000%22%3E%3CCODE%3EITM_SendChar()%3C%2FCODE%3E%3C%2FFONT%3E%20function%20to%20send%20debugging%20information%20to%20the%20ITM%20port%2C%20which%20is%20then%20captured%20by%20the%20debugger%20and%20displayed%20in%20the%20IDE%E2%80%99s%20debug%20console.%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%20class%3D%22lia-align-justify%22%20style%3D%22text-align%20%3A%20justify%3B%22%20style%3D%22text-align%20%3A%20justify%3B%22%3E%3CFONT%20face%3D%22times%20new%20roman%2Ctimes%22%20size%3D%224%22%3E%3CSTRONG%3EAdvantages%3A%3C%2FSTRONG%3E%3C%2FFONT%3E%3C%2FP%3E%0A%3CUL%20class%3D%22lia-align-justify%22%20style%3D%22text-align%20%3A%20justify%3B%22%20style%3D%22text-align%20%3A%20justify%3B%22%3E%0A%3CLI%20class%3D%22lia-align-justify%22%20style%3D%22text-align%20%3A%20justify%3B%22%20style%3D%22text-align%20%3A%20justify%3B%22%3E%3CFONT%20face%3D%22times%20new%20roman%2Ctimes%22%20size%3D%224%22%3E%3CSTRONG%3EHigh-speed%20transmission%3A%3C%2FSTRONG%3E%20ITM%20uses%20the%20bandwidth%20of%20the%20debug%20interface%2C%20achieving%20speeds%20far%20higher%20than%20UART%20(typically%20over%2010%20Mbps).%3C%2FFONT%3E%3C%2FLI%3E%0A%3CLI%20class%3D%22lia-align-justify%22%20style%3D%22text-align%20%3A%20justify%3B%22%20style%3D%22text-align%20%3A%20justify%3B%22%3E%3CFONT%20face%3D%22times%20new%20roman%2Ctimes%22%20size%3D%224%22%3E%3CSTRONG%3ELow%20CPU%20overhead%3A%3C%2FSTRONG%3E%20ITM%20is%20handled%20by%20hardware%2C%20consuming%20almost%20no%20CPU%20resources.%3C%2FFONT%3E%3C%2FLI%3E%0A%3CLI%20class%3D%22lia-align-justify%22%20style%3D%22text-align%20%3A%20justify%3B%22%20style%3D%22text-align%20%3A%20justify%3B%22%3E%3CFONT%20face%3D%22times%20new%20roman%2Ctimes%22%20size%3D%224%22%3E%3CSTRONG%3ENo%20extra%20peripherals%3A%3C%2FSTRONG%3E%20Does%20not%20rely%20on%20UART%20or%20other%20peripherals%2C%20saving%20hardware%20resources.%3C%2FFONT%3E%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%20class%3D%22lia-align-justify%22%20style%3D%22text-align%20%3A%20justify%3B%22%20style%3D%22text-align%20%3A%20justify%3B%22%3E%3CFONT%20face%3D%22times%20new%20roman%2Ctimes%22%20size%3D%224%22%3E%3CSTRONG%3EDisadvantages%3A%3C%2FSTRONG%3E%3C%2FFONT%3E%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%20class%3D%22lia-align-justify%22%20style%3D%22text-align%20%3A%20justify%3B%22%20style%3D%22text-align%20%3A%20justify%3B%22%3E%3CFONT%20face%3D%22times%20new%20roman%2Ctimes%22%20size%3D%224%22%3E%3CSTRONG%3EDebugger%20dependency%3A%3C%2FSTRONG%3E%20Requires%20a%20connected%20debugger%20(e.g.%2C%20MCU-Link%2C%20J-Link)%20and%20cannot%20be%20used%20directly%20in%20production%20environments.%3C%2FFONT%3E%3C%2FLI%3E%0A%3CLI%20class%3D%22lia-align-justify%22%20style%3D%22text-align%20%3A%20justify%3B%22%20style%3D%22text-align%20%3A%20justify%3B%22%3E%3CFONT%20face%3D%22times%20new%20roman%2Ctimes%22%20size%3D%224%22%3E%3CSTRONG%3EComplex%20configuration%3A%3C%2FSTRONG%3E%20Proper%20ITM%20port%20and%20debugger%20settings%20are%20needed%2C%20which%20may%20be%20challenging%20for%20beginners.%3C%2FFONT%3E%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CHR%20%2F%3E%0A%3CH4%20class%3D%22lia-align-justify%22%20id%3D%22toc-hId--921981055%22%20style%3D%22text-align%20%3A%20justify%3B%22%20id%3D%22toc-hId--921981054%22%20style%3D%22text-align%20%3A%20justify%3B%22%3E%3CFONT%20face%3D%22times%20new%20roman%2Ctimes%22%20size%3D%224%22%3E%3CSTRONG%3E2.2%20UART%20Printing%20%E2%80%93%20Principles%20and%20Features%3C%2FSTRONG%3E%3C%2FFONT%3E%3C%2FH4%3E%0A%3CP%20class%3D%22lia-align-justify%22%20style%3D%22text-align%20%3A%20justify%3B%22%20style%3D%22text-align%20%3A%20justify%3B%22%3E%3CFONT%20face%3D%22times%20new%20roman%2Ctimes%22%20size%3D%224%22%3E%3CSTRONG%3EWorking%20Principle%3A%3C%2FSTRONG%3E%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%20face%3D%22times%20new%20roman%2Ctimes%22%20size%3D%224%22%3EUART%20printing%20sends%20debugging%20information%20to%20a%20serial%20terminal%20via%20the%20UART%20peripheral.%20Developers%20typically%20redirect%20the%20%3CCODE%3Eprintf%3C%2FCODE%3E%20function%20to%20UART%2C%20enabling%20standard%20library%20functions%20for%20log%20output.%20Data%20is%20transmitted%20through%20TX%2FRX%20pins%20and%20can%20be%20viewed%20on%20a%20PC%20using%20serial%20tools%20(e.g.%2C%20PuTTY%2C%20Tera%20Term).%20MCUXpresso%20IDE%20also%20integrates%20a%20terminal%20for%20UART%20debugging.%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%20class%3D%22lia-align-justify%22%20style%3D%22text-align%20%3A%20justify%3B%22%20style%3D%22text-align%20%3A%20justify%3B%22%3E%3CFONT%20face%3D%22times%20new%20roman%2Ctimes%22%20size%3D%224%22%3E%3CSTRONG%3EAdvantages%3A%3C%2FSTRONG%3E%3C%2FFONT%3E%3C%2FP%3E%0A%3CUL%20class%3D%22lia-align-justify%22%20style%3D%22text-align%20%3A%20justify%3B%22%20style%3D%22text-align%20%3A%20justify%3B%22%3E%0A%3CLI%3E%3CFONT%20face%3D%22times%20new%20roman%2Ctimes%22%20size%3D%224%22%3E%3CSTRONG%3EHighly%20versatile%3A%3C%2FSTRONG%3E%20Almost%20all%20embedded%20boards%20support%20UART%2C%20making%20it%20widely%20applicable.%3C%2FFONT%3E%3C%2FLI%3E%0A%3CLI%3E%3CFONT%20face%3D%22times%20new%20roman%2Ctimes%22%20size%3D%224%22%3E%3CSTRONG%3EProduction-ready%3A%3C%2FSTRONG%3E%20Does%20not%20require%20a%20debugger%20and%20can%20be%20used%20directly%20in%20production%20environments.%3C%2FFONT%3E%3C%2FLI%3E%0A%3CLI%3E%3CFONT%20face%3D%22times%20new%20roman%2Ctimes%22%20size%3D%224%22%3E%3CSTRONG%3EEasy%20to%20implement%3A%3C%2FSTRONG%3E%20Simple%20configuration%2C%20ideal%20for%20beginners%20and%20rapid%20prototyping.%3C%2FFONT%3E%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%20class%3D%22lia-align-justify%22%20style%3D%22text-align%20%3A%20justify%3B%22%20style%3D%22text-align%20%3A%20justify%3B%22%3E%3CFONT%20face%3D%22times%20new%20roman%2Ctimes%22%20size%3D%224%22%3E%3CSTRONG%3EDisadvantages%3A%3C%2FSTRONG%3E%3C%2FFONT%3E%3C%2FP%3E%0A%3CUL%20class%3D%22lia-align-justify%22%20style%3D%22text-align%20%3A%20justify%3B%22%20style%3D%22text-align%20%3A%20justify%3B%22%3E%0A%3CLI%3E%3CFONT%20face%3D%22times%20new%20roman%2Ctimes%22%20size%3D%224%22%3E%3CSTRONG%3ELower%20speed%3A%3C%2FSTRONG%3E%20Limited%20by%20UART%20baud%20rate%2C%20resulting%20in%20lower%20transmission%20efficiency.%3C%2FFONT%3E%3C%2FLI%3E%0A%3CLI%3E%3CFONT%20face%3D%22times%20new%20roman%2Ctimes%22%20size%3D%224%22%3E%3CSTRONG%3EPeripheral%20resource%20usage%3A%3C%2FSTRONG%3E%20Occupies%20UART%20peripherals%20and%20pins%2C%20which%20may%20affect%20other%20functions.%3C%2FFONT%3E%3C%2FLI%3E%0A%3CLI%3E%3CFONT%20face%3D%22times%20new%20roman%2Ctimes%22%20size%3D%224%22%3E%3CSTRONG%3EPoor%20real-time%20performance%3A%3C%2FSTRONG%3E%20Due%20to%20interrupt%20delays%20and%20baud%20rate%20limitations%2C%20unsuitable%20for%20high%20real-time%20scenarios.%3C%2FFONT%3E%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CHR%20%2F%3E%0A%3CH4%20class%3D%22lia-align-justify%22%20id%3D%22toc-hId-1565531778%22%20style%3D%22text-align%20%3A%20justify%3B%22%20id%3D%22toc-hId-1565531779%22%20style%3D%22text-align%20%3A%20justify%3B%22%3E%3CFONT%20face%3D%22times%20new%20roman%2Ctimes%22%20size%3D%224%22%3E%3CSTRONG%3E2.3%20Summary%20of%20Comparison%3C%2FSTRONG%3E%3C%2FFONT%3E%3C%2FH4%3E%0A%3CP%20class%3D%22lia-align-justify%22%20style%3D%22text-align%20%3A%20justify%3B%22%20style%3D%22text-align%20%3A%20justify%3B%22%3E%3CFONT%20face%3D%22times%20new%20roman%2Ctimes%22%20size%3D%224%22%3EThe%20following%20table%20summarizes%20the%20main%20characteristics%20of%20ITM%20versus%20UART%20printing%3A%3C%2FFONT%3E%3C%2FP%3E%0A%3CDIV%20class%3D%22___i31lg00%20f10pi13n%20f14t3ns0%20f1nbblvp%20fat0sn4%20f1ov4xf1%20fekwl8i%20f1lmfglv%20f1oz7aqm%20f1abmfm4%20f1w619qj%20f16h0jq8%20lia-align-justify%22%20style%3D%22text-align%20%3A%20justify%3B%22%20style%3D%22text-align%20%3A%20justify%3B%22%3E%0A%3CTABLE%20class%3D%22___1hm93bs%20f1ddd56o%20f16vktn6%20f1enuhaj%20fdclmfp%20f1ev3kgc%20ftgm304%20f1uinfot%20fibjyge%20fvueend%20f9yszdx%20f1fu4s3n%20f3l3pb3%20f1s2k7dp%20f8fmt76%20fjvbh62%20fysh76l%20fic4ptz%20f1yenhzu%20f1yn6nvh%20f14tj6oe%20f1jq587y%20f1el8yx3%20f1pymoxg%20f1ofu761%20fe6itr%20f7coize%20f1794535%20f70r78m%20f4zgifc%20fk1v6el%20f16pyhcb%20fo436u6%20fzy4j18%20fc43013%20f1hmrcvb%20fc4t9fq%20fgp09rh%20fjnyn6r%22%3E%0A%3CTHEAD%3E%0A%3CTR%3E%0A%3CTH%3E%3CFONT%20face%3D%22times%20new%20roman%2Ctimes%22%20size%3D%224%22%3EFeature%3C%2FFONT%3E%3C%2FTH%3E%0A%3CTH%3E%3CFONT%20face%3D%22times%20new%20roman%2Ctimes%22%20size%3D%224%22%3EITM%3C%2FFONT%3E%3C%2FTH%3E%0A%3CTH%3E%3CFONT%20face%3D%22times%20new%20roman%2Ctimes%22%20size%3D%224%22%3EUART%20Printing%3C%2FFONT%3E%3C%2FTH%3E%0A%3C%2FTR%3E%0A%3C%2FTHEAD%3E%0A%3CTBODY%3E%0A%3CTR%3E%0A%3CTH%20scope%3D%22row%22%3E%3CFONT%20face%3D%22times%20new%20roman%2Ctimes%22%20size%3D%224%22%3ETransmission%20Speed%3C%2FFONT%3E%3C%2FTH%3E%0A%3CTD%3E%3CFONT%20face%3D%22times%20new%20roman%2Ctimes%22%20size%3D%224%22%3EHigh%20(10%20Mbps%20or%20more)%3C%2FFONT%3E%3C%2FTD%3E%0A%3CTD%3E%3CFONT%20face%3D%22times%20new%20roman%2Ctimes%22%20size%3D%224%22%3ELow%20(typically%20115200%20bps)%3C%2FFONT%3E%3C%2FTD%3E%0A%3C%2FTR%3E%0A%3CTR%3E%0A%3CTH%20scope%3D%22row%22%3E%3CFONT%20face%3D%22times%20new%20roman%2Ctimes%22%20size%3D%224%22%3ECPU%20Overhead%3C%2FFONT%3E%3C%2FTH%3E%0A%3CTD%3E%3CFONT%20face%3D%22times%20new%20roman%2Ctimes%22%20size%3D%224%22%3ELow%3C%2FFONT%3E%3C%2FTD%3E%0A%3CTD%3E%3CFONT%20face%3D%22times%20new%20roman%2Ctimes%22%20size%3D%224%22%3EHigher%3C%2FFONT%3E%3C%2FTD%3E%0A%3C%2FTR%3E%0A%3CTR%3E%0A%3CTH%20scope%3D%22row%22%3E%3CFONT%20face%3D%22times%20new%20roman%2Ctimes%22%20size%3D%224%22%3EPeripheral%20Dependency%3C%2FFONT%3E%3C%2FTH%3E%0A%3CTD%3E%3CFONT%20face%3D%22times%20new%20roman%2Ctimes%22%20size%3D%224%22%3ENone%3C%2FFONT%3E%3C%2FTD%3E%0A%3CTD%3E%3CFONT%20face%3D%22times%20new%20roman%2Ctimes%22%20size%3D%224%22%3ERequires%20UART%20peripheral%20%26amp%3B%20pins%3C%2FFONT%3E%3C%2FTD%3E%0A%3C%2FTR%3E%0A%3CTR%3E%0A%3CTH%20scope%3D%22row%22%3E%3CFONT%20face%3D%22times%20new%20roman%2Ctimes%22%20size%3D%224%22%3EDebugger%20Dependency%3C%2FFONT%3E%3C%2FTH%3E%0A%3CTD%3E%3CFONT%20face%3D%22times%20new%20roman%2Ctimes%22%20size%3D%224%22%3ERequired%3C%2FFONT%3E%3C%2FTD%3E%0A%3CTD%3E%3CFONT%20face%3D%22times%20new%20roman%2Ctimes%22%20size%3D%224%22%3ENot%20required%3C%2FFONT%3E%3C%2FTD%3E%0A%3C%2FTR%3E%0A%3CTR%3E%0A%3CTH%20scope%3D%22row%22%3E%3CFONT%20face%3D%22times%20new%20roman%2Ctimes%22%20size%3D%224%22%3EProduction%20Suitability%3C%2FFONT%3E%3C%2FTH%3E%0A%3CTD%3E%3CFONT%20face%3D%22times%20new%20roman%2Ctimes%22%20size%3D%224%22%3ENot%20suitable%3C%2FFONT%3E%3C%2FTD%3E%0A%3CTD%3E%3CFONT%20face%3D%22times%20new%20roman%2Ctimes%22%20size%3D%224%22%3ESuitable%3C%2FFONT%3E%3C%2FTD%3E%0A%3C%2FTR%3E%0A%3CTR%3E%0A%3CTH%20scope%3D%22row%22%3E%3CFONT%20face%3D%22times%20new%20roman%2Ctimes%22%20size%3D%224%22%3EConfiguration%20Complexity%3C%2FFONT%3E%3C%2FTH%3E%0A%3CTD%3E%3CFONT%20face%3D%22times%20new%20roman%2Ctimes%22%20size%3D%224%22%3EComplex%3C%2FFONT%3E%3C%2FTD%3E%0A%3CTD%3E%3CFONT%20face%3D%22times%20new%20roman%2Ctimes%22%20size%3D%224%22%3ESimple%3C%2FFONT%3E%3C%2FTD%3E%0A%3C%2FTR%3E%0A%3CTR%3E%0A%3CTH%20scope%3D%22row%22%3E%3CFONT%20face%3D%22times%20new%20roman%2Ctimes%22%20size%3D%224%22%3EReal-time%20Performance%3C%2FFONT%3E%3C%2FTH%3E%0A%3CTD%3E%3CFONT%20face%3D%22times%20new%20roman%2Ctimes%22%20size%3D%224%22%3EHigh%3C%2FFONT%3E%3C%2FTD%3E%0A%3CTD%3E%3CFONT%20face%3D%22times%20new%20roman%2Ctimes%22%20size%3D%224%22%3ELow%3C%2FFONT%3E%3C%2FTD%3E%0A%3C%2FTR%3E%0A%3C%2FTBODY%3E%0A%3C%2FTABLE%3E%0A%3CBR%20%2F%3E%0A%3C%2FDIV%3E%0A%3CP%20class%3D%22lia-align-justify%22%20style%3D%22text-align%20%3A%20justify%3B%22%20style%3D%22text-align%20%3A%20justify%3B%22%3E%3CFONT%20face%3D%22times%20new%20roman%2Ctimes%22%20size%3D%224%22%3E%3CSTRONG%3EUsage%20Scenarios%3A%3C%2FSTRONG%3E%3C%2FFONT%3E%3C%2FP%3E%0A%3CUL%20class%3D%22lia-align-justify%22%20style%3D%22text-align%20%3A%20justify%3B%22%20style%3D%22text-align%20%3A%20justify%3B%22%3E%0A%3CLI%3E%3CFONT%20face%3D%22times%20new%20roman%2Ctimes%22%20size%3D%224%22%3E%3CSTRONG%3EITM%3A%3C%2FSTRONG%3E%20Ideal%20for%20development-phase%20debugging%20with%20high%20real-time%20requirements%20(e.g.%2C%20motor%20control%2C%20signal%20processing).%3C%2FFONT%3E%3C%2FLI%3E%0A%3CLI%3E%3CFONT%20face%3D%22times%20new%20roman%2Ctimes%22%20size%3D%224%22%3E%3CSTRONG%3EUART%20Printing%3A%3C%2FSTRONG%3E%20Suitable%20for%20production%20logging%2C%20beginner-friendly%20setups%2C%20and%20general%20debugging%20needs.%3C%2FFONT%3E%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CHR%20%2F%3E%0A%3CH4%20class%3D%22lia-align-justify%22%20id%3D%22toc-hId--241922685%22%20style%3D%22text-align%20%3A%20justify%3B%22%20id%3D%22toc-hId--241922684%22%20style%3D%22text-align%20%3A%20justify%3B%22%3E%3CFONT%20face%3D%22times%20new%20roman%2Ctimes%22%20size%3D%224%22%3E%3CSTRONG%3E3.%20Implementation%20Steps%20in%20MCUXpresso%20IDE%3C%2FSTRONG%3E%3C%2FFONT%3E%3C%2FH4%3E%0A%3CH5%20class%3D%22lia-align-justify%22%20id%3D%22toc-hId-448638789%22%20style%3D%22text-align%20%3A%20justify%3B%22%20id%3D%22toc-hId-448638790%22%20style%3D%22text-align%20%3A%20justify%3B%22%3E%3CFONT%20face%3D%22times%20new%20roman%2Ctimes%22%20size%3D%224%22%3E%3CSTRONG%3E3.1%20Using%20ITM%20Printing%3C%2FSTRONG%3E%3C%2FFONT%3E%3C%2FH5%3E%0A%3CP%20class%3D%22lia-align-justify%22%20style%3D%22text-align%20%3A%20justify%3B%22%20style%3D%22text-align%20%3A%20justify%3B%22%3E%3CFONT%20face%3D%22times%20new%20roman%2Ctimes%22%20size%3D%224%22%3E%3CSTRONG%3EHardware%20Requirement%3A%3C%2FSTRONG%3E%20Ensure%20the%20chip%E2%80%99s%20SWO%20pin%20is%20connected%20to%20the%20debugger%E2%80%99s%20SWO%20interface.%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%20class%3D%22lia-align-justify%22%20style%3D%22text-align%20%3A%20justify%3B%22%20style%3D%22text-align%20%3A%20justify%3B%22%3E%3CFONT%20face%3D%22times%20new%20roman%2Ctimes%22%20size%3D%224%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Alice_Yang_0-1764645814612.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Alice_Yang_0-1764645814612.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F368121iEF792FE7B1E3FDE5%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22Alice_Yang_0-1764645814612.png%22%20alt%3D%22Alice_Yang_0-1764645814612.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%20class%3D%22lia-align-justify%22%20style%3D%22text-align%20%3A%20justify%3B%22%20style%3D%22text-align%20%3A%20justify%3B%22%3E%3CFONT%20face%3D%22times%20new%20roman%2Ctimes%22%20size%3D%224%22%3E%3CSTRONG%3ESoftware%20Configuration%3A%3C%2FSTRONG%3E%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%20class%3D%22lia-align-justify%22%20style%3D%22text-align%20%3A%20justify%3B%22%20style%3D%22text-align%20%3A%20justify%3B%22%3E%3CFONT%20face%3D%22times%20new%20roman%2Ctimes%22%20size%3D%224%22%3E1)%20When%20creating%20a%20new%20project%2C%20select%20%E2%80%9CRedirect%20printf%2Fscanf%20to%20ITM%E2%80%9D%20to%20redirect%20%3CCODE%3Eprintf%2Fscanf%3C%2FCODE%3E%20to%20ITM.%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%26nbsp%3B%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%20class%3D%22lia-align-justify%22%20style%3D%22text-align%20%3A%20justify%3B%22%20style%3D%22text-align%20%3A%20justify%3B%22%3E%3CFONT%20face%3D%22times%20new%20roman%2Ctimes%22%20size%3D%224%22%3E%26nbsp%3B%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Alice_Yang_2-1764645837570.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Alice_Yang_2-1764645837570.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F368123i7391BFFBD5917088%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22Alice_Yang_2-1764645837570.png%22%20alt%3D%22Alice_Yang_2-1764645837570.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%20class%3D%22lia-align-justify%22%20style%3D%22text-align%20%3A%20justify%3B%22%20style%3D%22text-align%20%3A%20justify%3B%22%3E%3CFONT%20face%3D%22times%20new%20roman%2Ctimes%22%20size%3D%224%22%3E%26nbsp%3B2)%20Configure%20the%20Trace%20clock%3A%3C%2FFONT%3E%3C%2FP%3E%0A%3CDIV%20class%3D%22___77lcry0%20f10pi13n%20lia-align-justify%22%20style%3D%22text-align%20%3A%20justify%3B%22%20style%3D%22text-align%20%3A%20justify%3B%22%3E%0A%3CDIV%20class%3D%22___1hewfwb%20f10pi13n%20f7oukh6%20f5p0z4x%22%20tabindex%3D%220%22%20role%3D%22group%22%20aria-label%3D%22%E4%BB%A3%E7%A0%81%E9%A2%84%E8%A7%88%22%3E%0A%3CDIV%20class%3D%22fui-FluentProvider%20codeBlock-1399fui-FluentProviderr0%20___1jk74h0%20fzk5nv6%20f6n0el9%20f7x6x6c%20f1a9mlr7%20flj889f%20f13g0yyb%20ffzn0d2%22%20dir%3D%22ltr%22%20data-testid%3D%22ComponentFluentProviderId%22%3E%0A%3CDIV%20class%3D%22scriptor-component-code-block%20___zvnbuh0%20fbwmw8f%20f1r24x2c%20fssjx5q%20f11d9hfk%20f1ox3k9x%20f133xw5t%20f1bt4cyl%20fbhtfgd%20fukujjm%20f1uhbleq%20f1j8h10f%20f1dcxf0u%20fhswmqe%20f1gsf85u%20fh8rik3%20f1jl54mw%20f1w257bn%20f1c6ju7g%20fwfsotv%20f1ndaetk%20fe9qgns%20fu1i9vr%20fol4l6z%20f1xiw7p5%20fdk4ulh%22%20tabindex%3D%22-1%22%3E%0A%3CDIV%20class%3D%22___4ll5qn0%20fonrc96%22%3E%0A%3CDIV%20class%3D%22r14iuplo%20fui-AriaLive__assertive%22%20aria-live%3D%22assertive%22%3E%3CFONT%20face%3D%22times%20new%20roman%2Ctimes%22%20size%3D%224%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Alice_Yang_3-1764645858437.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Alice_Yang_3-1764645858437.png%22%20style%3D%22width%3A%20296px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F368124i96197B278864F407%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22Alice_Yang_3-1764645858437.png%22%20alt%3D%22Alice_Yang_3-1764645858437.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FFONT%3E%0A%3CBR%20%2F%3E%0A%3C%2FDIV%3E%0A%3CDIV%20class%3D%22r14iuplo%20fui-AriaLive__polite%22%20aria-live%3D%22polite%22%3E%3CPRE%20class%3D%22lia-code-sample%20language-c%22%3E%3CCODE%3E%2F*!%26lt%3B%20Switch%20TRACE%20to%20TRACE_DIV%20*%2F%0ACLOCK_AttachClk(kTRACE_DIV_to_TRACE)%3B%0A%2F*!%26lt%3B%20Set%20up%20dividers%20*%2F%0A%2F*!%26lt%3B%20Set%20TRACECLKDIV%20divider%20to%20value%203%20*%2F%0ACLOCK_SetClkDiv(kCLOCK_DivTraceClk%2C%203U)%3B%0A%3C%2FCODE%3E%3C%2FPRE%3E%3C%2FDIV%3E%0A%3C%2FDIV%3E%0A%3CDIV%20class%3D%22___1x9q54e%20f1vxt3g6%22%3E%26nbsp%3B%3C%2FDIV%3E%0A%3CDIV%20class%3D%22___18t61o0%20f1tmrb6z%20f1ux83ux%20f1lqlypd%20f16n82ws%20f5qgyap%20fxa5w0x%20f1r24x2c%20fvzhe1q%20f1d4ydo3%20f1bt4cyl%20fbhtfgd%20f1g5dvvh%20f1u86z86%20fh8rik3%20f1b0he24%22%3E%3CFONT%20face%3D%22times%20new%20roman%2Ctimes%22%20size%3D%224%22%3E%26nbsp%3B3%EF%BC%89%3CSPAN%3EIn%20MCUXpresso%20IDE%2C%20open%20the%20SWO%20ITM%20Console%20and%20configure%20Core%20Clock%20and%20Trace%20Clock%20settings.%3C%2FSPAN%3E%3C%2FFONT%3E%3C%2FDIV%3E%0A%3C%2FDIV%3E%0A%3C%2FDIV%3E%0A%3C%2FDIV%3E%0A%3C%2FDIV%3E%0A%3CDIV%20id%3D%22tinyMceEditorAlice_Yang_4%22%20class%3D%22mceNonEditable%20lia-copypaste-placeholder%20lia-align-justify%22%20style%3D%22text-align%20%3A%20justify%3B%22%20style%3D%22text-align%20%3A%20justify%3B%22%3E%26nbsp%3B%3C%2FDIV%3E%0A%3CP%20class%3D%22lia-align-justify%22%20style%3D%22text-align%20%3A%20justify%3B%22%20style%3D%22text-align%20%3A%20justify%3B%22%3E%3CFONT%20face%3D%22times%20new%20roman%2Ctimes%22%20size%3D%224%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Alice_Yang_6-1764646048650.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Alice_Yang_6-1764646048650.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F368127iAE0E593D95D92E7E%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22Alice_Yang_6-1764646048650.png%22%20alt%3D%22Alice_Yang_6-1764646048650.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%26nbsp%3B%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%20class%3D%22lia-align-justify%22%20style%3D%22text-align%20%3A%20justify%3B%22%20style%3D%22text-align%20%3A%20justify%3B%22%3E%3CFONT%20face%3D%22times%20new%20roman%2Ctimes%22%20size%3D%224%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Alice_Yang_7-1764646056186.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Alice_Yang_7-1764646056186.png%22%20style%3D%22width%3A%20305px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F368128i2F72AB080333997D%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22Alice_Yang_7-1764646056186.png%22%20alt%3D%22Alice_Yang_7-1764646056186.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%20class%3D%22lia-align-justify%22%20style%3D%22text-align%20%3A%20justify%3B%22%20style%3D%22text-align%20%3A%20justify%3B%22%3E%3CFONT%20face%3D%22times%20new%20roman%2Ctimes%22%20size%3D%224%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Alice_Yang_8-1764646066673.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Alice_Yang_8-1764646066673.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F368129iCE364B6BE0069234%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22Alice_Yang_8-1764646066673.png%22%20alt%3D%22Alice_Yang_8-1764646066673.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%20class%3D%22lia-align-justify%22%20style%3D%22text-align%20%3A%20justify%3B%22%20style%3D%22text-align%20%3A%20justify%3B%22%3E%3CFONT%20face%3D%22times%20new%20roman%2Ctimes%22%20size%3D%224%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Alice_Yang_9-1764646097086.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Alice_Yang_9-1764646097086.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F368130i35B738C9EFAE574E%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22Alice_Yang_9-1764646097086.png%22%20alt%3D%22Alice_Yang_9-1764646097086.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Alice_Yang_10-1764646101638.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Alice_Yang_10-1764646101638.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F368131i75EB4C4244817AAD%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22Alice_Yang_10-1764646101638.png%22%20alt%3D%22Alice_Yang_10-1764646101638.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%20class%3D%22lia-align-justify%22%20style%3D%22text-align%20%3A%20justify%3B%22%20style%3D%22text-align%20%3A%20justify%3B%22%3E%3CFONT%20face%3D%22times%20new%20roman%2Ctimes%22%20size%3D%224%22%3E4%EF%BC%89View%20the%20output%20results%20in%20the%20ITM%20console.%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%20class%3D%22lia-align-justify%22%20style%3D%22text-align%20%3A%20justify%3B%22%20style%3D%22text-align%20%3A%20justify%3B%22%3E%3CFONT%20face%3D%22times%20new%20roman%2Ctimes%22%20size%3D%224%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Alice_Yang_11-1764646126756.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Alice_Yang_11-1764646126756.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F368133i3EEFA2B2512212B5%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22Alice_Yang_11-1764646126756.png%22%20alt%3D%22Alice_Yang_11-1764646126756.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FFONT%3E%3C%2FP%3E%0A%3CHR%20%2F%3E%0A%3CH5%20class%3D%22lia-align-justify%22%20id%3D%22toc-hId--1358815674%22%20style%3D%22text-align%20%3A%20justify%3B%22%20id%3D%22toc-hId--1358815673%22%20style%3D%22text-align%20%3A%20justify%3B%22%3E%3CFONT%20face%3D%22times%20new%20roman%2Ctimes%22%20size%3D%224%22%3E%3CSTRONG%3E3.2%20Using%20UART%3C%2FSTRONG%3E%20Printing%3C%2FFONT%3E%3C%2FH5%3E%0A%3CP%20class%3D%22lia-align-justify%22%20style%3D%22text-align%20%3A%20justify%3B%22%20style%3D%22text-align%20%3A%20justify%3B%22%3E%3CFONT%20face%3D%22times%20new%20roman%2Ctimes%22%20size%3D%224%22%3E1%EF%BC%89When%20creating%20a%20new%20project%2C%20select%20SDK%20Debug%20Console%20to%20UART%20to%20set%20DebugConsole%20to%20use%20UART.%3C%2FFONT%3E%3C%2FP%3E%0A%3CH5%20class%3D%22lia-align-justify%22%20id%3D%22toc-hId-1128697159%22%20style%3D%22text-align%20%3A%20justify%3B%22%20id%3D%22toc-hId-1128697160%22%20style%3D%22text-align%20%3A%20justify%3B%22%3E%3CFONT%20face%3D%22times%20new%20roman%2Ctimes%22%20size%3D%224%22%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%26nbsp%3B%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Alice_Yang_12-1764646136052.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Alice_Yang_12-1764646136052.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F368134i6AF2674D44851973%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22Alice_Yang_12-1764646136052.png%22%20alt%3D%22Alice_Yang_12-1764646136052.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FFONT%3E%3C%2FH5%3E%0A%3CP%3E%3CFONT%20face%3D%22times%20new%20roman%2Ctimes%22%20size%3D%224%22%3E2%EF%BC%89Use%20MCUXpresso%20IDE%E2%80%99s%20peripheral%20tools%20to%20configure%20DebugConsole-UART.%26nbsp%3B%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Alice_Yang_13-1764646149103.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Alice_Yang_13-1764646149103.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F368135iA8DF612141E23542%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22Alice_Yang_13-1764646149103.png%22%20alt%3D%22Alice_Yang_13-1764646149103.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%26nbsp%3B%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Alice_Yang_14-1764646156564.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Alice_Yang_14-1764646156564.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F368136iACCB0B33C0501D0A%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22Alice_Yang_14-1764646156564.png%22%20alt%3D%22Alice_Yang_14-1764646156564.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%3E%3CFONT%20face%3D%22times%20new%20roman%2Ctimes%22%20size%3D%224%22%3E3%EF%BC%89Configure%20UART%20TX%2FRX%20pins%20using%20the%20Pins%20tool.%26nbsp%3B%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Alice_Yang_15-1764646165004.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Alice_Yang_15-1764646165004.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F368137i61369472656AF318%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22Alice_Yang_15-1764646165004.png%22%20alt%3D%22Alice_Yang_15-1764646165004.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%3E%3CFONT%20face%3D%22times%20new%20roman%2Ctimes%22%20size%3D%224%22%3E4%EF%BC%89Connect%20the%20serial%20hardware%20and%20view%20the%20output%20results%20in%20a%20terminal.%26nbsp%3B%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Alice_Yang_16-1764646174816.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Alice_Yang_16-1764646174816.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F368138iBBADA0443F5B6F11%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22Alice_Yang_16-1764646174816.png%22%20alt%3D%22Alice_Yang_16-1764646174816.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FFONT%3E%3C%2FP%3E%0A%3CHR%20%2F%3E%0A%3CH3%20class%3D%22lia-align-justify%22%20id%3D%22toc-hId--1379821882%22%20style%3D%22text-align%20%3A%20justify%3B%22%20id%3D%22toc-hId--1379821881%22%20style%3D%22text-align%20%3A%20justify%3B%22%3E%3CFONT%20face%3D%22times%20new%20roman%2Ctimes%22%20size%3D%224%22%3E%3CSTRONG%3E4.%20Conclusion%3C%2FSTRONG%3E%3C%2FFONT%3E%3C%2FH3%3E%0A%3CP%20class%3D%22lia-align-justify%22%20style%3D%22text-align%20%3A%20justify%3B%22%20style%3D%22text-align%20%3A%20justify%3B%22%3E%3CFONT%20face%3D%22times%20new%20roman%2Ctimes%22%20size%3D%224%22%3EITM%20and%20UART%20printing%20each%20have%20their%20advantages.%20Developers%20should%20choose%20the%20appropriate%20method%20based%20on%20project%20requirements.%20ITM%20is%20better%20suited%20for%20high%20real-time%20debugging%20during%20development%2C%20while%20UART%20printing%20is%20ideal%20for%20production%20environments%20and%20general%20debugging.%3C%2FFONT%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E
No ratings
Version history
Last update:
‎12-04-2025 01:14 AM
Updated by: