This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Max. Allowed size for variables

I'm using the Keil DK-ARM suite to write code for the LPC2129. I want to read-out an ADC and store 1000 samples in an array. When I locally declare an array, the debugger comes up with: error 65: access violation, no write permission. I guess that the size of the array was too large for its memory. However, when I globally declare the array, there seems to be no problem at all.
So my question is how the memory reservation for variables is compiled in uVision3? Why does it work for globals and not for locals?