1

I'm trying to use Segger's RTT (Real Time Transfer), but I'm not able to see any output on the RTT viewer. I'm doubting that the root cause is an RTT control block not being identified by RTT viewer.

Setup

The host PC is connected using Seggers's J-Link debugger (JTAG interface) to an ARM-CORTEX-M4 based board, like this:

[PC] <---- J-Link -----> [ generic CORTEX-M4 board]

What I'm trying to achieve

I'm trying to integrate the RTT feature, which is specific to Segger, and I'm not able to see prints from RTT in the RTT viewer software on the host PC, by doing

  1. Integrated code provided by segger

    SEGGER_RTT_Conf.h
    SEGGER_RTT_printf.c
    SEGGER-RTT.c
    SEGGER_RTT.h
    
  2. Included SEGGER_RTT.h in my main file and added a call

    SEGGER_RTT_WriteString(0, "Hello World from SEGGER RTT!\r\n");
    

    within main().

  3. Using Eclipse and arm-none-eabi- toolchain to compile the application, as well as

    • JLINK_GDBserverCL.exe -- debug server
    • arm-none-eabi-gdb -- debug client
    • Segger J-Link -- hardware debugger (connecting its JTAG interface)

    on host PC using RTT viewer software to receive prints in step #2.

I'm expecting to see a print in step #3, please help me to proceed.

HelpingHand
  • 1,123
  • 9
  • 23

0 Answers0