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.
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...
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.
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 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 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.
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 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.
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).
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.
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 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 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.
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.
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.
• 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...
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.
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.
Need help?
Do you have a question about the phyCORE-XAGx and is the answer not in the manual?
Questions and answers