Implicit DSP/BIOS Instrumentation
Instrumentation
3-33
interrupt occurs. This can be useful for determining the system stack size
needed by an application. To determine the maximum depth of the stack,
follow these steps (see Figure 3-7):
1) In your .tcf file, set the monitor field for the HWI object to Stack Pointer.
You should also change the operation field to STS_add(–*addr).
These changes give you the minimum value of the stack pointer in the
maximum field of the STS object. This is the top of the stack, since the
stack grows downward in memory.
2) Link your program and use the nmti program, which is described in
Chapter 2,
Utility Programs
in the
TMS320 DSP/BIOS API Reference
Guide
for your platform, to find the address of the end of the system
stack. Or, you can find the address in Code Composer by using a
Memory window or the map file to find the address referenced by the
GBL_stackend symbol. (This symbol references the top of the stack.)
3) Run your program and view the STS object that monitors the stack
pointer for this HWI function in the Statistics Data tool.
4) Subtract the minimum value of the stack pointer (maximum field in the
STS object) from the end of the system stack to find the maximum depth
of the stack.
ROV displays stack information for all targets. (See Section 3.3,
Summary of Contents for TMS320 Series
Page 1: ...TMS320 DSP BIOS v5 40 User s Guide Literature Number SPRU423G April 2009 ...
Page 16: ...xvi ...
Page 152: ...Tasks 4 48 Figure 4 12 Trace from Example 4 7 ...
Page 168: ...Semaphores 4 64 Figure 4 14 Trace Results from Example 4 11 ...
Page 202: ...5 20 ...
Page 287: ...Index 9 Index Void 1 11 W words data memory 3 15 of code 1 5 wrapper function 2 29 ...
Page 288: ...Index 10 Index ...