Hi,
I'm using CCS v4.1.2 to write code for the MSP430F5419.
In order to protect agaisnt stack overflow i've been placing a variable in the first posisiton that would get overwritten if the stack was to overflow into normal RAM variables, setting this to a particular value and then checking that it doesn't change. If it does then I know there has been a stack overflow and can perform a controlled re-start of the code.
At the moment to place the variable I've been compiling the code looking in the MAP file to find the variable with the highest address and then declaring another variable after this one that can perform the above task, then re-compiling. Is there an easier way to locate this variable in the correct place? (i.e. making sure it is the variable in RAM with the highest address).
Regards,
Ben