4.8.2.3 Data Breakpoint Configuration Window for XMEGA®

This window provides configuration options related to the data breakpoint for XMEGA devices.

Location

Enter a specific address in RAM (e.g., 0x8004) directly or an expression that evaluates to an address in RAM (e.g., &x). Make sure the expression you enter represents the address of the data to monitor.

Note: Data breakpoints on local variables can result in false hits due to the reuse of stack memory. A workaround is to declare it as static for debugging purposes.

Access Mode

Configure the breakpoint to break on the specific Access Mode. Three types of access modes are supported:

  • Read - Program breaks on read at a specified location.
  • Write (Default) - Program breaks on write at a specified location.
  • Read/Write - Program breaks on read or write at a specified location.

Data Match

Use the Data Match option to configure Data Breakpoint to compare the data at a specified location based on one of the following conditions:

  • Location content is equal to the value
  • Location content is greater than the value
  • Location content is less than or equal to the value
  • Location content is within the range
  • Location content is outside the range
  • Bits of the location is equal to the value
    Note: Bit Mask: This is an 8-bit value where bits with '1' are significant, and the bits with '0' are don't care.

    In general, for a given value V and bitmask M, the break event is triggered when the value in the location field VL satisfies the following condition:

    (V) & (M) == (VL) & (M)

    For example, using Value = 0xA0 and Bit Mask = 0xF0 will trigger a break event when the location field has the values between 0xA0 to 0xAF.

Note: The Condition Value field has to be 1 byte.