This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

How to use "RTT debugging" with gcc compiler?

The link below here, has a tutorial about using RTT debuging with keil.

devzone.nordicsemi.com/.../

I don't have keil and i use arm gcc compiler, can you please guide me to a link / procedure where i can find the same RTT debugging with gcc

  • Just download the few files from SEGGER and read the couple of pages

    www.segger.com/jlink-rtt.html

    There's examples there but honestly it's very easy, add the .c files to your project, add the .h file path to your include and put SEGGER_RTT_WriteString( 0, "Hello World\n" ) in your executable.

    Then you have to work out how to view it which probably means using the SEGGER RTT viewer. Or just move to SEGGER Embedded Studio which has been blogged about here recently and that has an RTT viewer built-in.

Related