Tagged articles
embedded C
11 articles · Page 1 of 1
This article explains how missing volatile causes infinite loops when waiting for interrupt-set flags, demonstrates compiler optimization caching variables in registers, and clarifies volatile's limits in multi-core systems and atomicity guarantees.
Concurrencycompiler optimizationembedded C
0 likes · 11 min read

INSLIB is an open-source C library for inertial navigation that implements aviation-grade engineering practices including MC/DC testing, requirements traceability, and numerically stable UDU square-root Kalman filtering, designed for bare-metal embedded systems with multi-sensor fusion support.
DO-178CKalman filterMC/DC testing
0 likes · 12 min read

This article explains the fundamental differences between C arrays and pointers by examining memory layout, mutability, sizeof behavior, function parameter handling, multidimensional arrays, and practical best‑practice guidelines, providing clear code examples that reveal why declarations like char s1[] = "liangxu" and char *s2 = "liangxu" behave differently.
Best PracticesC++Memory Layout
0 likes · 14 min read
![Why char s1[] and char *s2 Aren’t the Same: Deep Dive into C Arrays vs Pointers](https://wsrv.nl/?url=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_jpg%2FIsrmVA0RIYPW1nAJrMmHpibicNeaHnBO6YBda03t5sT9RSwOToPd5nGYPDP2nEasScEMOWpUvH6aZib0ovlTXOnbw%2F0%3Fwx_fmt%3Djpeg)
This article explains why circular buffers are essential for efficient data‑stream handling in embedded systems, introduces the open‑source LwRB library, details its memory‑safe and thread‑safe design using C11 atomics, provides core data structures and example code, and compares ring buffers with normal buffers and message queues.
DMAcircular bufferembedded C
0 likes · 14 min read

The article explains how using a state‑machine approach in embedded C programs eliminates wasteful delay loops, improves CPU utilization, guarantees logical completeness for all event combinations, and produces clearer, more maintainable code structures.
CPU efficiencyembedded Clogic completeness
0 likes · 5 min read

The article explains how using a state‑machine approach in embedded C programs can eliminate wasteful delay loops, ensure logical completeness, and produce clearer, more maintainable code by structuring work around events and states.
CPU efficiencyCode Maintainabilityembedded C
0 likes · 5 min read

This guide explains what software timers are, their implementation principles in operating systems, and provides a complete STM32‑based example with data structures, state machines, and full C code for initialization, start, update, stop, and status queries.
CallbackSTM32embedded C
0 likes · 10 min read

This article explains what software timers are, their implementation principles in operating systems, and provides a detailed STM32-based example—including clock tick handling, data structures, state management, and full C code for initializing, starting, updating, stopping, and testing timers.
CallbackSTM32embedded C
0 likes · 10 min read

The article warns that overusing global variables in os‑less embedded C projects creates tangled code, blurs system layers, and leads to maintenance nightmares, then offers two core principles and practical tips to limit, encapsulate, and manage globals for more reliable firmware.
Best Practicesembedded Cglobal variables
0 likes · 7 min read

This article explains the latest updates to a table‑driven parameter management library for MCU devices, covering unified parameter definitions, macro‑based registration, key‑value and non‑key‑value storage options, configurable trimming, macro and function interfaces, and provides detailed C code examples and serialization demos.
MCUSerializationembedded C
0 likes · 11 min read

The author discovers an unusual macro definition in kernel source that omits the usual parameter list, explains the standard macro usage, shows the original and altered code snippets, and highlights why the macro without arguments works, offering a practical insight for C and embedded developers.
C languageC macrosembedded C
0 likes · 2 min read
