C8015F32X Development Kit User’s Guide
© 2002 Cygnal Integrated Products, Inc. Rev-0.2JAN03 3
The following sections illustrate the steps necessary to manually create a project with one or more source
files, build a program and download the program to the target in preparation for debugging. (The IDE will
automatically create a single-file project using the currently open and active source file if you select
Build/Make Project
before a project is defined.)
4.4.1. Creating a New Project
1. Select Project->New Project to open a new project and reset all configuration settings to default.
2. Select File->New File to open an editor window. Create your source file(s) and save the file(s) with
a recognized extension, such as .c, .h, or .asm, to enable color syntax highlighting.
3. Right-click on “New Project” in the Project Window.SelectAddfilestoproject. Select files in the
file browser and click Open. Continue adding files until all project files have been added.
4. For each of the files in the
Project Window
that you want assembled, compiled and linked into the
target build, right-click on the file name and select
Add file to build
. Each file will be assembled or
compiled as appropriate (based on file extension) and linked into the build of the absolute object file.
Note: If a project contains a large number of files, the “Group” feature of the IDE can be used to
organize. Right-click on “New Project” in the
Project Window
. Select
Add Groups to project
.Add
pre-defined groups or add customized groups. Right-click on the group name and choose
Add file
to group
. Select files to be added. Continue adding files until all project files have been added.
4.4.2. Building and Downloading the Program for Debugging
1. Once all source files have been added to the target build, build the project by clicking on the
Build/Make Project button in the toolbar or selecting Project->Build/Make Project from the
menu.
2.
C8051F32x
family devices use the Cygnal 2-wire (C2) debug interface. You must select
Cygnal
2-Wire
in the
Options->Debug Interface
menu to enable connection to
C8051F32x
target devices.
Click the
Connect
button in the toolbar or select
Debug->Connect
from the menu to connect to the
device.
3. Download the project to the target by clicking the Download Code button in the toolbar.
Note: To enable automatic downloading if the program build is successful select Enable auto-
matic connect/download after build in the Project->Target Build Configuration dialog. If
errors occur during the build process, the IDE will not attempt the download.
4. Save the project when finished with the debug session to preserve the current target build configu-
ration, editor settings and the location of all open debug views. To save the project, select
Project->Save Project As... from the menu. Create a new name for the project and click on Save.
5. Example Source Code
Example source code and register definition files are provided in the “Cygnal\Examples\C8051F32x”direc-
tory during IDE installation. These files may be used as a template for code development. Example applica-
tions include a blinking LED example which configures the green LED on the target to blink at a fixed rate. A
Universal Serial Bus (USB) application example is also included with the C8051F32x development kit.