Reads data from a file and writes it to memory.
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_addressis 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_addressis 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