A.8.22 CADI::CADIMemGetSpaces()

ARM recommends that the debugger call this after connecting to the target but before accessing any memory.

The function identifies the number of independent address spaces available on the target. Use different memory spaces to separate distinct memory areas with overlapping address values (like program and data memory in a Harvard architecture).

virtual CADIReturn_t CADI::CADIMemGetSpaces(uint32_t startMemSpaceIndex, 
                                            uint32_t desiredNumOfMemSpaces,
                                            uint32_t *actualNumOfMemSpaces,
                                            CADIMemSpaceInfo_t *memSpaces) = 0;
startMemSpaceIndex
is the index into the buffer of memory spaces present in the target.
desiredNumOfMemSpaces
is the required number of memory spaces.
actualNumOfMemSpaces
is the total number of memory spaces returned by the target.
memSpaces
is a list of memory spaces. The array is allocated, and deallocated if applicable, by the caller to be filled by the target. This space must be big enough to hold the required number of spaces.
Non-ConfidentialPDF file icon PDF version100963_0200_03_en
Copyright © 2014–2018 Arm Limited or its affiliates. All rights reserved.