Implementing J-Link RTT for ARM Microcontroller Debugging
By
kristianp
A five-star bake. Worth schmearing, sharing, saving.
Summary
This article explains how to implement J-Link RTT (Real-Time Transfer) for bidirectional logging over SWD on ARM microcontrollers, providing a practical alternative to traditional debugging methods like printf debugging or pin toggling. The author demonstrates how to use semihosting on any ARM CPU with minimal code, making advanced debugging accessible even on inexpensive microcontrollers.
Key quotes
· 4 pulledYou can use semihosting on any ARM CPU to send and receive data in a few lines of code.
In 99% of cases however, most people resort to either firing up a debugger or logging to a console (aka. printf debugging).
The first thing I do whenever I start working with a new microcontroller platform...
How to do bidirectional logging over SWD on ARM.
You might also wanna read
wolfCOSE: A Lightweight COSE + CBOR Library for Embedded Systems with PQC and FIPS 140-3 Support
wolfCOSE is a lightweight C library implementing CBOR (RFC 8949) and COSE (RFC 9052/9053) for embedded systems, using wolfSSL as the crypto
Running Rust and Slint on a Jailbroken Kindle Paperwhite
A developer jailbreaks their 7th generation Kindle Paperwhite to use it as a nightstand clock, then explores running Rust (and Slint) on the
MuseLab nanoCH32H417: $17 RISC-V MCU Board with USB 3.0 and Fast Ethernet
MuseLab has released the nanoCH32H417, a third-party development board for the WCH CH32H417 dual-core RISC-V MCU. Priced at $17, the board f
cnx-software.com·4d agoFlipper One Technical Documentation: Hardware, Software, and Testing Guide
This is technical documentation for the Flipper One device, covering hardware specifications (power subsystem, Wi-Fi/Bluetooth, M.2 port, GP
Investigating Intermittent ECONNRESET Errors in Local TCP Connections (Part 1)
A technical blog post investigating mysterious ECONNRESET errors occurring between two services communicating over TCP on the same machine.
rkdebian: Run Debian 12 on Doogee U10 Tablet via SD Card Without Bootloader Unlock
This article presents rkdebian, a build system that enables running full Debian 12 Bookworm on a Doogee U10 tablet (RK3562 chipset) without
