Memory error detector for embedded systems?

What are the most useful tools for finding memory management errors in embedded systems? Can valgrand do this? What contribution do they need? Source? Object Code?

Is there any difference if I use the embedded OS or a separate embedded application?

+4
source share
2 answers

Two things we do to detect memory problems:

1 / Preventive measure: use Grammatech CodeSonar . As a static analyzer, it can detect a memory problem.

2 / Built-in control for stack control and heap usage .

3 / Globally, try not to use dynamic memory allocation, or at least limit the use of a new keyword when initializing the firmware. You will avoid heap fragmentation and memory problems.

+3
source

I suggest you take a look at the Walter Bright MEM package.

Description: http://www8.cs.umu.se/~isak/snippets/mem.txt

The code can be found at: http://www8.cs.umu.se/~isak/snippets/

0
source

Source: https://habr.com/ru/post/1380516/


All Articles