Standards, Methods, and Tools for Static Analysis of Embedded C/C++ Code

Standards, Methods, and Tools for Static Analysis of Embedded C/C++ Code

In embedded C/C++ development, due to the flexibility and complexity of the language, defects such as memory leaks, buffer overflows, and undefined behaviors are prevalent. Static Code Analysis (SCA) is a technique that can identify potential issues before code compilation and execution, making it an indispensable part of building high-reliability and high-security software. This article … Read more

Static Analysis Standards, Methods, and Tools for Embedded C/C++ Code

Static Analysis Standards, Methods, and Tools for Embedded C/C++ Code

Follow usLearn Embedded Together, learn and grow together In C/C++ development, due to the flexibility and complexity of the language, defects such as memory leaks, buffer overflows, and undefined behavior are rampant. Static Code Analysis (SCA) is a technique that can identify potential issues before code compilation and execution, making it an indispensable part of … Read more

Comparison of Coding Style Differences Between µCOS and FreeRTOS

Comparison of Coding Style Differences Between µCOS and FreeRTOS

10 to 20 years ago, µCOS was the first choice for many beginners. Ten years later, FreeRTOS has become the preferred choice for many newcomers.Why was µCOS so popular in the past, but now it receives little attention?As a once “popular” RTOS, although µCOS is not as focused on by newcomers today, its coding style … Read more

The Dark Forest of C Language Syntax: 6 Syntax Assassins That Can Cause Microcontroller Catastrophes

The Dark Forest of C Language Syntax: 6 Syntax Assassins That Can Cause Microcontroller Catastrophes

▌When your code compiles, the disaster is just beginning(Motor brake signals turning into throttle commands / Ventilator tidal volume calculators starting to dance / Satellite attitude control systems initiating a space waltz—these real incidents stem from what you thought were harmless syntactic sugars) 1. Quantum Entanglement of Function Declarations ‘Weapon Code’ void (*get_handler())[]; // You … Read more

Common Coding Standards for FreeRTOS

Common Coding Standards for FreeRTOS

According to statistics from a research institution, currently FreeRTOS has the highest market share in the global RTOS market. Of course, we do not know the specific methods of this statistic, but FreeRTOS is indeed very active. Here, I would like to ask everyone, do you have many friends or colleagues around you who use … Read more