beautypg.com

Zilog Z8F0130 User Manual

Page 151

background image

UM013037-1212

Tools Menu

Zilog Developer Studio II – Z8 Encore!

User Manual

127

internal Flash is selected, the address range is displayed in the

Flash Configuration

area with an INT extension.

5. To perform a cyclic redundancy check on the whole internal Flash memory, click

CRC

.

The 16-bit CRC-CCITT polynomial (x

16

+ x

12

+ x

5

+ 1) is used for the CRC. The

CRC is preset to all 1s. The least-significant bit of the data is shifted through the poly-
nomial first. The CRC is inverted when it is transmitted. If the device is not in

Debug

mode, this command returns

FFFFH

for the CRC value. The on-chip debugger reads

the program memory, calculates the CRC value, and displays the result in the

Status

area.

6. Select the pages to erase before flashing in the

Flash Configuration

area.

Pages that are grayed out are not available.

7. Enter the appropriate offset values in the

File Offset

field to offset the base address of

the hex file.

The hex file address is shifted by the offset defined in the

Start Address

area. You need to

allow for the shift in any defined jump table index. This offset value also shifts the erase
range for the Flash.

8. To check the memory, click

Memory

. The

View/Edit Memory

dialog box is displayed.

In the

View/Edit Memory

window, you can perform the following tasks:

Select the appropriate memory space from the

Space

drop-down list box.

Move to a different address by typing the address in the address field and pressing
the

Enter

key.

Fill Memory

– see page 129

Save Memory to a File

– see page 130

Load a File into Memory

– see page 131

Perform a Cyclic Redundancy Check

– see page 132

9. Select the Erase Before Flashing checkbox to erase all Flash memory before writing

the hex file to Flash memory.

You can also delete the Flash memory by clicking

ERASE

. Clicking

ERASE

deletes only

the pages that are selected.

Note:

Caution: