24 October 2022 by Phillip Johnston • Last updated 16 October 2024Memory is usually viewed as a limited resource in embedded systems. As a result, monitoring memory usage is a common analysis and quality enforcement activity. This is often done for both resource management reasons and preventing critical errors, such as stack overflows, heap exhaustion, and heap fragmentation. Stack Usage A linker can usually check whether or not your global variables will fit into the available RAM, but it cannot tell how much stack you need. This means that there is guesswork involved in sizing stacks. With limited memory, we …
Continue reading “Monitoring Memory Usage”
