Content originally posted in LPCWare by TheFallGuy on Wed Jun 06 00:04:28 MST 2012
STACK_OFFSET is defined in the MCU Linker/Target settings and it appears the default is zero.
Of course, this only works if you are using the Managed Linker Script. If you are providing your own linker scripts, then you do not have any of these macros available