Toe

QE128 how to determine stack/heap/ram size?

Discussion created by Toe on Aug 1, 2008
Latest reply on Aug 1, 2008 by Rich Testardi
I'm using a MCF51QE128 and I'm starting to see some strange problems that I can massage away, but I'm concerned I'm running out of space.  I'm not sure how to tell if I'm overflowing my stack or RAM space.  Is there a good way to see this using the tools?  I'm using CW6.1.  Is there a document that I've missed describing how stack, heap, and ram are managed in the 8k space?

Also, is there some type of limitation for how stack and heap sizes must be created?  The default lcf uses 1k for stack and 1k for heap, but adding to only the stack or heap prevents the solution from running.

Outcomes