Debugging
© PHYTEC Meßtechnik GmbH 2002 L-462e_2
53
•
Disconnect from the target hardware after the download has
finished either by clicking the Disconnect button on the
Communication Setup tabsheet or choosing the
Connect|Disconnect icon from the FlashTools98 toolbar.
•
Exit FlashTools98.
4.2
Creating a Debug Project and Preparing the Debugger
4.2.1
Creating a New Project
•
Start the Keil
µ
Vision2 environment and close all projects that
might be open.
•
Open the Project menu and create a new project called Debug.uv2
within the existing project directory
C:\PHYBasic\pC-ADuC812\Demos\Keil\Debug
(default location) on your hard drive. Select the Analog Devices
ADuC812 in the CPU vendor data base list.
•
Rename the target of your project within the Project Window –
Files tab into phyCORE-ADuC812.
•
Rename the file group Source Group 1 within the Project
Window – Files tab into User and add an additional file group
named System Files.
•
Add Debug.c to the file group User and Startup.a51 to the file
group System Files from within the project folder.
•
Your project should now look like this:
•
Save the project.