Advanced Techniques for Embedded Logging Systems: The Art of Transitioning from Recording to Diagnosis

In embedded development, a basic logging system can record the program's runtime status, but a powerful logging system can proactively help us discover and diagnose issues. Once the basic functionality is implemented, we can use some advanced techniques to transform the logging system from a passive "recorder" into an active "diagnostic assistant". Hex Dump — … Read more

How to Design a Logging System for Embedded Software

How to Design a Logging System for Embedded Software

Scan to FollowLearn Embedded Together, learn and grow together In embedded system development, a logging system is a crucial debugging and diagnostic tool. A well-designed logging system can help developers quickly locate issues, analyze system behavior, and monitor operational status. This article will detail how to develop a fully functional embedded software logging system. Requirements … Read more

QT C++: Digital Management System for Device Management

QT C++: Digital Management System for Device Management

Further enhance the digital management system for device management in terms of integrity, usability, and maintainability, focusing on plugin management, database, device communication, configuration, logging, and main window status for functional enhancements. Below is the detailed design process: Enhancing Plugin Management Functionality Design Objective: Achieve lifecycle management of plugins (start/stop), enable/disable, dependency checks, and version … Read more

C++ Notes: Techniques for Locating Runtime Errors – Turning Crashes into Controlled Debugging

C++ Notes: Techniques for Locating Runtime Errors - Turning Crashes into Controlled Debugging

The program compiled successfully, but crashes at runtime? Exceptions are thrown but the source cannot be found? Learn these runtime error localization techniques to transform your C++ program from “mysterious crashes” to “precise debugging”! 📖 Introduction 🎯 Why Master Runtime Error Localization? Compiling successfully does not equal a correct program! Runtime errors are one of … Read more

High-Performance Logging System in C: Asynchronous and Zero-Copy

High-Performance Logging System in C: Asynchronous and Zero-Copy

Overview A high-throughput, low-latency logging system relies on two key aspects: deferring synchronous write delays to the background (asynchronous) and minimizing memory copies (zero-copy). This article provides engineering-level implementation ideas, reusable code snippets, and performance comparisons, suitable for direct adaptation in production systems. In Short • Decouple log collection (format) from disk writing: the main … Read more

Debugging Methods and Techniques for ATF Architecture 3.4 (GDB, JTAG, Logging System)

Debugging Methods and Techniques for ATF Architecture 3.4 (GDB, JTAG, Logging System)

Table of Contents 3.4.1 Overview of Debugging 3.4.2 GDB Debugging Methods Basic Configuration Multi-Stage Debugging Techniques Common Issues Handling 3.4.3 Practical JTAG Debugging Hardware Connection Configuration Key Debugging Scenarios 3.4.4 Using the Logging System TF-A Logging Framework Log Output Configuration Advanced Debugging Techniques 3.4.5 Typical Debugging Cases Case 1: BL2 Image Load Failure Case 2: … Read more