AnsweredAssumed Answered

Dynamic Memory Usage

Question asked by nanos on Dec 4, 2013
Latest reply on Dec 6, 2013 by rocketdawg
Hi guys,
I have to do a RAM check routine that performs Class-B controls on pre-assigned (probably all RAM) memory block.
The first doubt that rise is :
if I allocate the memory statically I can't free it (or release them, as you prefear) at the end of the tests, right?
if I define a memory section in linker script I can't release them at the end of the tests, right?

I think that dynamic allocation can be usefull (may be more complicate to implement...).  The problem of fragmentation of data, cause of resources releasing, can introduce several troubles.

Has anyone addressed this issue in some previous experience?

Thanks &