Content originally posted in LPCWare by gwlindberg on Thu Dec 03 10:04:11 MST 2015
I'm using the tool chain installed with LPCXpresso.
I just looked at the map file and Ram0_4 is mentioned in the definition for the stack.
I was getting an error the other day about running out of memory in .bss. Both Ram1_4 and Ram2_4 are listed as .bss and .data, so there should be 8K for them, but I was running out of room at 4K.
So, my question remains, there are three banks, what are they used for:
bss, heap, stack, something else?
How is data distributed between the regions, Initialized variables, uninitialized variables?
I would like to reduce the size of the heap and the stack, as I won't be using much of either of them, but what do I change?
It would be nice if there was some documentation somewhere that explained this.
While I'm at it, where is the memory that is used by the ROM API routines, do I need to specify something somewhere so my application doesn't stomp on it and vice versa?