beautypg.com

Zilog Z8F0130 User Manual

Page 152

background image

Using the Integrated Development Environment

UM013037-1212

128

Zilog Developer Studio II – Z8 Encore!
User Manual

10. Select the

Use Page Erase

checkbox if you want the internal Flash to be page-erased.

Deselect this checkbox if you want the internal Flash to be mass-erased.

11. Select the

Close Dialog When Flash Complete

checkbox to close the dialog box

after writing the hex file to Flash memory.

12. If you want to use the serialization feature or want to check a serial number that has

already been programmed at an address, see the

Serialization

section on page 128.

13. Program the Flash memory by clicking one of the following buttons:

Click

Program

to write the hex file to Flash memory and perform no checking

while writing.

Click

Program and Verify

to write the hex file to Flash memory by writing a seg-

ment of data and then reading back the segment and verifying that it has been
written correctly.

14. Verify the Flash memory by clicking

Verify

.

When you click

Verify

, the Flash Loader reads and compares the hex file contents

with the current contents of Flash memory. This function does not change target Flash
memory.

If you want to run the program that you just flashed, use the following procedure:

15. After you see

Flashing complete

in the

Status

area of the

Flash Loader Proces-

sor

dialog box, click

Close

to close the dialog box.

16. Remove the power supply, followed by the USB Smart Cable.

17. Reconnect the power supply.

Serialization

The general procedure to write a serial number to a Flash device involves the following
steps:

1. Choose a location for the serial number inside or outside of the address range defined

in the hex file.

The serial number must be written to a location that is not being written to by the hex file.

2. Erase the Flash device.

3. Write the hex file to the Flash device and then write the serial number

or

Note:

Note: