How to Initialize Variables in Embedded Programming?

Reply with “Embedded Base” to get more learning materials for free When writing code, we assign an initial value to variables to prevent uncertainty in their initial values due to the <span>compiler</span>. For numeric type variables, they are often initialized to 0, but how should other types of variables, such as <span>char</span>, <span>pointer</span>, etc., be … Read more

Embedded Programming Model | MVC Model

Hello everyone, I am the Mixed Content Master. In embedded / microcontroller project development, we often choose a major software framework based on actual conditions: bare-metal systems, front-end and back-end systems, RTOS, Linux, etc. In actual development, choosing the type of software architecture is just the first step. How do the various modules in the … Read more

Advanced Embedded Programming: Completely Solving Data Loss Caused by Communication Data Overwrite – Ring Buffer

01Introduction The Ring Buffer (also known as Circular Buffer) is a data structure used to efficiently store and manage data within a fixed-size array. It is particularly suitable for scenarios that require continuous reading and writing of data, such as audio processing, network communication, and real-time data stream processing. Below are the basic concepts, implementation … Read more

Embedded Programming Model | Observer Pattern

Hello everyone, I am the Mixed Content Master. This time we share a commonly used concept/programming model in embedded systems—the Observer Pattern. Overview of the Observer Pattern The Observer Pattern is a behavioral design pattern that focuses on establishing a dynamic subscription-notification mechanism between objects. It defines a one-to-many dependency between objects, so that when … Read more

Finding the Balance in Code Comments for Embedded Programming

In the vast field of embedded software development, code comments have always been a controversial topic. Some teams adhere to the belief that “code is documentation,” arguing that excellent code should be self-explanatory; while others advocate for detailed code comments, believing that comments can help other developers understand the logic and intent of the code … Read more

Advanced Embedded Programming | Detailed Flowchart of DSPS Protocol Stack Software on DA14531 (Organized with DeepSeek)

01Introduction: The DSPS (Dialog Serial Port Service) protocol stack is based on the BLE GATT protocol to implement serial data transmission. The core process is divided into four stages: initialization, connection management, data transmission, and low power control. Initialization → Broadcasting/Scanning → Establishing Connection → Data Transmission → Sleep/Wake → Disconnect → Loop 02Detailed Flowchart … Read more

Why Embedded Programming is Considered Complex?

Body Understanding embedded issues from a PC programming perspective is the first step; learning to think in embedded programming is the second step; combining PC and embedded thinking in practical projects is the third step. Many friends transition from PC programming to embedded programming. In China, few embedded programmers have graduated from computer science; most … Read more

What is Embedded Programming? How to Get Started and Improve?

Content Overview What is Embedded? What is Cross-Compilation? Getting Started and Improving in Embedded 1. What is Embedded? Embedded can be said to be one of the most widely covered and popular professions today. So, what is embedded? This question cannot be easily answered in just a few words. Embedded, in English, is “embedded,” meaning … Read more

Why Embedded Programming is Considered Complex?

I am Lao Wen, an embedded engineer who loves learning.Follow me, and let’s become better together! The first step is to look at embedded issues from the perspective of PC programming; the second step is to learn to think in embedded programming; the third step is to combine PC and embedded thinking and apply it … Read more

Official Website and Installation of STC Microcontroller Programming Software

Click the blue text to follow, reply with “entry materials” to obtain a comprehensive tutorial from beginner to advanced on microcontrollers Written by | Wu Ji (WeChat: wujidanpianji) Original work | Article 18 of the series Approximately 1244 words, reading time is about 5 minutes The STC microcontroller is a microcontroller based on the C51 … Read more