Monthly Archives: July 2014

STM32F4 – mbed Your Code: Zero Switching Costs When Changing ARM Platforms

What would general Ackbar say if he saw you using a firmware code directly in an user application? It’s a trap, indeed! Just compare the device specific details of this and this main functions. The former depends on the firmware … Continue reading

Posted in Embedded Systems, STM32F4 | Tagged , , , , , | 2 Comments

STM32F4 – Code Optimization

The use of C++ language typically increases memory footprint (compared to C). Given the fact embedded systems usually have limited computing/memory resources, this is a very bad news! Luckily, we can use various optimizations to reduce space size or improve … Continue reading

Posted in Embedded Systems, STM32F4 | Tagged , , , , | Leave a comment

STM32F4 – Build Your Own GNU ARM Cross-Toolchain From Scratch

In this tutorial I describe how to build your own GNU ARM cross-toolchain from scratch. I use the latest source available: GCC 4.9.1 4.9.2; embedded C libraries: newlib 2.1 and size optimized newlib-nano 2.1; binutils 2.24 2.25; GDB 7.7 I also … Continue reading

Posted in Embedded Systems, STM32F4 | Tagged , , , , , | 2 Comments

STM32F4 – Object-oriented Programming with Embedded Systems (C++ /w STL)

In this tutorial I demonstrate that object-oriented programming can be used with embedded system using open source tools and the C++ language. Furthermore, I demonstrate the use of the STL library with C++11 features. Sneak peak, here, here and here.

Posted in Embedded Systems, STM32F4 | Tagged , , , , , , | 5 Comments

STM32F4 – Deploy FreeRTOS Embedded OS in under 10 seconds!

In this tutorial I describe how to build and deploy the FreeRTOS embedded operating system on STM32F4 Discovery board under 10 seconds. So why would you use operating system on such a small embedded system in the first place? Typically, … Continue reading

Posted in Embedded Systems, STM32F4 | Tagged , , , , | 32 Comments

STM32F4 – In-circuit Debugging

In this tutorial I describe how to configure STM32F4 in-circuit debugging environment using open source tools like GDB or Eclipse. This tutorial is based on the Template Project with Generic Makefile.

Posted in Embedded Systems, STM32F4 | Tagged , , , , | 2 Comments

STM32F4 – Template Project with Generic Makefile

In this tutorial I provide a template project based on the Hello world! project with a generic Makefile that is easily-customizable. This reduces the overhead to create the project environment, because you may change, add or remove source files without … Continue reading

Posted in Embedded Systems, STM32F4 | Tagged , , , , , | 1 Comment