Skip to main content
Version: 1.0.0

4.2 RTT Viewer

The Power Debugger integrates full RTT Viewer functionality (channel 0) and supports the following features and functions

  • Support HID and Win USB driver interface.
  • Supports RTT Viewer communication in local USB mode, local direct connection mode, local area network mode, and public network mode.
  • Supports terminal font size Settings.
  • Supports 0 to 15 channels (all endpoints).
  • Support copy, clear, save to file, automatic caching and other functions (upstream and downstream).
  • Support extended commands (clear screen, text color, background color).
  • Text encoding switch is supported.
  • Supports displaying time stamps.
  • Supports newline Settings.
  • Supports both SW and JATG protocols.
  • Support clock up to 50Mhz.
  • Supports chip target chip reset.
  • Support target chip running status switching.
Tips

If you work in LAN or public network mode, the output speed may be slow. Therefore, avoid large data and low latency terminal output.

4.2.1 RTT Viewer General

The RTT Viewer interface consists of uplink and downlink, parameter Settings, and auxiliary functions, as shown below:

image-20230705134708227

4.2.2 Upload channel of RTT Viewer

4.2.2.1 Terminal ID

By default, the terminal ID is All. You can click the TAB corresponding to 0 to 15 to switch to the terminal ID page.

4.2.2.2 Font

The font size can be set between 8 and 20 pounds.

4.2.2.3 Copy, clear, save, auto caching

image-20230705134918460

  • Copy : Copies the current terminal to the system clipboard.
  • Clear : Clear the text content in the terminal.
  • Save to file : Saves the received data to a file.
  • Automatically save to file: to the file: the automatic incoming data is cached to the user's specified file.
  • Encoding: Set text encoding to switch between GB2312 and UTF-8.
  • Timestamp: Shows the timestamp of the data.

4.2.2.4 Start, stop, reset, and run RTT

image-20230705135122964

  • Start RTT : Start RTT Viewer

    • Debugging parameter setting:

      image-20230705135305445

      Debug port and speed Settings: Set the working protocol mode SWJ or JTAG, and set the working clock frequency, up to 60Mhz.

      Forced run after connection: Check this function, after connecting to the target chip, the target chip will be forced to run.

      RTT Control block Search: Set the address of the control block in SRAM (found by map), and the search size (quickly set by template).

  • Stop RTT : Stop RTT Viewer.

  • Reset chip: Reset target chip.

  • Run (Pause) : Set the target chip to run mode or Halt mode.

4.2.3 RTT Viewer download channel

image-20230705135614004

4.2.3.1 Send setting

  • Send Input Box : Enter the text to be sent to the terminal.
  • Clear:image-20230703174737456Clear the current text.
  • Break line : Sets break line(CRLF、CR、LF)。
  • Enter: Send data.
Tips

By default, the return key initiates the sending, and Padding is set according to the current setting. If you click the [Enter] button to send, the default does not contain a newline. If necessary, you can manually add a newline or other control characters.

4.2.3.2 Copy, clear, save, auto caching

image-20230705135837864

  • Copy:Copy the current terminal to the system clipboard.
  • Clear : Clear the text content in the terminal.
  • Save to file : Saves the received data to a file.
  • Automatic caching to files: Automatically caches the received data to the file specified by the user.