To trigger on the nth iteration of a loop
Traditional debugging requires print statements around the area of interest.
This is not possible in most embedded systems designs, but the analyzer
allows you to view the system’s behavior when a particular event occurs.
Suppose that your system behaves incorrectly on the last iteration of a loop,
which, in this instance, happens to be the 10th iteration. You can use the
analyzer’s triggering capabilities to capture that iteration and subsequent
processor activity.
1
Go to the state analyzer’s Trigger menu.
2
Define the terms LP_START and LP_END to represent the start and
end addresses of statements in the loop, and LP_EXIT to represent
the first statement executed after the loop terminates.
3
Change State Sequence Level 1’s macro to "Find event2 n times after
event1 before event3 occurs."
4
In the pop-up, enter the following sequence specification:
•
While storing anystate Find "LP_START" "9" times after "LP_END" before
"LP_EXIT" occurs.
You should use your value for n-1 instead of "9" in the sequence specification
above.
Trigger setup for triggering on the 10th iteration of a loop
Single-Machine Trigger Examples
To trigger on the nth iteration of a loop
5-6
Summary of Contents for 1660CS
Page 5: ...Introduction iv ...
Page 16: ...1 Logic Analyzer Overview ...
Page 24: ...2 Connecting Peripherals ...
Page 33: ...2 10 ...
Page 34: ...3 Using the Logic Analyzer ...
Page 55: ...3 22 ...
Page 56: ...4 Using the Trigger Menu ...
Page 75: ...4 20 ...
Page 76: ...5 Triggering Examples ...
Page 109: ...5 34 ...
Page 110: ...6 File Management ...
Page 119: ...6 10 ...
Page 120: ...7 Reference ...
Page 221: ...7 102 ...
Page 222: ...8 System Performance Analysis SPA Software ...
Page 241: ...SPA Time Interval System Performance Analysis SPA Software SPA measurement processes 8 20 ...
Page 252: ...9 Concepts ...
Page 284: ...10 Troubleshooting ...
Page 298: ...11 Specifications ...
Page 311: ...11 14 ...
Page 312: ...12 Operator s Service ...
Page 324: ...Troubleshooting Flowchart 2 Troubleshooting To use the flowcharts 12 13 ...
Page 337: ...Glossary 4 ...