Skip to main content

IAR Embedded Workbench for RL78 5.20

__memorySave

In this section:
Syntax
__memorySave(start, stop, format, filename, zerostart)
Parameters
start

A string that specifies the first location of the memory area to be saved.

stop

A string that specifies the last location of the memory area to be saved.

format

A string that specifies the format to be used for the saved memory. Choose between:

intel-extended

motorola

motorola-s19

motorola-s28

motorola-s37

filename

A 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.

zerostart

An integer. If it is 1 (or any non-zero value), the addresses in the saved file will start from 0x0. For example, if the specified memory range is 0x4000x5FF, the address range in the file will be 0x00x1FF. 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 is 0, 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);
See also

Memory Save dialog box.