Stack Usage
Stack Usage is performed by seeding the specified memory range with a pattern. Usage is considered to be a memory where pattern was overwritten.
Stack Usage feature can only function in a bare-metal, non-OS application. OS applications will allocate a separate stack to each task and possibly provide their facilities to assess stack usage. |
To configure stack usage select Debug / Configure Session / Applications / Stack Usage.
Enable stack usage monitoring. By default this feature is disabled.
Select suitable mode:
•Size bytes following Start
•From Start to (excluding) End
•From Start to (including) End
Fill pattern - Determine the 8-bit pattern used to seed the stack.
End - Determine the end of the stack (if End/Last is used to calculate the size of the stack; this should be the high address, even if the stack is used top-down). Either specific address or a symbol with the end address should be entered.
Size - Determine the size of the stack (if Size is used to specify the size of the stack). Either a specific value or a symbol with the stack size should be entered.