2.10.1.6 Modify the memory contents in batch (initialize)

Contents of the memory can be modified in batch (initialize).

When [Fill...] from the context menu is selected, the Memory Initialize dialog box opens to modify the memory value of the specified address range in batch.

In this dialog box, follow the steps below.

Figure 2.93

Modify Memory Contents in Batch (Memory Initialize Dialog Box)

(1)

Specify [Start address/symbol] and [End address/symbol]

Specify the range of memory address to initialize via the [Start address/symbol] and [End address/symbol]. You can either type address expressions directly into the text boxes (up to 1024 characters), or select them from the input history via the drop-down list (up to 10 items).

The results of calculating the address expressions you have entered are treated as start and end addresses, respectively.

Note that address values greater than the microcontroller address space cannot be specified.

Caution

You cannot specify the range of address aligned across the different endian area.

Remark

A symbol name at the current caret position can be complemented by pressing the [Ctrl] + [Space] key in each text box (see "2.19.2 Symbol name completion function").

(2)

Specify [Initialize data]

Specify the initializing data to write to the memory.

You can either type the initial value into the text box directly in hexadecimal number, or select one from the input history via the drop-down list (up to10 items).

You can specify more than one initial value. Specify up to 16 values of up to 4 bytes (8 characters) each, separated by spaces.

Each initial value is parsed from the end of the string, with each two characters interpreted as a byte.

If the string has an odd number of characters, then the first character is interpreted as one byte.

Note that if a initial value consists of more than one byte, then the target memory is overwritten with the value converted into an array of bytes of the specified address range's endian, as follows:

Input Character Strings
(Initial Value)

How Data is Overwritten (in Bytes)

Little Endian

Big Endian

1

01

01

0 12

00 12

00 12

00 012 345

00 12 00 45 03

00 00 12 03 45

000 12 000345

00 00 12 45 03 00

00 00 12 00 03 45

(3)

Click the [OK] button

Click the [OK] button.

The memory area in the specified address range is repeatedly overwritten with the specified initial data pattern. If the end address is reached in the middle of the pattern, then writing ends at that point.

Note that if an illegal value is specified, a message will appear, and the memory value will not be initialized.