Everything
2.11.1.6 Collectively changing (initializing) memory contents

Memory values can be changed collectively (initialized).

Selecting [Fill...] from the context menu opens the Memory Initialize dialog box that permits you to change memory values in a specified address range collectively.

In this dialog box, follow the procedure below to change memory values collectively.

Figure 2.107

Changing Memory Contents Collectively (Memory Initialize Dialog Box)

(1)

Specifying the [Start address/symbol] and [End address/symbol]

Specify the [Start address/ symbol] and [End address/ symbol] to set an address range in which you want memory contents to be initialized. Directly enter address expressions in the respective text boxes (specifiable in up to 1,024 characters) or select an input history item from the drop-down list (up to 10 history entries).

The calculation results of the address expressions you've entered are respectively handled as the start address and end address.

No address values can be specified that are greater than the address space of the microcontroller.

Caution

Note that an address range that covers areas with different endians cannot be specified.

Remark

By holding down [Ctrl]+[Space] keys in this text box, you can complete the symbol name at the present caret position (see "2.21.2 Symbol name completion function").

(2)

Specifying the [Initialize data]

Specify the initialization data to be written into memory.

Directly enter a hexadecimal value in the text box or select an input history item from the drop-down list (up to 10 history entries).

To specify multiple pieces of initialization data, specify a maximum of 16 pieces of up to 4 bytes (8 characters) of data by separating each with a space.

Each piece of initialization data are interpreted as comprising 1 byte in units of 2 characters from the tail end of the character string. If the data consists of an odd number of characters, the first character in it is assumed to be comprising 1 byte.

Values consisting of 2 bytes or more will be converted to the arrays of bytes that match the endians in the address range to be initialized before being written to the target memory.

Input Character String (Initialize data)

Written-in image (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)

Clicking the [OK] button

Click the [OK] button.

A pattern of the specified initialization data is written into the specified address range of memory repeatedly. (If the end address is reached in the middle of this pattern, the write process is terminated.)

However, if an invalid value or address expression is specified, CS+ displays a message and does not initialize memory values.