I've got a variable declared inside a functions like so:
char dump[1024];
When the function executes and makes a call to another function from within, my processor goes off to never never land. I can reduce the buffer size from 1024 to say 64 and the problem goes away (my stack is 256).
Now, if I declare that same buffer with the static keyword then I can use my original size of 1024 without problems.
Can someone explain to me why declaring it as static effects the stack size on my ARM processor?
Thanks!