Tips and Tricks – 7 Cardinal Sins of Embedded Software Development

Every industry has their best practices and their sinful practices.  The cardinal sins are the practices that many are aware of but that are just too tempting or too easy to fall into. The embedded software industry has a number of these cardinal sins but there are seven in particular that seem to have pervaded … Continue reading Tips and Tricks – 7 Cardinal Sins of Embedded Software Development

Ternary Operator versus the if/else statement …

When I’m teaching “C Programming for Embedded Systems”, I’m often asked whether the ternary operator should be used or an if/else statement. Hidden behind the question is really the need to know whether the ternary operator is more efficient than if/else. One might think that compilers today would generate identical code. Let’s take a quick … Continue reading Ternary Operator versus the if/else statement …

7 Characteristics to Consider when Selecting an RTOS

Selecting the right RTOS is a critical step in any embedded software development project. Selecting the wrong RTOS could affect project costs, time to market and have real-time implications on the behavior of the system. When selecting an RTOS, teams usually focus just on cost but there are seven characteristics that should be considered. Let’s … Continue reading 7 Characteristics to Consider when Selecting an RTOS

Tips and Tricks – Writing Portable Code using Compiler Intrinsics

All preprocessor directives are not created equal. A developer will have different preprocessor directives available depending on whether GNU C, IAR Embedded Workbench, Keil uVision or any other compiler is used. ANSI-C has a limited number of preprocessor directives that are included in the standard and can be considered portable. Compiler vendors have the ability … Continue reading Tips and Tricks – Writing Portable Code using Compiler Intrinsics