1.3.116 restore

Reads data from a file and writes it to memory.


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



Specifies the file.


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.


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.


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.


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.


Specifies the size of the region.

Example 1-119 Examples

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
Non-ConfidentialPDF file icon PDF versionARM DUI0452Z
Copyright © 2010-2016 ARM Limited or its affiliates. All rights reserved.