3.3.10 write_memory()

write_memory(address, data, memory_space = None, size = 1, count = None, do_side_effects = False)

Write a byte array of length size*count to memory.

Parameters

address
Address to begin writing to.
data

The data to write. If count is 1, this can be an integer. Otherwise it must be a byte array with length >= size*count.

memory_space
The memory space to write to. Default is None which reads the core's current memory space.
size

Size of the memory access unit in bytes. Must be one of 1, 2, 4, or 8.

Note:

Not all values are supported by all models.
count

Number of units to write. If None, count is automatically calculated such that all data from the array is written to the target.

do_side_effects

Deprecated.

If True, the target must perform any side-effects normally triggered by the write, for example triggering an interrupt.

Non-ConfidentialPDF file icon PDF version101421_0100_01_en
Copyright © 2018, 2019 Arm Limited or its affiliates. All rights reserved.