|Home > API reference > Target > write_memory()|
memory_space = None,
size = 1,
count = None,
do_side_effects = False)
Write a byte array of length
count to memory.
The data to write. If
count is 1, this can be an integer. Otherwise it must be a byte array with length >=
Size of the memory access unit in bytes. Must be one of 1, 2, 4, or 8.
Number of units to write. If None,
count is automatically calculated such that all data from the array is written to the target.
If True, the target must perform any side-effects normally triggered by the write, for example triggering an interrupt.