memory fill

This command writes a specific pattern of bytes to memory.

Show/hideSyntax

memory fill start_address { end_address | +offset} fill_size pattern

Where:

start_address

Specifies the start address for the region. This can be either an address or an expression that evaluates to an address.

end_address

Specifies the inclusive end address for the region. This can be either an address or an expression that evaluates to an address.

offset

Specifies the length of the region in bytes.

fill_size

Specifies the size of the fill pattern in bytes.

pattern

Specifies an expression that defines the fill pattern. If the pattern does not fit exactly into the specified region, then the remaining bytes are filled with partial bytes from the pattern.

Show/hideExample

Example 77. memory fill

memory fill 0x0 0xFFFFFFFF 4 0x12345678   # Fill 0x0 to 0xFFFFFFFF inclusive with int
                                          # value 0x12345678 using default access width
memory fill main (main+15) 1 (char)0x0    # Fill 16 bytes from symbol main with byte
                                          # value 0x0

Show/hideSee also

Copyright © 2010-2012 ARM. All rights reserved.ARM DUI 0452J
Non-ConfidentialID051612