__memorySave
Syntax
__memorySave(start, stop, format, filename, zerostart)
Parameters
startA string that specifies the first location of the memory area to be saved.
stopA string that specifies the last location of the memory area to be saved.
formatA string that specifies the format to be used for the saved memory. Choose between:
intel-extendedmotorolamotorola-s19motorola-s28motorola-s37
filenameA string that specifies the file to write to. The filename must include a path, which must either be absolute or use argument variables. For information about argument variables, see Argument variables.
zerostartAn integer. If it is
1(or any non-zero value), the addresses in the saved file will start from0x0. For example, if the specified memory range is0x400–0x5FF, the address range in the file will be0x0–0x1FF. This makes it possible to save memory from addresses larger than 32-bit to file formats which only support 32-bit addresses. If the parameter is0, the file will contain the specified addresses as given.
Return value
int 0
For use with
All C-SPY drivers.
Description
Saves the contents of a specified memory area to a file.
Example
__memorySave(":0x00", ":0xFF", "intel-extended", "c:\\temp\\saved_memory.hex", 0);