Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
9 years, 9 months ago.
Global array size limit
If I create a global variable array, the size does not get included in the build details and if I select a size that is bigger than available RAM, I do not get an error. For example "int x[100000]" does not produce an error in the KL05Z. If I refer to x[99999] in my code, then I get an out of space error. How do I know how much RAM I have used? I realize that any non-static variable declared inside a function will be carved out of the stack, but I would think any global variable should reduce the RAM used in the build details.
Thanks, Tom