-
Book Overview & Buying
-
Table Of Contents
Practical Debugging for Embedded ARM Systems
By :
This section will take a look at another classic set of bugs that often appear on embedded systems: memory leaks, buffer overflows, and null pointers.
We will learn what the typical causes of these bugs are and how they can be efficiently debugged with the introduced debug features.
While some of these bugs will trigger system crashes as discussed in the first section of this chapter, it may not always be best to analyze these bugs as shown there, so in my opinion, these specific bug types deserve to have their own section in this chapter.
Before being able to analyze the issue, we must first understand what these issues are and how they appear.
Memory leaks will mostly appear when performing dynamic memory allocation in your target application.
So, anytime you allocate a memory section in your RAM, you have to actively manage that memory section. Once the allocated memory section is no longer used...