Paper
1 October 2018 Instruction trace analysis and enhanced debugging in embedded systems
Author Affiliations +
Proceedings Volume 10808, Photonics Applications in Astronomy, Communications, Industry, and High-Energy Physics Experiments 2018; 108081X (2018) https://doi.org/10.1117/12.2501487
Event: Photonics Applications in Astronomy, Communications, Industry, and High-Energy Physics Experiments 2018, 2018, Wilga, Poland
Abstract
In many applications microcontrollers run preemptive real-time operating systems and have to fulfill high reliability and performance requirements. Debugging and an evaluation of such systems require low-level access to the microcontroller state at every execution point. The modern MCU architectures contain special hardware modules, which generate the instruction trace and transmit it via specific physical interfaces. The execution traces provide accurate details of the program’s dynamic behavior. The trace information allows recreating the software context of the each executed instruction including instruction address, type of instruction, sometimes instruction arguments or the relevant branch target address. The collected data can be used for tracing the program control flow, verification of operating system operations or reliability metrics measurement (including code coverage or availability). The paper presents the original low-cost trace analyzing system for cortex-m microcontrollers. The author proposes a new methodology for the automatic trace collection during multiple test executions. The developed system provides several types of the program trace analysis. One of them is an anomaly detection of a firmware execution. The anomaly detection is based on a commonly known clustering algorithm with the distance metric designed by the author and the trace data preparation method. The usefulness of the system has been experimentally verified while testing an original embedded system.
© (2018) COPYRIGHT Society of Photo-Optical Instrumentation Engineers (SPIE). Downloading of the abstract is permitted for personal use only.
Kazimierz Krosman "Instruction trace analysis and enhanced debugging in embedded systems", Proc. SPIE 10808, Photonics Applications in Astronomy, Communications, Industry, and High-Energy Physics Experiments 2018, 108081X (1 October 2018); https://doi.org/10.1117/12.2501487
Advertisement
Advertisement
RIGHTS & PERMISSIONS
Get copyright permission  Get copyright permission on Copyright Marketplace
KEYWORDS
Failure analysis

Embedded systems

Operating systems

Microcontrollers

Detection and tracking algorithms

Control systems

Profiling

Back to Top