AWorks Programming: Memory Management in Embedded C Language

AWorks Programming: Memory Management in Embedded C Language

The C/C++ language differs from other languages in that it requires developers to manage memory resources themselves. Improper use of dynamic memory can easily lead to segmentation faults or memory leaks. In particular, memory leaks are often discovered only after the program has been running for a while, making it difficult for developers to locate … Read more

Embedded C Programming: Are Pointers Difficult?

Embedded C Programming: Are Pointers Difficult?

I am Lao Wen, an embedded engineer who loves learning.Follow me to become even better together!Pointers are everywhere Many beginners in C language find pointers quite difficult. In fact, pointers are present in many aspects of our lives, and we use them all the time. They make our lives more convenient. Without pointers, life would … Read more

Understanding and Practicing ARMv8 Bare Metal Code – The Concept of Bare Metal Code

Understanding and Practicing ARMv8 Bare Metal Code - The Concept of Bare Metal Code

This example code is derived from the sample code included in the ARM Development Studio: Arm\Development\Studio 2022.0\examples\docs\baremetal_v8. The following is an interpretation based on this type of example, gradually analyzing the implementation logic of bare metal code in conjunction with the characteristics of the ARMv8 architecture. 1. What is Bare Metal Code? Bare Metal code … Read more

Fundamentals of PLC Programming: A Beginner’s Guide to Address Allocation

Fundamentals of PLC Programming: A Beginner's Guide to Address Allocation

It’s unbelievable, I see someone asking about PLC address allocation again. It’s already 2024, and people are still struggling with this issue, which is a common problem for field electricians. What is there to discuss? Alright, for the sake of all the newcomers, I will talk about it today to save you from stepping into … Read more

estdlib: A Lightweight and Efficient C++ Standard Library Designed for Resource-Constrained Embedded Systems

estdlib: A Lightweight and Efficient C++ Standard Library Designed for Resource-Constrained Embedded Systems

C++ plays an increasingly important role in embedded system development, but the large size of the Standard Library (STL) and its reliance on dynamic memory often become bottlenecks. What to do? Don’t worry, today we proudly introduce a powerful tool: estdlib! It is a C++ standard library tailored for embedded environments, balancing functionality and efficiency, … Read more

Applications and Challenges of C++ in Embedded Development

Applications and Challenges of C++ in Embedded Development

Applications and Challenges of C++ in Embedded Development Introduction C++ is a powerful programming language widely used in various software development fields, including embedded systems. Embedded systems typically have characteristics such as limited resources and high real-time requirements, making the choice of an appropriate programming language crucial. This article will explore the applications of C++ … Read more

C++ Implementation of Nested Excel Functions: An Introduction to Recursive Thinking

C++ Implementation of Nested Excel Functions: An Introduction to Recursive Thinking

Hello everyone! Today, I will guide you through implementing the powerful nested function feature in Excel using C++. 1. Basic Principles of Nested Excel Functions Nested Excel functions have three characteristics: Hierarchical Calls: The parameter of one function can be another function Recursive Calculation: Calculation starts from the innermost function and gradually moves outward Type … Read more

C++ References and Reference Types: Efficient Use of Pointers

C++ References and Reference Types: Efficient Use of Pointers

C++ References and Reference Types: Efficient Use of Pointers In C++, both references and pointers are tools used for indirect access to variables, but they have significant differences. This article will detail references in C++ and their differences from pointers, along with code examples to help beginners understand. What is a Reference? In C++, a … Read more

Comprehensive Guide to C Language Unions: Differences Between Unions and Structures

Comprehensive Guide to C Language Unions: Differences Between Unions and Structures

Comprehensive Guide to C Language Unions: Differences Between Unions and Structures In the C language, a union and a structure are two important data types used to store different types of data. This article will detail their basic concepts, usage, and explain the differences between them. 1. Structure (Struct) 1. What is a Structure? A … Read more

Five Considerations for Microcontroller Embedded Programming

Five Considerations for Microcontroller Embedded Programming

In the process of microcontroller programming, if a designer can master multiple programming languages simultaneously, then that designer is undoubtedly a very talented individual. However, mastering assembly, C, and C++ at the same time is quite challenging, and many beginners struggle significantly while learning just one of these languages. This article specifically compiles opinions from … Read more