Skip to main content

IAR Embedded Workbench for RL78 5.20

__dataflashMemorySave

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

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

stop

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

format

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

intel-extended

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.

Return value

0 if something was written, even if an error occurred and not all data was written, otherwise 1.

For use with

The C-SPY hardware debugger drivers.

Description

Saves the contents of a specified data flash memory area to a file. The address ranges are checked, and addresses which are not part of the data flash memory are skipped, while valid addresses are processed.

Invalid addresses result in a warning and the processing continues.

Example
__dataflashMemorySave("0xF1000", "0xF1FFF", "intel-extended", "c:\\temp\\saved_memory.hex");
See also

Data Flash dialog box.