Embedded software vs unit testing, mocking and dependency injection

Embedded software vs unit testing, mocking and dependency injection

As an embedded systems developer, I have often faced the challenge of integrating effective unit tests in an environment where hardware dependencies are an integral part of the development process. In this article, I want to share my experiences and techniques that have helped me overcome these challenges. I will focus on the use of…

Circular buffer as a key data structure

Circular buffer as a key data structure

Can the cyclic buffer, due to its simplicity, efficiency and multi-threaded security, be considered a key data structure in embedded software. In this article, we present the cyclic/circular buffer as an efficient and simple data structure often used in embedded software, especially for FIFO queues. We highlight its speed of operation, memory savings and safety…

Meson: a modern and efficient Build System for C/C++

Meson: a modern and efficient Build System for C/C++

What is Meson? Meson is an open sourcebuild system that is designed to be fast and as user-friendly as possible. The authors claim that when designing meson they had in the back of their minds that every second spent by a developer debugging a build system is a second wasted. To achieve the aforementioned ease of…

GPIO expander in a challenging environment – SX1509

GPIO expander in a challenging environment – SX1509

In embedded software, lighting LEDs is a simple task that can be a challenge in projects with limited PCB space. The problem is the lack of microcontroller pins. The solution is GPIO expanders, which allow multiple I/O to be handled via serial interfaces like I2C. The article discusses the challenges with latency in controlling LEDs…