Page 1
QuickStart Instructions Using PHYTEC FlashTools98 for Windows and the Keil µVision2 Software Evaluation Development Tool Chain Note: The PHYTEC Spectrum CD includes the electronic version of the phyCORE-ADuC812 English Hardware Manual Hinweis: Die PHYTEC Spectrum CD beinhaltet die elektronische Version des deutschen phyCORE-ADuC812 Hardware Manuals...
Page 2
PHYTEC Meßtechnik GmbH neither gives any guarantee nor accepts any liability whatsoever for consequential damages resulting from the use of this manual or its associated product. PHYTEC Meßtechnik GmbH reserves the right to alter the information contained herein without prior notification and accepts no responsibility for any damages which might result.
1.4 The PHYTEC phyCORE-ADuC812 ..........4 1.5 The Keil Software Evaluation Development Tool Chain.....7 Getting Started...................11 2.1 Installing Rapid Development Kit Software.......11 2.2 Interfacing the phyCORE-ADuC812 to a Host-PC....18 2.3 Starting PHYTEC FlashTools98 for Windows ......20 2.4 Downloading Example Code with FlashTools ......21 2.4.1 "Blinky"...
Page 4
5.3 Linking and Locating ..............78 Index of Figures Figure 1: Keil Tool Chain Overview ............8 Figure 2: Mounting the phyCORE-ADuC812 onto the phyCORE Development Board LD 5V ........18 Figure 3: Important Connectors, Buttons and Suitable Jumper Settings on the phyCORE Development Board LD 5V ......
The “Getting Started” section uses three example programs: • "Hello" and "Blinky" to demonstrate the download of user code to the Flash device using PHYTEC FlashTools98 for Windows. The "Getting More Involved" section provides step-by-step instructions on how to modify both examples, create and build...
Introduction 1.3 System Requirements Use of this “Rapid Development Kit” requires: • the phyCORE-ADuC812 SBC module • the phyCORE Development Board LD 5V with the included DB-9 serial cable and AC adapter supplying 5 VDC / min. 500 mA • the PHYTEC Spectrum CD •...
All applicable data/address lines and applicable signals extend from the underlying logic devices to standard-width (2.54 mm / 0.10 in.) pin headers lining the circuit board edges. This enables the phyCORE-ADuC812 to be plugged like a “big chip” into target hardware. The standard memory configuration of the phyCORE-ADuC812...
Page 13
The Keil OH51 object-to-hex converter transforms an absolute object file produced by the BL51 Banking Linker into a standard Intel *.hex file. This file is suitable as an input to the PHYTEC FlashTools98 or for programming into an EPROM or an emulator. OH51 can be run in a DOS box under Windows or directly from µVision2.
• downloading example user code in Intel hexfile format from a host-PC to the external Flash memory using FlashTools98 2.1 Installing Rapid Development Kit Software • Insert the PHYTEC Spectrum CD into the CD-ROM drive of your host-PC. The PHYTEC Spectrum CD should automatically launch a setup program that installs the software required for the Rapid Development Kit as specified by the user.
Page 18
All software and tools for this phyCORE-ADuC812 RDK will be installed to the \PHYBasic folder on your hard drive. • In the next dialog you must choose whether to copy the selected documentation as *.pdf files to your hard drive or to install a link to the file on the Spectrum CD.
2.2 Interfacing the phyCORE-ADuC812 to a Host-PC Connecting phyCORE-ADuC812, mounted phyCORE Development Board LD 5V, to your computer is simple: • As shown in the figure below, if the phyCORE module is not already preinstalled, mount it pins-down onto the Development Board’s exterior receptacle footprint (X6).
\Software\Flasht98\. FlashTools98 for Windows is a utility program that allows download of user code in Intel *.hex file format from a host-PC to a PHYTEC SBC via an RS-232 connection. FlashTools98 consists of a firmware resident in the external Flash and corresponding software installed on the host-PC.
• Choose the correct serial port for your host-PC and a 9.600 baud rate. Note: Always ensure that the phyCORE-ADuC812 is in Flash programming mode before pressing the Connect button. • Click the Connect button to establish connection to the target hardware.
• Next choose the File Download tab and click on the File Open button. The hexfile has already been installed to your hard drive during the installation procedure. • Browse to the correct drive and path for the phyCORE-ADuC812 Demo folder (default location C:\PHYBasic\pC-ADuC812\Demos\Keil\Blinky\Blinky.hex) and click Open.
Page 33
Getting Started • Browse to the correct drive and path for the phyCORE-ADuC812 Demo folder (default location C:\PHYBasic\pC-ADuC812\Demos\Keil\Hello\Hello.hex) and click Open. • Click on the Download button. You can watch the status of the download of the Hello.hex into external Flash memory in the Download window.
2.1. You can also manually install µVision2 by executing install.bat from within the \Software\Keil\Ek8051 directory of your PHYTEC Spectrum CD. Note: It is necessary to use the Keil tool chain provided on the accompanying Spectrum CD in order to complete these QuickStart Instructions successfully.
Page 40
• Now open the menu Project|Select Device for Target and double- click on Analog Device in the CPU vendor data base list. The phyCORE-ADuC812 is equipped with an Analog Devices ADuC812. Choose this controller type from the list as shown below.
Page 47
• The phyCORE-ADuC812 is populated with a 64 kByte linear accessible SRAM device. This allows selection of the Large: variables in XDATA memory model.
• Next choose the File Download tab and click on the File Open button. • Browse to the correct drive and path for the phyCORE-ADuC812 Demo folder (default location C:\PHYBasic\pC-ADuC812\Demos\Keil\Blinky2\Blinky2.hex and click Open.
• Modify the default options for the output file by selecting the Create HEX File checkbox in the Project|Options for Target..|Output tab. This will automatically create a hexfile for download to the phyCORE-ADuC812 after compiling. 3.8.4 Building the New Project • Build the project.
• Next choose the File Download tab and click on the File Open button. • Browse to the correct drive and path for the phyCORE-ADuC812 demo folder (default location C:\PHYBasic\pC-ADuC812\Demos\Keil\Hello2\Hello2.hex directory (default location).
• Resetting the phyCORE Development Board LD 5V (at S2) will execute the Hello2.hex file loaded into the Flash. • Successful execution will send the modified character string "PHYTEC... Stick It In!" to the HyperTerminal window. • Click the Disconnect icon . . • Close the Hyper Terminal program.
For a more detailed description of the debugging features, please refer to the appropriate manuals provided by Keil. The µVision2 Debugger offers two operating modes that can be selected in the Project|Options for Target phyCORE-ADuC812 dialog: • The Simulator allows PC-based microcontroller simulation of most features of the 8051 microcontroller family without actually having target hardware.
Tools folder C:\PHYBasic\pC-ADuC812\Tools\Keil\Mon\64k (default location). The PHYTEC Spectrum CD-ROM may also contain other versions of the mon51.hex monitor file. These version are made for different oscillator frequencies and memory options of the phyCORE module. files available C:\PHYBasic\pC-ADuC812\Tools\Keil\Mon...
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.
Page 60
QuickStart Instructions • Open the Project|Options for Target ‘phyCORE-ADuC812’ menu and change the default settings to the correct values as shown in the figure below. This includes settings for the clock frequency of your phyCORE module, the memory model (make sure “Large: variables in XDATA”...
According to the Project|Options for Target ‘phyCORE-ADuC812' configuration, µVision2 will load the application program and run the startup code. • Open the Project|Options for Target ‘phyCORE-ADuC812’ menu and select the Debug tabsheet. • Enable the checkboxes Use: Keil Monitor-51 Driver and Load Application at Startup.
After successfully debugging the program, next change the target settings in order to create an Intel hexfile. This can then be downloaded to the Flash memory of the phyCORE-ADuC812. • Open the Project|Options for Target ‘phyCORE-ADuC812’ menu and change the settings for off-chip memory to the new values as shown in the figure below.
Programming tools for the Flash device are always included with the phyCORE-ADuC812 in the form of a pre- programmed Flash with a resident microcontroller firmware and a counterpart software serving as the user interface on a host-PC. Once...
Page 80
QuickStart Instructions The following description is valid only for the FlashTools98 included with the phyCORE-ADuC812 and is not intended as a guideline for using any other program. FlashTools98 incorporates a safety mechanism that ensures that the system bank (bank 0), in which the firmware is resident, can not be overwritten during programming of the available user banks of the Flash device.
To ensure proper execution of your application, it is required that all XDATA segments are located to the external RAM of the phyCORE-ADuC812 and that all CODE segments are located to the external Flash memory and on-chip Flash memory of the phyCORE-ADuC812.
Page 83
For instance all XDATA segments should end below 0x7FFF if a 32 kByte RAM device mounted on the phyCORE-ADuC812. We recommend generation of a *.m51 map file for your project and inspection of the memory map information within this file.
Need help?
Do you have a question about the phyCORE-ADuC812 and is the answer not in the manual?
Questions and answers