Content originally posted in LPCWare by CodeRedSupport on Wed Jul 28 01:10:40 MST 2010
At the end of a build, the size of code, data and bss is displayed.
Flash = code+data
RAM = data+ bss
There is no way to determine the amount of stack used. The stack used depends on:
- how many nested functions are called
- how much recursion you use
- how many nested interrupts can occur
- how any locals you use in each function
- etc
Sorry, but this is not something that we can tell you - you have to work it out yourself. Did you try the example provided by NXP? That will give you an *ESTIMATE* of your stack usage.