Programming

Memory Leak - Analysis and Detection Strategies

The first thing that comes to mind when we talk about dynamic memory and leaks is Valgrind. You may also be familiar with static analysis tools, such as Coverity. It could be DevPartner or Boundschecker or many such tools that I won’t dare attempt to list here. But what if...

Servo Motor Interface - Looking behind Arduino Servo library

Have you ever looked into the Arduino source files? Well you should be!! I have been hanging around there for quite some time now. The Arduino Servo class has half a dozen functions to handle all the servo related tasks like the attach(), read(), write() and detach(). There was too...

Implementing Circular/Ring Buffer in Embedded C

Embedded software often involves state machines, circular buffers and queues. This article will give you an overview of the data structure and walks you through the steps involved in implementing circular/ring buffers in low memory devices. Table of Contents Theoretical Background What is a circular buffer? Synchronization and race conditions...

Cool C Programming Tricks For Embedded Software Developers

Proficiency in C is an essential skill set for embedded software developers. In this post we will see some really cool C programming tricks that you should have already known. If you didn’t, it’s time to take a pen and paper. Be warned this is just a small collection of...