Emergency Guide for Linux System Crashes: A Complete Practical Process from Core Dump Configuration to GDB Debugging

Emergency Guide for Linux System Crashes: A Complete Practical Process from Core Dump Configuration to GDB Debugging

“The program suddenly freezes, and the log only reports ‘Segmentation fault’” “The kernel directly panics while running multiple threads” — Engineers working on Linux development have almost all encountered such “crash moments”. Facing on-site issues without debugging information is like a blind person trying to touch an elephant, and core dumps are the “key evidence” … Read more

A Comprehensive Guide to UART Communication

A Comprehensive Guide to UART Communication

Hello everyone, welcome to <span>LiXin Embedded</span>. Do you remember those bulky serial printers, mice, and modems on old desktop computers? The plugs were larger than fingers and had to be screwed in place—yes, back then most data was quietly transmitted via UART. Although USB has almost dominated all peripheral interfaces today, serial communication has not … Read more

Core Skills in C Programming

Core Skills in C Programming

1. Core Skills in C Programming These are the foundational skills you must master: Pointers and Memory Management Pointer arithmetic, relationship between pointers and arrays Multi-level pointers, pointers to functions Memory layout: stack, heap, BSS, data segment Structures and Unions Memory alignment, padding Bit fields Nested structures and flexible array members Preprocessor Techniques Macros, conditional … Read more

Understanding the Working Principle of GDB in 4 Diagrams

Understanding the Working Principle of GDB in 4 Diagrams

Hello everyone, this is IoT Heart. GDB is a debugging tool frequently used by Linux developers, and I believe most readers are familiar with using the gdb command to debug programs. So, are you curious:Why can gdb debug our programs? In this article, we will explore this.1. What is GDB? GDB is a debugger for … Read more

As a Product Manager, I Used Workflow Thinking to Understand Python Debugging!

As a Product Manager, I Used Workflow Thinking to Understand Python Debugging!

Hello everyone, I am Da Cheng! I am a product manager, and I usually drag and drop workflows in Coze, which is as smooth as flowing water. But to be honest, my programming skills are only at the level of ‘hello world’. However, sometimes when business requirements become complex, or when I want to localize … 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

The sys Module in Python: The “System Manager” Behind the Code That Makes Your Programming More Efficient

The sys Module in Python: The "System Manager" Behind the Code That Makes Your Programming More Efficient

Hey friends! Imagine you are typing away on your keyboard writing a Python script, and suddenly it gets stuck—maybe due to an incorrect path, version incompatibility, or messy input parameters. You might think, why does this thing always seem to work against me? Don’t worry, at this moment, a low-key hero can save the day: … Read more

The Ultimate HTTP Debugging Tool! A Command-Line Client with 48,000 Stars!

The Ultimate HTTP Debugging Tool! A Command-Line Client with 48,000 Stars!

Introduction: An HTTP request command-line client implemented in Python, which I understand as the Python version of curl, but it offers more user-friendly and easier-to-use commands and options. HTTPie is a command-line tool for HTTP implemented in Python, providing more human-friendly and interactive commands and options, which can be used for testing, debugging, and interacting … Read more

Analysis of Answers for Assembly Language Experiment 10-2

Analysis of Answers for Assembly Language Experiment 10-2

“Assembly Language”, 3rd Edition by Wang Shuang Chapter 10: CALL and RET Instructions Experiment 10: Writing Subroutines (Page 206) ———————————— Note: Since Experiment 10 has three questions, and each question is more complex than previous experiments with longer code, it is divided into three articles. This is the reference answer for Question 2. ———————————– 2. … Read more

Common Pitfalls in Embedded C Programming: Have You Encountered Them?

Common Pitfalls in Embedded C Programming: Have You Encountered Them?

C is a very popular programming language due to its simplicity and wide application across various fields. However, due to the characteristics of C, it is also prone to certain errors and pitfalls that can lead to program crashes, data loss, or security vulnerabilities. This article will introduce 15 common pitfalls in C programming and … Read more