# Atmel EDBG-based Tools Protocols
Protocol Commands

### Hardware Breakpoint Set

Allocates hardware breakpoint resources on the target OCD module.

Note: tinyAVR and megaAVR(debugWIRE) has no hardware breakpoint resources.

Note: megaAVR (JTAG) supports 3 hardware breakpoints.

Note: AVR XMEGA supports 2 hardware breakpoints.

Table 123. Hardware Breakpoint Set command format

Field | Size | Description
--- | --- | ---
CMD_AVR8_HW_BREAK_SET | 1 byte | Command ID
Version (0x00) | 1 byte | Command version
Type | 1 byte | 0x01: program break
Number | 1 byte | Breakpoint number to set (1, 2 or 3)
Address | 4 bytes | Address (word address)/ value to use
Mode | 1 byte | 0x03: program break

Responses:

- OK

- FAILED

Prev | Up | Next
| Home |