restore

This command reads data from a file and writes it to memory.

Show/hideSyntax

restore filename [binary] [ offset [ start_address [ end_address | +size]]]

Where:

filename

Specifies the file.

binary

Specifies binary format. The file format is only required for binary files. All other files are automatically recognized by the debugger. See the append command for a list of the file formats supported by the debugger.

offset

Specifies an offset that is added to all addresses in the image prior to writing to memory. Some image formats do not contain embedded addresses and in this case the offset is the absolute address where the image is restored.

start_address

Specifies the minimum address that can be written to. Any data prior to this address is not written. If no start_address is given then the default is address zero.

end_address

Specifies the maximum address that can be written to. Any data after this address is not written. If no end_address is given then the default is the end of the address space.

size

Specifies the size of the region.

Show/hideExample

Example 93. restore

restore myFile.bin binary 0x200        # Restore content of binary file
                                       # myFile.bin starting at 0x200
restore myFile.m32 0x100 0x8000 0x8FFF # Add 0x100 to addresses in Motorola
                                       # 32-bit (S-records) file and restore
                                       # content between 0x8000-0x8FFF

Show/hideSee also

Copyright © 2010-2012 ARM. All rights reserved.ARM DUI 0452K
Non-ConfidentialID071912