Debugging is one task every developer wants to avoid but it is unfortunately a necessary evil of software development. When the time comes to roll-up your sleeves and start a debugging session, there are 7 tips that every developer should be mindful of. Tip #1 – Take controlled baby steps When a bug creeps into … Continue reading Tips and Tricks – Debugging Embedded Software
Tag: assert
Embedded Basics – Back to basic best practices …
No matter how wide spread and common place I believe embedded software best practices are, I continually come up against engineers and companies that are either just getting started or in such a frenzy that the basics get thrown out the window. Here are some basic best practices to keep in mind no matter how … Continue reading Embedded Basics – Back to basic best practices …
Tips and Tricks – Best Practices for Programming Defensively in C
Best practices are meant to be fundamental, essential practices that every firmware application should follow. Programming defensively has always been an important software skill. Below are a few best practices for programming defensively in C that firmware developers should keep in mind: Check inputs and outputs of functions Check the return value of functions (they … Continue reading Tips and Tricks – Best Practices for Programming Defensively in C
Tips and Tricks – When to ASSERT or not ASSERT …
that is the question. The use of assertions often confuses even the most experienced developers. Developers should be considering whether the expression they are going to ASSERT is a potential bug condition or whether it is an attempt to trap an error. An error in this case would be a run-time condition that should be … Continue reading Tips and Tricks – When to ASSERT or not ASSERT …