19–21 Nov 2026
"Alexandru Ioan Cuza" University of Iasi and "Gheorghe Asachi" Technical University of Iași
Europe/Bucharest timezone

MCU-MDT: A Lightweight, Portable UART Debugging Monitor for Resource-Constrained Microcontrollers

19 Nov 2026, 17:45
15m
Room 2

Room 2

Paper presentation Doctoral Symposium Doctoral Symposium

Speaker

Nicoleta-Alexandra Trancă (Universitatea Națională de Știința si Tehnologie Politehnica din București)

Description

Debugging resource-constrained microcontrollers often requires dedicated hardware probes or application-specific instrumentation, complicating development on low-cost embedded platforms. This paper presents MCU-MDT, a portable software debugging monitor that provides memory inspection and execution control through an existing UART connection without requiring a dedicated debug probe. The architecture separates a Python host application, responsible for command validation and device metadata interpretation, from a compact C firmware library that processes fixed-length, CRC-protected binary packets. A twelve-function hardware abstraction layer isolates platform-specific operations, allowing the core firmware to remain unchanged across AVR and STM32 targets. The monitor supports memory and peripheral-register access, cooperative software breakpoints, and masked software watchpoints. Cooperative breakpoints suspend application progress while preserving communication with the host. Evaluation covers ATmega328P, STM32F030F4, and STM32F103-compatible configurations through hardware testing and complementary simulation. With size optimization enabled, polling builds occupy 2,656–2,894 bytes of Flash and 248–263 bytes of static SRAM, without dynamic memory allocation. Reported memory-read round-trip latency is approximately 18.8 ms at 19,200 baud, indicating that serial transmission dominates transaction time. These results demonstrate the feasibility of a common debugging interface across constrained microcontroller platforms with a small memory footprint, supporting embedded development and teaching environments where dedicated probes are unavailable.

Authors

Nicoleta-Alexandra Trancă (Universitatea Națională de Știința si Tehnologie Politehnica din București) Mr Mihai-Bogdan Stoica (Universitatea Națională de Știința si Tehnologie Politehnica București) Dr Viorel Bostan (Technical University of Moldova)

Presentation materials