1. For COFF it looks like this: startAddress = (uint32_t)_symval(&_stack); endAddress = (uint32_t)_symval(&_STACK_END); For EABI it looks like this: startAddress = (uint32_t)_symval(&__stack); endAddress = (uint32_t)_symval(&__TI_STACK_END); 2. You could use the method above or you could deliberately write to an address near the end of the stack that's within the monitored area to trigger the watchpoints. Whitney
↧