Stack overflow checking

If you have a memory protection unit available, it is an excellent idea to make use of it since it will detect access violations such as stack overflows with better reliability than any of the software-based solutions (see Chapter 15, FreeRTOS Memory Management, the Using a memory protection unit section).

Another way of keeping an eye on the stack is to set up stack monitoring, which was also covered in Chapter 15FreeRTOS Memory Management, in the Keeping an eye on stack space section.

A real-world example of debugging a system that has a stack overflow and checking memory is covered in the next section. 

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
13.59.34.87