3.3.9 read_memory()

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

Return a byte array of length size*count.

Parameters

address
Address to begin reading from.
memory_space
Name of the memory space to read or 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.
  • The data is always returned as bytes, so calling this function with size=4, count=1 returns a byte array of length 4.
count
Number of units to read.
do_side_effects

Deprecated. If True, the target must perform any side-effects that are normally triggered by the read, for example clear-on-read.

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