Advertisement

Quick Links

phyCORE-XAGx
QuickStart Instructions
Using PHYTEC FlashTools OCF for Windows and the TASKING
Embedded Development Environment (EDE) for XA demo
version
Note: The PHYTEC Spectrum CD includes the electronic version of
the phyCORE-XAGx English Hardware Manual
Hinweis: Die PHYTEC Spectrum CD beinhaltet die elektronische
Version des deutschen phyCORE-XAGx Hardware Manuals
Edition: March 2000
A product of a PHYTEC Technology Holding company

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the phyCORE-XAGx and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

Summary of Contents for Phytec phyCORE-XAGx

  • Page 1 Using PHYTEC FlashTools OCF for Windows and the TASKING Embedded Development Environment (EDE) for XA demo version Note: The PHYTEC Spectrum CD includes the electronic version of the phyCORE-XAGx English Hardware Manual Hinweis: Die PHYTEC Spectrum CD beinhaltet die elektronische...
  • Page 2 PHYTEC Elektronik 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 Elektronik GmbH reserves the right to alter the information contained herein without prior notification and accepts no responsibility for any damages that might result.
  • Page 3: Table Of Contents

    1.4 The TASKING Embedded Development Environment (EDE) for XA...................7 Getting Started...................11 2.1 Installing Rapid Development Kit Software.......11 2.2 Interfacing the phyCORE-XAGx to a Host-PC......18 2.3 Starting PHYTEC FlashTools OCF for Windows......20 2.4 Downloading Example Code with FlashTools ......21 2.4.1 "Blinky" .................25 2.4.2...
  • Page 4 QuickStart Instructions © PHYTEC Elektronik GmbH 2000 L-481e_1...
  • Page 5: Introduction To The Rapid Development Kit

    User's Manuals and Data Sheets • this QuickStart Instruction with general “Rapid Development Kit” description, software installation hints and two example programs enabling quick out-of-the box start-up of the phyCORE-XAGx in conjunction with the TASKING Embedded Development Environment (EDE) for XA.
  • Page 6: Overview Of This Quickstart Instruction

    1.2 Overview of this QuickStart Instruction The Getting Started section uses two example programs: “Hello” and “Blinky” to demonstrate the download of user code to the Flash device using PHYTEC’s FlashTools OCF for on- chip Flash for Windows. The Getting More Involved section provides step-by-step...
  • Page 7 Introduction For more information and example updates, please refer to the following sources: http://www.phytec.com - or - http://www.phytec.de support@phytec.com - or - support@phytec.de http://www.tasking.com support_de@tasking.com (Germany) support@tasking.com (International) © PHYTEC Elektronik GmbH 2000 L-481e_1...
  • Page 8 RS-232 transceiver and operates within a standard industrial range of 0 to +70 degrees C. It requires only a 250 mA power source. PHYTEC FlashTools 16W for external and FlashTools OCF for on- chip Flash enables easy on-board download of user programs..
  • Page 9 • fitted with an 44-pin packaged (PLCC) Philips 16-bit PXAG49 controller, • 64 kByte internal Flash supporting download of user code from a host PC in conjunction with PHYTEC FlashTools OCF for on- chip Flash, • 256 kByte external SRAM, •...
  • Page 10 (optionally configurable as a RS-485, a CAN interface or I²C- interface depending on the implemented SBC and user needs), • simple jumper configuration allowing use of the Development Board with various PHYTEC phyCORE Single Board Computers, • peripheral elements (2 push buttons, 1 DIP-Switch, 2 LED’s, 1 Potentiometer) for quickly testing of user software projects, •...
  • Page 11: The Tasking Embedded Development Environment (Ede) For Xa

    (not in demo version) • Register manager rmxa.exe (not in demo version) • Object reader prxa.exe (not in demo version) • Library archiver arxa.exe (not in demo version) • CrossView Pro xfwxa.exe (Windows-based) • EDE ede.exe (Windows-based) © PHYTEC Elektronik GmbH 2000 L-481e_1...
  • Page 12 XA controllers. All kind of XA derivatives from Philips can be selected from a list in the EDE Processor Options menu. The TASKING XA compiler provides the fastest and smallest code using industry benchmarks. © PHYTEC Elektronik GmbH 2000 L-481e_1...
  • Page 13 This allows you to fully evaluate the features and power of TASKING products on the PHYTEC target board. The full version has no restrictions and is fully ANSI compliant.
  • Page 14 QuickStart Instructions © PHYTEC Elektronik GmbH 2000 L-481e_1...
  • Page 15: Getting Started

    OCF for on-chip Flash, 2.1 Installing Rapid Development Kit Software When you 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 16 If you decide to individually choose different paths and/or drives you must consider this for all further file and path statements. We recommend that you accept the default destination location. © PHYTEC Elektronik GmbH 2000 L-481e_1...
  • Page 17 All Kit-specific content will be installed to a Kit-specific subdirectory of the Rapid Development Kit root folder that you have specified at the beginning of the installation process. © PHYTEC Elektronik GmbH 2000 L-481e_1...
  • Page 18 Spectrum CD. If you decide not to copy the documentation to your hard-drive, you will need the PHYTEC Spectrum CD-ROM each time you want to access these documents. The installed links will refer to your CD- ROM drive in this case.
  • Page 19 QuickStart Instruction. Failure to install the proper software could lead to possible version conflicts, resulting in functional problems. In the next window, you choose to install the TASKING Software Development tool chain for XA. © PHYTEC Elektronik GmbH 2000 L-481e_1...
  • Page 20 TASKING development tool chain. Disable the check box ’Yes, I want to launch EDE now’, as we don’t need the Tasking tool chain for the first examples. © PHYTEC Elektronik GmbH 2000 L-481e_1...
  • Page 21 Getting Started In the following window you can decide to install the Acrobat Reader. Press Finish to complete the installation and decide if you want to begin the QuickStart Instruction immediately. © PHYTEC Elektronik GmbH 2000 L-481e_1...
  • Page 22: Interfacing The Phycore-Xagx To A Host-Pc

    QuickStart Instructions 2.2 Interfacing the phyCORE-XAGx to a Host-PC Connecting the phyCORE-XAGx, mounted on the PHYTEC Development Board, 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 (X1).
  • Page 23: Figure 2: Suitable Development Board Jumper Settings

    500mA Figure 3: Power Connector • Simultaneously press the Reset (S4) and Boot (S3) button on the Development Board, first releasing the Reset and then, two or three seconds later, release the Boot button. © PHYTEC Elektronik GmbH 2000 L-481e_1...
  • Page 24: Starting Phytec Flashtools Ocf For Windows

    FlashTools OCF for on-chip Flash for Windows is a utility program that allows download of user code in Intel *.hex format from a host- PC to a PHYTEC SBC via a RS-232 connection. FlashTools for on- chip Flash consists of a firmware resident in the microcontroller and corresponding software installed in the host-PC.
  • Page 25: Downloading Example Code With Flashtools

    2.4 Downloading Example Code with FlashTools • Start FlashTools OCF for on-chip Flash for Windows by double- clicking on the FlashTools icon or by selecting FlashTools OCF for on-chip Flash from within the Programs|PHYTEC program group. • The Communication Setup tab of the FlashTools Worksheet window will now appear.
  • Page 26 Returning to the FlashTools OCF for on-chip Flash Worksheet window, you will see tabs for the following: Sector Utilities enable erase and status check of all sectors of memory specified by the user : © PHYTEC Elektronik GmbH 2000 L-481e_1...
  • Page 27 Getting Started Protected Area Information shows the protected and no access area information of the Flash memory : Flash Information shows sector and address ranges in Flash memory: © PHYTEC Elektronik GmbH 2000 L-481e_1...
  • Page 28 QuickStart Instructions File Download downloads specified hexfiles to the target hardware : Communication Setup allows selection of the supported target hardware: © PHYTEC Elektronik GmbH 2000 L-481e_1...
  • Page 29: Blinky

    • Start FlashTools OCF for on-chip Flash for Windows, • The Communication Setup tab of the FlashTools OCF for on- chip Flash Worksheet window will now appear. Here you can select the target hardware, © PHYTEC Elektronik GmbH 2000 L-481e_1...
  • Page 30 “Location not empty! Please erase location and try again”. In this event, select the Sector Utility tab from the FlashTools OCF for on-chip Flash worksheet, highlight sector #0 and erase the sector. Then repeat the download procedure. © PHYTEC Elektronik GmbH 2000 L-481e_1...
  • Page 31 • Press the Reset button (S4) on the Development Board to reset the target hardware and to start execution of the downloaded software, • Successful execution of the program will flash the LED D1 with equal on and off duration’s. © PHYTEC Elektronik GmbH 2000 L-481e_1...
  • Page 32: Hello

    FlashTools OCF for on-chip Flash Worksheet finishes, returning the connection properties description to the lower left corner of the window, • Next choose the File Download tab and click on the File Open button, © PHYTEC Elektronik GmbH 2000 L-481e_1...
  • Page 33 • The hexfile has already been installed to your hard-drive during the installation procedure. Select the correct drive and path of the phyCORE-XAGx Demo folder (default location C:\PHYBasic\ pcXAGx\Demos\Tasking\Hello\hello.hex) and click Open. • Click on the Download button. You can watch the download status of the hello.hex into internal Flash memory in the Download...
  • Page 34 HyperTerminal program included within Windows. • Start HyperTerminal program within Programs| Accessories bar. • The HyperTerminal main window will now appear : • Double click on the HyperTerminal icon “Hypertrm” to create a new HyperTerminal session. © PHYTEC Elektronik GmbH 2000 L-481e_1...
  • Page 35 “COM Direct” and advances you to the next HyperTerminal window. • The New Connections Properties window will now appear. Specify Direct to COM2 under the Connect Using combobox (be sure to indicate the correct COM setting for your system). © PHYTEC Elektronik GmbH 2000 L-481e_1...
  • Page 36 Flash. • Now you have to push the Space button once to start the automatic baudrate detection on the phyCORE-XAGx Modul. • Successful execution will send the character string "Hello World" from the target hardware to the HyperTerminal window.
  • Page 37: Getting More Involved

    2.1. You can also manually install the tool chain by executing setup.exe from within the \Software\DCXA directory of your PHYTEC Spectrum CD. Start the tool chain by selecting EDE from within the Programs|TASKING XA DEMO program group.
  • Page 38: Creating A New Project And Editing An Existing Source File

    QuickStart Instructions 3.2 Creating a new project and editing an existing source file • Open the Project menu and choose New. The window as shown below appears. © PHYTEC Elektronik GmbH 2000 L-481e_1...
  • Page 39 See the figure below. • In the line File name, enter the file name of the project you are creating. For this tutorial, enter the name Blinky2 and press Save. © PHYTEC Elektronik GmbH 2000 L-481e_1...
  • Page 40 Note that the Project Files box is blank at this time. This project window is accessible at any time by selecting Project|Properties|Files, which enables easy edit of your file list. © PHYTEC Elektronik GmbH 2000 L-481e_1...
  • Page 41 C source file called blinky2.c and an existing Assembler file called start.src. The next step is to modify the C source before building your project. This includes compiling, linking, locating and creating the hexfile. © PHYTEC Elektronik GmbH 2000 L-481e_1...
  • Page 42: Modifying The Source Code

    (i=0; i< 30000; i++) /* delay for 30000 counts wait (); /* call wait function } /* end of while(1) } /* EOF */ This will change the on/off ratio of the blinky program. © PHYTEC Elektronik GmbH 2000 L-481e_1...
  • Page 43: Saving The Modifications

    To configure the CPU: • Open the EDE|Processor Options menu and choose the Processor tab. The phyCORE-XAGx is equipped with the Philips PXA-G49 processor. Select this processor in the dropdown box. The corresponding SFR-include file is included automatically by every source module.
  • Page 44 To configure the CXA Compiler: Open the EDE|C Compiler Options |Project Options menu and choose the Memory Model drop down box. Select the large model and press OK to close the window after the modification. © PHYTEC Elektronik GmbH 2000 L-481e_1...
  • Page 45 The Linker options are now suitable for the Blinky2 project, enabling you to build an absolute object file without taking into account debugging settings. The options lead to the generation of a *.map file with included memory map. © PHYTEC Elektronik GmbH 2000 L-481e_1...
  • Page 46: Building The Project

    *.map) are created to help on debugging or troubleshooting and error searching process. • If a list of errors appears, use the editor to correct the error(s) in the source code and (re-)build the project again. © PHYTEC Elektronik GmbH 2000 L-481e_1...
  • Page 47: Downloading The Output File

    • Return to the Communication Setup tab and click on the Disconnect button and exit FlashTools OCF for on-chip Flash, • If the modified hexfile properly executes, the LED D1 should now flash in a different mode with different on and off duration’s. © PHYTEC Elektronik GmbH 2000 L-481e_1...
  • Page 48: Hello

    - serinit.a - Library of functions for initialization of the serial port, - _iorad.c and _iowrite.c - changed functions of the standard library of Tasking to realize the printf and scanf functions to terminal program, without debugger, - start.src assembler program define some module configurations. © PHYTEC Elektronik GmbH 2000 L-481e_1...
  • Page 49: Modifying The Example Source

    Preprocessing you must define a user macro _NOSIMIO (no simulated output). This realized that the printf- and scanf- functions can used for stand- alone applications with communication to an terminal program otherwise the communication needs an simulator/debugger. © PHYTEC Elektronik GmbH 2000 L-481e_1...
  • Page 50: Building The New Project

    • Next choose the File Download tab and click on the File Open button, • Download file hello2.hex from project folder C:\PHYBasic\pcXAGx\Demos\Tasking\Hello2 (default location). © PHYTEC Elektronik GmbH 2000 L-481e_1...
  • Page 51: Starting The Terminal Emulation Program

    • Now you have to push the Space button once to start the automatic baudrate detection on phyCORE-XAGx board. • 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...
  • Page 52 QuickStart Instructions © PHYTEC Elektronik GmbH 2000 L-481e_1...
  • Page 53: Advanced User Information

    OCF for on-chip Flash allows download of user code from a host-PC into the internal Flash. Additionally, the re-programmable Flash device on the phyCORE-XAGx allows you to easily update your own code and target the application in which the phyCORE-XAGx has been implemented.
  • Page 54: Start.src

    Because the startup code is modified by macro preprocessor defines it is not necessary to copy the start.src file (located in \lib\src directory) into the project directory. Anyhow it needs to be added to the project files. © PHYTEC Elektronik GmbH 2000 L-481e_1...
  • Page 55: Linking And Locating

    To ensure proper execution of your application it is required that all XDAT segments are located in the external RAM of the phyCORE-XAGx and that all CODE segments are located in the external Flash memory of the phyCORE-XAGx. Exceptions may occur if you use a XA derivative with on-chip portions of XDAT (e.g.
  • Page 56 QuickStart Instructions The standard configuration of the phyCORE-XAGx is populated with 256 kByte of external RAM and 256 kByte of external Flash. During runtime the RAM will be addressable at 0x0000 to 0x3FFFF. You should always ensure that the size of the segments fits within the available size of the mounted memory devices.
  • Page 57 How would you improve this manual? Did you find any mistakes in this manual? page Submitted by: Customer number: Name: Company: Address: Return to: PHYTEC Technologie Holding AG Postfach 100403 D-55135 Mainz, Germany Fax : +49 (6131) 9221-33 © PHYTEC Elektronik GmbH 2000 L-481e_1...
  • Page 58 Published by © PHYTEC Elektronik GmbH 2000 Ordering No. L-481e_1 Printed in Germany...

Table of Contents