Datasheet

PSoC Designer IDE Guide, Document # 001-42655 Rev *B 119
Debugger
7.5.4.1 Array Types Added to Global and Local Watch Variables
Array types were added to both Global and Local Watch Variables. Global and Local Watch Variable
array types must originate in C and not be exported from an .asm file. For example:
//--------------------------------
char sC[5];
signed char signedC[5];
int siI[5];
unsigned int uiI[5];
float fA[5];
long slL[5];
unsigned long uslL[5];
//-------------------------------
The example above shows declarations for all the supported array types.
The elements are displayed horizontally, separated by commas in both the Watch/Global Name and
Local Name windows. The radix can be changed from decimal to hexadecimal for all array types
except floats.
7.5.5 Dynamic Event Points
The Events window is selectable by clicking Debug > Events. It allows you to perform complex
debugging by configuring conditional breaks and traces.
While breakpoints allow you to select a program location and halt, Dynamic Event Points provide
multiple sequences of logical combinations and have multiple potential actions. Breakpoints allow
you to select locations within a program to stop, look around, and determine, “How did I get here?”
However, debugging is enhanced by the ability to stop and collect information about the target pro-
gram based upon specified conditions. An example scenario is “when variable OutputV gets set to
zero, turn trace buffer on.”
Dynamic Event Points help simplify the debugging process by providing this capability. They monitor
the processor to determine a match with logical operations of Program Counter (PC), data bus, data
address, instruction type, external logic signals, X Register, Accumulator, Stack Pointer, and Flags.
Typically, breakpoints have one logical input (PC) and one action (Break). Dynamic Event Points, on
the other hand, trigger actions when the specified logical condition occurs. An event point can trigger
the following actions: break, turn trace on or off, decrement the input counter, initiate an external trig-
ger, trigger the trace buffer, and enable an event sequence (these actions are triggered only with the
ICE-4000).
In summary, Dynamic Event Points provide you with the ability to:
Define complex breakpoints.
Characterize multiple test cases to be monitored and logically sequenced.
Perform any of the following actions: break, turn the trace on, turn the trace off, or set an external
trigger using the ICE-4000.
7.5.5.1 Configuring Events
Use the Events Window to enable or disable event settings anytime during a debug session. To con-
figure events:
1. Click Debug > Windows > Events to access debugger events.
2. Click your cursor in the first row, labeled ‘0’.
3. Below the rows are options for 8 and 16 bit threads. Check one or both depending on the needs
of your project. Enabling both thread options activates the Combinatorial Operator field.