Page 1
Using PHYTEC FlashTools98 for Windows and the Raisonance Integrated Development Environment (RIDE) for 8051 and XA Demo Version Note: The PHYTEC Spectrum CD includes the electronic version of the English phyCORE-P8xC591 Hardware Manual Hinweis: Die PHYTEC Spektrum CD beinhaltet die elektronische...
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.5 The Raisonance Integrated Development Environment (RIDE) for 51+XA..........7 Getting Started...................11 2.1 Installing Rapid Development Kit Software.......11 2.2 Interfacing the phyCORE-P87C591 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.1 FlashTools98 ................75 5.2 Linking and Locating ..............77 Index of Figures Figure 1: Mounting the phyCORE-P87C591 onto the phyCORE Development Board LD 5V ........18 Figure 2: Important Connectors, Buttons and Suitable Jumper Settings on the phyCORE Development Board LD 5V ......19 Figure 3: Power Connector ................
The "Getting Started" section uses two 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-P87C591 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-P87C591 to be plugged like a “big chip” into target hardware. The standard memory configuration of the phyCORE-P87C591...
The OMF-to-HEX utility converts a Raisonance .aof format file into an Intel hexfile that is suitable for programming into the external Flash on the PHYTEC phyCORE-P87C591 target board. The Raisonance tool chain consists of the following tools; all integrated in RIDE: •...
• 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
QuickStart Instructions All software and tools for this phyCORE-P87C591 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-P87C591 to a Host-PC Connecting phyCORE-P87C591, 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 receptacle footprint (X6).
PHYTEC Spectrum CD. 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 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-P87C591 is in Flash programming mode before pressing the Connect button. • Click the Connect button to establish connection to the target hardware.
Page 30
QuickStart Instructions The hexfile has already been installed to your hard drive during the installation procedure. • Browse to the correct drive and path for the phyCORE-P87C591 Demo folder (default location C:\PHYBasic\pC-P87C591\Demos\Raisonance\Blinky\Blinky.hex) and click Open. • Click on the Download button. You can watch the status of the download of the Blinky.hex into the external Flash memory in the...
Page 32
QuickStart Instructions 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-P87C591 Demo folder (default location C:\PHYBasic\pC-P87C591\Demos\Raisonance\Hello\Hello.hex ) and click Open. • Click on the Download button. You can watch the status of the download of the Hello.hex into the external Flash memory in the...
Page 35
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-P87C591 module. • Successful execution will send the character string "Hello World" from the target hardware to the HyperTerminal window.
51+XA demo software should have been installed during the install procedure, as described in section 2.1. You can also manually install the tool chain by executing install.exe from within the \Software\Raisonance folder of your PHYTEC Spectrum CD. Note: It is necessary to use the Raisonance tool chain provided on the accompanying Spectrum CD in order to complete this QuickStart Instructions successfully.
• Next choose the File Download tab and click on the File Open button. • Browse to the correct drive and path for the phyCORE-P87C591 Demo folder (default location C:\PHYBasic\pC-P87C591\Demos\Raisonance\Blinky2\Blinky2.hex and click Open.
• Next choose the File Download tab and click on the File Open button. • Browse to the correct drive and path for the phyCORE-P87C591 demo folder (default location C:\PHYBasic\pC-P87C591\Demos\Raisonance\Hello2\Hello2.hex directory (default location).
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-P87C591 module. • Successful execution will send the modified character string "PHYTEC... Stick It In!" to the HyperTerminal window.
Tools folder C:\PHYBasic\pC-P87C591\Tools\Raisonance\Loader (default location). The PHYTEC Spectrum CD-ROM also contains the loadxa.hex monitor file. This version is made for XA-compatible phyCORE modules. Please refer to readme files within the Loader directory for details. • Click on the Download button and view the download procedure in the status window.
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-P87C591. • Open the Options|Target menu and select the Harvard architecture as shown below: •...
FlashTools98 allows the download of user code from the host-PC into the Flash. Additionally, the re-programmable Flash device on the phyCORE-P87C591 allows you to easily update your own code and the target application in which the phyCORE-P87C591 has been implemented.
Page 80
QuickStart Instructions The following description is valid only for the FlashTools98 included with the phyCORE-P87C591 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-P87C591 and that all CODE segments are located to the external Flash memory of the phyCORE-P87C591. Exceptions may occur if you use a 8051 derivative with on-chip portions of XDATA (e.g.
Page 82
For instance all XDATA segments should end below 0x7FFF if a 32 kByte RAM device mounted on the phyCORE-P87C591. 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-P87C591 and is the answer not in the manual?
Questions and answers