Page 1
QuickStart Instructions Using PHYTEC FlashTools 3 and the Keil µVision2 Software Evaluation Development Tool Chain Note: The PHYTEC Spectrum CD includes the electronic version of the English phyCORE-DS80C390 Hardware Manual Hinweis: Die PHYTEC Spektrum CD beinhaltet die elektronische Version des deutschen phyCORE-DS80C390 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-DS80C390...........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-DS80C390 to a Host-PC ....18 2.3 Starting PHYTEC FlashTools ............20 2.4 Downloading Example Code with FlashTools ......21 2.4.1 "Blinky"...
Page 4
5.3 Linking and Locating ..............70 Index of Figures Figure 1: Keil Tool Chain Overview ............8 Figure 2: Mounting the phyCORE-DS80C390 onto the phyCORE Development Board LD 5V ........18 Figure 3: Important Connectors, Buttons and Suitable Jumper Settings on the phyCORE Development Board LD 5V ......
Flash device using PHYTEC FlashTools. The "Getting More Involved" section provides step-by-step instructions on how to modify both examples, create and build new projects and generate and download output files to the phyCORE-DS80C390 using the Keil tool chain and FlashTools. "Debugging” section provides...
Introduction 1.3 System Requirements Use of this “Rapid Development Kit” requires: • the phyCORE-DS80C390 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-DS80C390 to be plugged like a “big chip” into target hardware. The standard memory configuration of the phyCORE-DS80C390...
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 FlashTools 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 FlashTools 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
QuickStart Instructions All software and tools for this phyCORE-DS80C390 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.
QuickStart Instructions 2.2 Interfacing the phyCORE-DS80C390 to a Host-PC Connecting phyCORE-DS80C390, 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\Flasht3\. FlashTools 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. FlashTools consists of a firmware resident in the external Flash and corresponding software installed on the host-PC.
• The FlashTools 3 start window with the Connect tab will now appear. • Select the phyCORE-DS80C390 in the target hardware list in the Connect window. Click on the + sign in front of the phyCORE string to expand the view and to see all available modules.
Page 27
• Click on the Close button in the Communication Setup window to exit the communication setup. Note: Always ensure that the phyCORE-DS80C390 is in Flash programming mode before pressing the Connect button (see section 2.2). • Now click the Connect button to establish connection to the target hardware.
• Returning to the FlashTools tabsheet, choose the Download tab and click on the 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-DS80C390 Demo folder (default location C:\PHYBasic\pC-DS80C390\Demos\Keil\Blinky\Blinky.hex) and click Open.
Open button. The demo hexfile has already been installed to your hard drive during the installation procedure. • Browse to the correct drive and path for the phyCORE-DS80C390 Demo folder (default location C:\PHYBasic\pC-DS80C390\Demos\Keil\Hello\Hello.hex) and click Open.
Page 36
Hello.hex file loaded into the Flash. • Now push the <Space> bar on your keyboard once to start the automatic baud rate detection on phyCORE-DS80C390 module. • Successful execution will send the character string "Hello World" from the target hardware to the HyperTerminal window.
2.1. You can also manually install µVision2 by executing setup.exe from within the \Software\Keil\Ek8051UV2 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 39
• The Select Device for Target ’Target1’ will automatically appear. Double-click on Dallas Semiconductor in the CPU vendor data base list. The phyCORE-DS80C390 is equipped with a DS80C390. Choose this controller type from the list as shown below. This selection sets necessary tool options for the DS80C390 device, as well as pre-configures additional settings for the device.
Page 46
• Open the Project|Options for Target ‘phyCORE-DS80C390’ menu and change the default settings to the correct values for the phyCORE-DS80C390 as shown in the figure below. This includes settings for the clock frequency of your phyCORE module, the memory model and the off-chip memory.
• Returning to the FlashTools tabsheet, choose the Download tab and click on the Open button. • Browse to the correct drive and path for the phyCORE-DS80C390 Demo folder (default location C:\PHYBasic\pC-DS80C390\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-DS80C390 after compiling. 3.8.4 Building the New Project • Build the project.
• Returning to the FlashTools tabsheet, choose the Download tab and click on the Open button. • Browse to the correct drive and path for the phyCORE-DS80C390 Demo folder (default location C:\PHYBasic\pC-DS80C390\Demos\Keil\Hello2\Hello2.hex and click Open.
Hello2.hex file loaded into the Flash. • Now push the <Space> bar on your keyboard once to start the automatic baud rate detection on phyCORE-DS80C390 module. • Successful execution will send the modified character string "PHYTEC... Stick It In!" to the HyperTerminal window.
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-DS80C390 dialog: • The Simulator allows PC-based microcontroller simulation of most features of the 8051 microcontroller family without actually having target hardware.
(default location) on your hard drive. • Rename the target of your project within the Project Window – Files tab into phyCORE-DS80C390. • Rename the file group Source Group 1 within the Project Window – Files tab into User and add an additional file group named System Files.
• Open the Project|Options for Target ‘phyCORE-DS80C390’ menu and enter the correct oscillator frequency of your phyCORE module in the Xtal (MHz) dialog box and configure the other pull-down menus as shown below. The phyCORE-DS80C390 is populated with a 128 kByte linear accessible SRAM device.
Debugging 4.2 Preparing the Simulator According to the Project|Options for Target ‘phyCORE-DS80C390' configuration, µVision2 will load the application program and run the startup code. • Open the Project|Options for Target ‘phyCORE- DS80C390’ menu and select the Debug tabsheet. • Enable the checkboxes Use: Simulator 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 on-chip Flash of the phyCORE-DS80C390. • Select the Output tabsheet and enable the checkbox Create HEX File.
The following description is valid only for the FlashTools included with the phyCORE-DS80C390 and is not intended as a guideline for using any other program. FlashTools incorporates a safety mechanism that ensures that the system area, in which the firmware is resident, can not be overwritten during programming of the available user banks of the Flash device.
Page 72
QuickStart Instructions Resetting the phyCORE-DS80C390 also activates the system bank (bank 0) of the Flash device, which automatically starts the FlashTools firmware. Then the firmware either enters the Flash programming mode or starts the user application. To distinguish between download and execution modes, the firmware latches the /BOOT signal after reset (/BOOT=0 =>...
XDATA/HDATA segments are located to the external RAM of the phyCORE-DS80C390 and that all CODE/HCODE segments are located to the external Flash memory of the phyCORE-DS80C390. Exceptions may occur if you use a 8051 derivative with on-chip portions of XDATA (e.g. internal XRAM) or CODE (e.g. internal ROM).
Page 75
Advanced User Information Since the phyCORE-DS80C390 is equipped with a software configurable address decoder instead of simple programmable logic device and the DS80C390 includes an additional Chip Select Unit, you can configure the memory model to your needs at runtime.
Need help?
Do you have a question about the phyCORE-DS80C390 and is the answer not in the manual?
Questions and answers