Get the latest tech news

J-Link RTT for the Masses using Semihosting on ARM


How to do bidirectional logging over SWD on ARM.

The selling point is that you just include their library, and you get non-blocking bidirectional communication with your microcontroller over the SWD lines (SWDIO and SWCLK) at an incredible bandwidth. When you add the RTT library to your code, it creates a couple of ring buffers in memory with a header that can be easily found like 0xF0CACCIA or 0x1234ABCD. What the J-Link Viewer software does, is scan the contents of RAM for that header, then it can just read from and write to the ring buffer structure.

Get the Android app

Or read this on Hacker News

Read more on:

Photo of ARM

ARM

Photo of masses

masses

Photo of link rtt

link rtt

Related news:

News photo

SkiftOS: A hobby OS built from scratch using C/C++ for ARM, x86, and RISC-V

News photo

Qwen 3 now supports ARM and MLX

News photo

ARM is great, ARM is terrible, and so is RISC-V