3.4.5 AVR OCD Message Sampler

Used to read out data from the OCD message register on some AVR devices. Only megaAVR® devices JTAG interface, XMEGA® devices and AVR devices with UPDI have this capability.

Table 3-45. AVR OCD Message Sampler
FieldSizeDescription
DATA_SAMPLER1 byte0x8A
SAMPLE_AVR_OCD_MSG1 byte0x03
ENABLE1 byte

0x00: disable

0x01: enable

FLAGS4 byte
Bits 1:0: destination:
  • b00: send to DGI as data
  • b01: send to HID (reserved)
  • b10: send to DGI as print
  • b11: reserved

Response:

Table 3-46. AVR OCD Message Sampler Response
FieldSizeDescription
DATA_SAMPLER1 byte0x8A
SAMPLE_AVR_OCD_MSG1 byte0x03
Status1 byte

Status code

0x00: OK

0xFF: Error

Note: This feature is in a beta stage and should be used with caution.