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?
For local variables you may need to adjust the stack sizes in STARTUP.S. Local variables are store on the CPU stack. Reinhard