7.1.22 Memory Read Masked

Reads memory on the target, skipping some locations by applying a mask. Can be used, for example, to prevent reading locations which are implemented as FIFO pointers which are altered by reading them.

Memories can only be accessed when the device is in STOPPED mode.

Table 7-28. Memory Read Masked Command Format
FieldSizeDescription
CMD_AVR8_MEMORY_READ1 byteCommand ID
Version (0x00)1 byteCommand version
Type1 byteMemory type to access. For overview of memory types, see Memory Types.
Address4 bytesStart address (byte address) of memory to access
Bytes4 bytesNumber of bytes to access. Payload restrictions apply.
Maskn/8 bytes

Mask to apply while reading

1 bit per location byte, 0 = skip location, 1 = read location

Responses: