7.1.23 Memory Write

Writes memory on the target.

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

Table 7-29. Memory Write Command Format
FieldSizeDescription
CMD_AVR8_MEMORY_WRITE1 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.
Asynchronous1 byte

0x00 = write first, then reply

0x01 = reply first, then write

Datan bytesPayload restrictions apply
Note: Any error encountered during an asynchronous write will be reported on the following write.

Responses: