Page 1
Using PHYTEC FlashToolsOCF for on-chip Flash and the Tasking XA Embedded Development Environment (EDE) Evaluation Version Note: The PHYTEC Spectrum CD includes the electronic version of the phyCORE-PXAGx English Hardware Manual Hinweis: Die PHYTEC Spectrum CD beinhaltet die elektronische Version des deutschen phyCORE-PXAGx 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.5 The Tasking XA Embedded Development Environment (EDE) ..............7 2 Getting Started ..................11 2.1 Installing Rapid Development Kit Software.......11 2.2 Interfacing the phyCORE-PXAG49 to a Host-PC .....18 2.3 Starting PHYTEC FlashToolsOCF for Windows.......20 2.4 Downloading Example Code with FlashTools ......21 2.4.1 "Blinky"...
Page 4
5.2 Start.src..................82 5.3 Linking and Locating ..............83 Index of Figures Figure 1: Mounting the phyCORE-PXAG49 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 ................
Tasking XA software development tools. It is structured as follows: The “Getting Started” section uses two example programs: • "Blinky" and "Hello" to demonstrate the download of user code to the Flash device using PHYTEC FlashTools for on-chip Flash (OCF).
Introduction 1.3 System Requirements Use of this “Rapid Development Kit” requires: • the phyCORE-PXAG49 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-PXAG49 to be plugged like a “big chip” into target hardware. The standard memory configuration of the phyCORE-PXAG49 features 64 kByte on-chip Flash, 256 kByte external SRAM and 256 kByte external Flash for additional code storage.
The LCXA locator generates an Intel hexfile that is suitable for programming into an EPROM device or downloading into on-chip Flash on the PHYTEC phyCORE-PXAG49 target board. The Tasking tool chain consists of the following executables: • C Compiler ccxa.exe...
• downloading example user code in Intel hexfile format from a host-PC to the on-chip Flash memory using FlashToolsOCF 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-PXAG49 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-PXAG49 to a Host-PC Connecting the phyCORE-PXAG49, mounted on the 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).
QuickStart Instructions This sequence of pressing and releasing the Reset (S2) and Boot (S1) button renders the phyCORE-PXAG49 into the Flash programming mode (FPM). Use of FlashToolsOCF always requires the phyCORE-PXAG49 to be in FPM. See section 2.4,“Downloading Example Code with FlashTools” for more details.
Page 26
QuickStart Instructions Note: Always ensure that the phyCORE-PXAG49 is in Flash programming mode before pressing the Connect button (refer to section 2.2). • Click on the Connect button. • At the Communication Setup window of the FlashToolsOFC tabsheet, choose the correct serial port for your host-PC and a 9,600 baud rate.
• 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-PXAG49 Demo folder (default location C:\PHYBasic\pC-PXAG49\Demos\Tasking\Blinky\Blinky.hex) and click Open.
Page 34
QuickStart Instructions • Browse to the correct drive and path for the phyCORE-PXAG49 Demo folder (default location C:\PHYBasic\pC-PXAG49\Demos\Tasking\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 on-chip Flash memory in the Download window.
2.1. You can also manually install the tool chain by executing setup.exe from within the \Software\Tasking\Dcxa folder of your PHYTEC Spectrum CD. Note: It is necessary to use the Tasking tool chain provided on the accompanying Spectrum CD in order to complete these QuickStart Instructions successfully.
Page 43
• In the text field ‘File name’, enter the file name of the project space you are creating. For this example, enter the name phyCORE-PXAG49 and click on Open. • Click on OK in the Create a New Project Space window.
Page 48
Blinky2 and added an existing C source file called Blinky2.c and an assembler file Start.src that contains specific startup code. The next step is to modify the C source before building your project.
• Next choose the File Download tab and click on the File Open button. • Browse to the correct drive and path for the phyCORE-PXAG49 Demo folder (default location C:\PHYBasic\pC-PXAG49\Demos\Tasking\Blinky2\Blinky2.hex and click Open.
• Start the Tasking EDE environment and close all projects that might be open. • Open the Project menu and create a new project space called phyCORE-PXAG49 and a new project called Hello2 within the existing project folder C:\PHYBasic\pC-PXAG49\Tasking\Demos\Hello2 (default location) on your hard-drive.
• Next choose the File Download tab and click on the File Open button. • Browse to the correct drive and path for the phyCORE-PXAG49 Demo folder (default location C:\PHYBasic\pC-PXAG49\Demos\Tasking\Hello2\Hello2.hex and click Open.
• 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.
• Start the Tasking EDE for XA environment and close all projects that might be open. • Open the Project menu and create a new project space called phyCORE-PXAG49 and a new project called Debug within the existing project directory C:\PHYBasic\pC-PXAG49\Demos\Tasking\Debug (default location) on your hard drive.
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 memory of the phyCORE-PXAG49. • Open the EDE\Linker Options menu from the EDE menu bar.
Additionally, re-programmable Flash memory phyCORE-PXAG49 allows you to easily update your own code and the target application in which the phyCORE-PXAG49 has been implemented. For more information on how to render the phyCORE-PXAG49 into Flash programming mode refer to the applicable section of the phyCORE-PXAG49 Hardware Manual.
In addition, the linker must locate several segments of code and data to fixed address locations within the address space in regards to the memory types of the phyCORE-PXAG49. XDAT segments always must be located to Random Access Memory (e.g. RAM), CODE segments should be located to non-volatile memory (e.g.
Page 88
For instance all XDAT segments should end below 0x3FFFF if a 256 kByte RAM device mounted on the phyCORE-PXAG49. We recommend generation of a *.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-PXAG49 and is the answer not in the manual?
Questions and answers