Leo Rossi

Memory problem with MC13213-SRB

Discussion created by Leo Rossi on Jul 19, 2007
Latest reply on Jul 19, 2007 by Alban Rampon
I feel like RAM memory runs out sometimes: the UART stops sending
correct characters and the MCU seems blocked.

How can I check if I have exhausted my RAM?
I usually initialize a dynamic var and see its address,
then check if it is in the upper part of the RAM: but
unfortunately sometimes the heap could increase from the
lower part of the RAM and collide with the upper one;
in that case, RAM is exhausted.

Someone solved this problem?
Is there a way to trash unusued vars from the RAM?