beautypg.com

Compiling and downloading, Compile a project – Zilog Z80380 User Manual

Page 31

background image

UM004001-COR1103

1–19

Introduction

Compiling and Downloading

COMPILING AND DOWNLOADING

The following section shows how to compile a C file using ZDS and then download the cre-
ated HEX file into the eval board’s EEPROM using the built in Debug Monitor program.

C

OMPILE

A

P

ROJECT

Perform the following steps to compile a project.

1. In ZDS open or create a project.

2. In the Project Viewer window, double click on the C file. The C file appears in the Edit

window.

3. Select Settings form the Project menu. The Setting Options dialog box appears.

4. Click the Linker tab and select Output from the Category pop-up menu.

5. Check Both in the Output Format window.

6. Click OK.

7. Select Build from the Build menu (the shortcut is F7). The project files are compiled and

linked. If an error occurs, double click on the error in the Output window .

8. If no errors occur, ZDS creates a HEX and COFF file and places them in the project

directory.