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
Integrated code provided by segger
SEGGER_RTT_Conf.h SEGGER_RTT_printf.c SEGGER-RTT.c SEGGER_RTT.h
Included
SEGGER_RTT.h
in my main file and added a callSEGGER_RTT_WriteString(0, "Hello World from SEGGER RTT!\r\n");
within
main()
.Using Eclipse and
arm-none-eabi-
toolchain to compile the application, as well asJLINK_GDBserverCL.exe
-- debug serverarm-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.