Phytec phyCORE-PXA270 Quick Start Instructions

Phycore-pxa270 with uml
Hide thumbs Also See for phyCORE-PXA270:

Advertisement

Quick Links

® ® ® ®
phyCORE
-PXA270
with UML
QuickStart Instructions
Using the UML Tool Rhapsody from Telelogic and the GNU Cross
Development Tool Chain
Note: The PHYTEC UML-XScale-Disc includes the electronic version of
®
the English phyCORE
-PXA270 Hardware Manual
Edition: November 2006
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-PXA270 and is the answer not in the manual?

Questions and answers

Summary of Contents for Phytec phyCORE-PXA270

  • Page 1 -PXA270 with UML QuickStart Instructions Using the UML Tool Rhapsody from Telelogic and the GNU Cross Development Tool Chain Note: The PHYTEC UML-XScale-Disc includes the electronic version of ® the English phyCORE -PXA270 Hardware Manual Edition: November 2006 A product of a PHYTEC Technology Holding company...
  • Page 2 PHYTEC Messtechnik 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 Messtechnik GmbH reserves the right to alter the information contained herein without prior notification and accepts no responsibility for any damages which might result.
  • Page 3: Table Of Contents

    4.2 Starting Eclipse ................57 40 min 4.3 Open the demo project ..............59 4.4 Configuring Include - Paths............63 4.5 Configuring and Starting the GDB debugger ......67 4.6 Stepping and Watching Variables Content .........76 Further Information................80 Summary ....................81 © PHYTEC Meßtechnik GmbH 2006 L-676e_2...
  • Page 5: Introduction

    Introduction 1 Introduction 5 min In this QuickStart you can find general information on the PHYTEC ® phyCORE -PXA270 Single Board Computer (SBC), an overview of Telelogic’s UML-Tool and the GNU Cross compiler, and instructions on ® how to run example programs on the phyCORE -PXA270, mounted on the ®...
  • Page 6: Overview Of This Quickstart Instruction

    4) The “Advanced Debugging” section provides information on how to debug your application at “code level” In addition to dedicated data for this Rapid Development Kit, the PHYTEC UML-XScale-Disc contains supplemental information on embedded microcontroller design and development. © PHYTEC Messtechnik GmbH 2006...
  • Page 7: Conventions Used In This Quickstart

    At the beginning of each chapter you can find information of the time to pass the following chapter. You have successfully passed an important part of this QuickStart. You can find information to solve problems. © PHYTEC Messtechnik GmbH 2006 L-676e_2...
  • Page 8: System Requirements

    DB-9 serial cable, Ethernet crosslink cable and AC adapter supplying 12 VDC /min. 1A • Rhapsody Demo version • PHYTEC Distribution based on OSELAS from Pengutronix • an IBM-compatible host-PC (486 or higher running Linux) For more information and example updates, please refer to the following sources: http://www.phytec.de...
  • Page 9: The Phytec Phycore -Pxa270

    CAN bus interface, and a SMSC LAN91C111 10/100BaseT Ethernet controller which enables implementation of the module ® in embedded Internet applications. The phyCORE -PXA270 operates within a temperature range of -40°C to +85°C. © PHYTEC Messtechnik GmbH 2006 L-676e_2...
  • Page 10 • Synchronous Serial Protocol ports (SSP and NSSP) • I C Interface • 4 * PWM • RTC • General purpose I/O pins (GPIO) Please contact PHYTEC for more information about additional module configurations. © PHYTEC Messtechnik GmbH 2006 L-676e_2...
  • Page 11 Introduction The Development Board PCM-990 is a universal carrier board for start- up and programming of the PHYTEC phyCORE-PXA270 Single Board Computer module with two high-density SMT (160 pins each, 0.63 mm pitch) pin header connectors. The Development Board is fully equipped with all mechanical and...
  • Page 12: Software Development Tools

    With this approach, your code and your model are always consistent. Rhapsody supports most of the UML 2.0 diagrams, including •Use Case diagrams •Class diagrams •Object model diagrams •Component diagrams •Sequence diagrams •Statecharts © PHYTEC Messtechnik GmbH 2006 L-676e_2...
  • Page 13: Gnu Cross Compiler Tool Chain

    Building a program for a CPU architecture different from the one used on the machine where the compilation is done, is accomplished using a cross-compiler toolchain and cross- compiled libraries. In this QuickStart we are using the GNU C/C++ Cross Development Toolchain. © PHYTEC Messtechnik GmbH 2006 L-676e_2...
  • Page 14: Eclipse Platform

    • CDT Debug Core provides debugging functions. • CDT Debug UI provides the user interface for the CDT debugging editors, views, and wizards. • CDT Debug MI is the application connector for MI- compatible debuggers. © PHYTEC Messtechnik GmbH 2006 L-676e_2...
  • Page 15: Getting Started

    In this QuickStart Instruction you will have to shutdown the firewall and configure the network card of your host pc. If your host pc is connected to another network, changing the ip address can cause conflicts with existing hosts. © PHYTEC Messtechnik GmbH 2006 L-676e_2...
  • Page 16: Configuring The Host Platform

    To accomplish the steps in the QuickStart Instruction you will have to install additional packages. If you don’t install all of these packages, the setup may fail or some configuration steps won’t work correctly. • Open the Control Center (YaST) © PHYTEC Messtechnik GmbH 2006 L-676e_2...
  • Page 17 Getting Started • Enter your root password and click on the OK button. • Open Software Management in Software. © PHYTEC Messtechnik GmbH 2006 L-676e_2...
  • Page 18 ® phyCORE -PXA270 QuickStart Instructions • Select Filter Search. • Type libxml2-devel and click Search button. • Check libxml2-devel. • Type python-devel and click Search button. • Check python-devel © PHYTEC Messtechnik GmbH 2006 L-676e_2...
  • Page 19 Getting Started • Type tftp and click Search button. • Check the package tftp • Type qt3-devel and click Search button. • Check qt3-devel. © PHYTEC Messtechnik GmbH 2006 L-676e_2...
  • Page 20 ® phyCORE -PXA270 QuickStart Instructions • Select Filter Selections. • Select C/C++ Compiler and Tools in the window selection. • Select Tcl/Tk Development System in the window selection. • Click Accept button. © PHYTEC Messtechnik GmbH 2006 L-676e_2...
  • Page 21 Some additional packages will be selected automatically to resolve dependencies. If problems occur while solving dependencies, we recommend going back to a default configuration. • Click on Continue to install the packages. • Click on Finish. © PHYTEC Messtechnik GmbH 2006 L-676e_2...
  • Page 22: Setup Network Card Configuration

    We recommend disconnecting your host from any other network. If you change the host ip, problems may occur with existing hosts. • Open the YasST Control Center if it is not already open. • Choose Network Card in network devices. © PHYTEC Messtechnik GmbH 2006 L-676e_2...
  • Page 23 • Click on button Edit to enter Network Address Setup. • Choose Static Address setup. • Enter IP Address 192.168.3.10 and Subnet Mask 255.255.255.0 • Click on the Next button. • Click on the Next button again to finish Network Card Configuration. © PHYTEC Messtechnik GmbH 2006 L-676e_2...
  • Page 24: Disabling The Firewall

    • Choose Firewall in Security and Users • Choose Manually for Service Start. • Click on the Button Stop Firewall Now. • Click on Next and Accpet The firewall is now disabled. © PHYTEC Messtechnik GmbH 2006 L-676e_2...
  • Page 25: Configure User Rights For The Serial Interface

    2.2.4 Configure User Rights for the Serial Interface • Open the YasST Control Center if is not already open. • Choose User Management in Security and Users. • Select your username • Select Edit © PHYTEC Messtechnik GmbH 2006 L-676e_2...
  • Page 26 ® phyCORE -PXA270 QuickStart Instructions • Select Details tab • Check groups uucp • Click Accept button. • Click Finish button. You have successfully finished the configuration of the host platform. © PHYTEC Messtechnik GmbH 2006 L-676e_2...
  • Page 27: Uml-Kit Setup

    If you have a cdrom drive you will see the openURL /media/cdrom. • Click button Ignore. • Open a terminal window in the Super User Mode (Root Shell) and enter the root password. You need root privilege to install the software. © PHYTEC Messtechnik GmbH 2006 L-676e_2...
  • Page 28 • Click Yes to proceed • After accepting the Welcome window and license agreement select the destination location for the installation of the Linux Kit software and click on Next. © PHYTEC Messtechnik GmbH 2006 L-676e_2...
  • Page 29 We recommend that you accept the default destination location. Click next to install the setup files to /usr/local/share/UMLKit. The GNU GCC /GLIBC Tool toolchain will be installed to the standard default directory /opt/arm-softfloat-linux-gnu. © PHYTEC Messtechnik GmbH 2006 L-676e_2...
  • Page 30 Yes and to install Rhaspody again into a different directory. The OXF Framework in this Version was specially build for an ARM Xscale target. The configuration site.prp was adapted to use the GNU GCC C/C++ Toolchain with Rhapsody. © PHYTEC Messtechnik GmbH 2006 L-676e_2...
  • Page 31 • Enter the path of the directory to install the Rhapsody software: /usr/local/share/rhapsody Do not use a slash at the end of the path • Type “1” or press Enter to select C++. Language Selection 1: C++ 2: C © PHYTEC Messtechnik GmbH 2006 L-676e_2...
  • Page 32 The license agreement will appear. Press Enter to read more or press “c” to skip. • Accept the license agreement by pressing Enter. • Press Enter to accept Acrobat’s install dir. The script starts to install the Rhapsody files and Adobe Acrobat. © PHYTEC Messtechnik GmbH 2006 L-676e_2...
  • Page 33 First you must obtain a license key. The license key is coupled to the MAC address of your network card. • Open a Terminal in Super User Mode. • Enter ifconfig to get the address © PHYTEC Messtechnik GmbH 2006 L-676e_2...
  • Page 34 You will get an E-Mail with a file lic.txt. • Save this file in your home directory. • Open a Root Shell. • Type: cd ~ cp lic.txt /usr/local/share/rhapsody/flexIm/license.dat © PHYTEC Messtechnik GmbH 2006 L-676e_2...
  • Page 35: Setup Your Gpio-Extension-Board

    IO- Connector. The following figure shows you the location of the patch field and the IO-Connector. • First put your GPIO-Extension-Board on your baseboard © PHYTEC Messtechnik GmbH 2006 L-676e_2...
  • Page 36 To supply the GPIO-Extension-Board with power connect pin 1A with IO-Connector VCC • Connect pin 13D to IO-Connector MOT IN A • Connect pin 49F to IO-Connector MOT IN B • Connect pin 18E to IO-Connector Count Out © PHYTEC Messtechnik GmbH 2006 L-676e_2...
  • Page 37 Getting Started • Connect pin 49D to IO-Connector KEY_OUT1 • Connect pin 50A to IO-Connector KEY_OUT2 • Connect pin 50B to IO-Connector KEY_OUT3 © PHYTEC Messtechnik GmbH 2006 L-676e_2...
  • Page 38: Configuring Komport

    • Choose Configure Komport in Settings • Choose the device /dev/ttyS0. • Configure the following settings to 115200 baud, 1 Start bit, 8 data bits, 1 stop bit, no parity and no flow control. • Click button OK © PHYTEC Messtechnik GmbH 2006 L-676e_2...
  • Page 39 • Type root to login. To access the serial interface, you need read / write access rights. How to set these rights, see in section Configure User Rights for the Serial Interface. © PHYTEC Messtechnik GmbH 2006 L-676e_2...
  • Page 40: Downloading An Example On The Target

    • Open a telnet session to the target. telnet -l root 192.168.3.11 • Type root and press Enter • Type ./HelloWorld to start the application. You have successfully finished the Getting Started part of this QuickStart. © PHYTEC Messtechnik GmbH 2006 L-676e_2...
  • Page 41: Getting More Involved

    • Click on the Home Icon to start the Konqueror browser. • Browse to the directory /usr/local/share/UMLKit/ • Right-click the Powerwindow directory and select Copy. • Browse to the directory /home/<your Home> • Right-click in your home directory and select Paste. © PHYTEC Messtechnik GmbH 2006 L-676e_2...
  • Page 42 If you start Rhapsody the first time after the UML-Kit Setup, you first have to restart your Computer. If you can’t start Rhapsody, select Logout in the K Menu and click on Restart Computer. • Select File -> Open in the menu bar. © PHYTEC Messtechnik GmbH 2006 L-676e_2...
  • Page 43 Getting more involved • Choose the directory /home/<your Home>/Powerwindow • Select Powerwindow.rpy and open the project. © PHYTEC Messtechnik GmbH 2006 L-676e_2...
  • Page 44 ® phyCORE -PXA270 QuickStart Instructions • Right-click on PhyCore-PXA270 in the Object-Browser: Components -> SingleWindowController -> Configurations • Select Set as Active Configuration from the list. If the ip address of your system is not 192.168.3.10, you need to configure the host ip address for your configuration •...
  • Page 45 • Change to the window_lift directory: cd ~/Powerwindow/window_lift/ • Create a FTP-Session to the target: ftp root@192.168.3.11 • Press Enter (no password required) • Copy the files window_lift.bin and window_lift.xml to the target: ftp> put window_lift.bin ftp> put window_lift.xml © PHYTEC Messtechnik GmbH 2006 L-676e_2...
  • Page 46 • Type exit to end the ftp session: ftp> exit Now you are ready to generate code. • Select Code->Re Generate->Configuration File • Select Code->Re Generate->PhyCore-PXA270 • Select Generate/Make/Run • If a dialog appears enter yes and press OK. The dialog will only open the first time you are creating a SSH connection.
  • Page 47: Design Level Debugging

    If you want to animate your model, the instrumentation flag must be set to Animation. • First expand the component in the browser and double-click on PhyCore-PXA270 to open the feature dialog. © PHYTEC Messtechnik GmbH 2006 L-676e_2...
  • Page 48 -PXA270 QuickStart Instructions • Select the tab Settings. • Select Animation as Instrumental Mode. • Click on OK to accept the settings. • Save the configuration • Click on Generate / Make / Run © PHYTEC Messtechnik GmbH 2006 L-676e_2...
  • Page 49 “Text file busy appears”. Open a terminal window and type: • ssh root@192.168.3.11 killall SingleWindowController Animation Toolbar: Call Stack and Event Queue: • Click on Go Idle • Select in the menu bar Tools -> Animated Statechart © PHYTEC Messtechnik GmbH 2006 L-676e_2...
  • Page 50 ® phyCORE -PXA270 QuickStart Instructions • Select SingleWindowControllerComp[0] -> itsWindowController->itsWindowControl • Click OK button. A new window with the animated statechart opens. The active states are highlighted. © PHYTEC Messtechnik GmbH 2006 L-676e_2...
  • Page 51 Getting more involved • Call Event Generator • Click Select Button © PHYTEC Messtechnik GmbH 2006 L-676e_2...
  • Page 52 ® phyCORE -PXA270 QuickStart Instructions • Select SingleWindowControllerComp[0] ->itsWindowController->itsWindowControl • Click on OK button. • Select the Event evDown • Click Button OK You see the generated event in the event Queue. © PHYTEC Messtechnik GmbH 2006 L-676e_2...
  • Page 53 Getting more involved • Click on Go Idle The active state changes to moveDown. • Click on Go Idle The active state changes to open. © PHYTEC Messtechnik GmbH 2006 L-676e_2...
  • Page 54 • Select OK in the dialog box to set the breakpoint You can also add / remove breakpoints with the breakpoint icon in the animation toolbar • Click on Go • Push Button Key1 on the Extension Board © PHYTEC Messtechnik GmbH 2006 L-676e_2...
  • Page 55 • Select the class GPIOMotorControl in Packages-> WindowControlPkg->Classes • Expand the class GPIOMotorControl. • Double-click in Instances on SingleWindowControllerComp[0]->itsWindowController ->itsGPIOMotorControl A new dialog appears. You can see the names, values and types of the attributes in the selected instance. © PHYTEC Messtechnik GmbH 2006 L-676e_2...
  • Page 56 • Click Go The motor starts to move and the values are changing. The active state changes to closed. • Click Animation break • Click Quit Animation • Press Enter to confirm with Yes © PHYTEC Messtechnik GmbH 2006 L-676e_2...
  • Page 57: Changing The Demo Application

    • Select in the menu bar Tools -> Statechart. The Open Statechart dialog opens. • Select WindowControl in WindowControlPkg • Click button OK. The statechart of the class GPIOMotorControl opens. • Double-click the state moveDown. A new dialog opens. © PHYTEC Messtechnik GmbH 2006 L-676e_2...
  • Page 58 << “moving down” << std::endl; • Click on button OK. • Double-click the state moveUp. • Click on the Edit icon. • Enter the following line: std::cout << “moving up” << std::endl; • Click button OK © PHYTEC Messtechnik GmbH 2006 L-676e_2...
  • Page 59 The motor starts to move .You will see the output moving up. • Click Animation break • Click Quit Animation • Press Enter to confirm with yes You have successfully passed the Getting Involved part of the QuickStart. © PHYTEC Messtechnik GmbH 2006 L-676e_2...
  • Page 60: Min

    To debug the example project, Rhapsody has to be executed and the Powerwindow project has to be opened. So if Rhapsody, is closed, start the application and open the Powerwindow project. Don’t’ start the application on the target. © PHYTEC Messtechnik GmbH 2006 L-676e_2...
  • Page 61: Starting The Gdb Server On The Target

    Starting the GDB Server on the target • Open Komport. • Type root and press Enter. • Start the GDB Server: gdbserver 192.168.3.10:10000 SingleWindowController Starting Eclipse • Click on the Home Icon to start the Konqueror browser. © PHYTEC Messtechnik GmbH 2006 L-676e_2...
  • Page 62 ® phyCORE -PXA270 QuickStart Instructions • Browse to the directory /usr/local/share/UMLKit/eclipse. • Click on the Eclipse icon to start the application. • Confirm the workspace directory with OK. The welcome screen will appears. © PHYTEC Messtechnik GmbH 2006 L-676e_2...
  • Page 63: Open The Demo Project

    • Click the cross right of welcome to close the welcome screen Open the demo project • Select in the menu bar File -> New -> Project. • Select Standard Make C++ Project in C++. • Click the Next button. © PHYTEC Messtechnik GmbH 2006 L-676e_2...
  • Page 64 ® phyCORE -PXA270 QuickStart Instructions • Uncheck Use default in Project contents. • Click on the Browse button. • Navigate to the directory Home/Powerwindow/SingleWindowController/PhyCore-PXA270 • Click button OK. © PHYTEC Messtechnik GmbH 2006 L-676e_2...
  • Page 65 Debugging • Enter the project name SingleWindowController. • Click button Next. © PHYTEC Messtechnik GmbH 2006 L-676e_2...
  • Page 66 ® phyCORE -PXA270 QuickStart Instructions • Select the Make Builder tab. • Uncheck Use default. • Enter make -f SingleWindowController.mak. • Select button Finish. • Select button Yes to change to the C/C++ perspective. © PHYTEC Messtechnik GmbH 2006 L-676e_2...
  • Page 67: Configuring Include - Paths

    To solve these problems you will have to configure the include paths in the next section. Configuring Include - Paths • Right click SingleWindowController in C/C++ Projects. • Select Properties. The properties dialog opens. © PHYTEC Messtechnik GmbH 2006 L-676e_2...
  • Page 68 • Select C/C++ Include Paths & Symbols. • Select Add External Include Path from Workspace. • Click Button Browse. • Double-Click File System. • Navigate to /usr/local/share/rhapsody/Share/LangCpp. • Click button OK. • Click button OK. © PHYTEC Messtechnik GmbH 2006 L-676e_2...
  • Page 69 • Click button OK again. • Select Add External Include Path from Workspace again. • Click Button Browse. • Double-Click File System. • Navigate to the directory /opt/ptxdist/local/arm-softfloat-linux-gnu/usr/include • Click button OK. • Click button OK again. © PHYTEC Messtechnik GmbH 2006 L-676e_2...
  • Page 70 -PXA270 QuickStart Instructions • Click button OK to close the properties dialog. You will see the C/C++ Indexer in the lower right corner. After the indexer is finished you will see following window: © PHYTEC Messtechnik GmbH 2006 L-676e_2...
  • Page 71: Configuring And Starting The Gdb Debugger

    Debugging Configuring and Starting the GDB debugger • Select in the menu bar Run->Debug. A dialog to create, manage and run applications will appear. • Select C/C++ Local Application. • Click on New. © PHYTEC Messtechnik GmbH 2006 L-676e_2...
  • Page 72 -PXA270 QuickStart Instructions • Enter the Name SingleWindowController. • Select Browse right of the Project text field. • Select SingleWindowController. • Click button OK. • Select Search Project. The Program Selection dialog will open. © PHYTEC Messtechnik GmbH 2006 L-676e_2...
  • Page 73 Debugging • Click on OK © PHYTEC Messtechnik GmbH 2006 L-676e_2...
  • Page 74 ® phyCORE -PXA270 QuickStart Instructions • Click on Apply. © PHYTEC Messtechnik GmbH 2006 L-676e_2...
  • Page 75 A new dialog opens. • Double-Click File System. • Navigate to /opt/arm-softfloat-linux-gnu/bin • Select arm-softfloat-linux-gnu-gdb • Select OK. • Select Connection: TCP. • Enter the Host name IP address: 192.168.3.11 • Click Apply button. © PHYTEC Messtechnik GmbH 2006 L-676e_2...
  • Page 76 ® phyCORE -PXA270 QuickStart Instructions The host name IP address, is the IP address of the target. • Select the Source tab. • Click button Add. The Add Source dialog opens. © PHYTEC Messtechnik GmbH 2006 L-676e_2...
  • Page 77 Debugging • Select File System Directory With Subfolders • Click button OK. • Click button Browse. • Double-Click File System. • Browse to the directory: /usr/local/share/rhapsody/Share/LangCpp/ © PHYTEC Messtechnik GmbH 2006 L-676e_2...
  • Page 78 -PXA270 QuickStart Instructions • Click button OK. • Check Search subfolders. • Click button OK. • Click button Apply. • Click Debug button. Be sure that the GDB Server is running on the target. © PHYTEC Messtechnik GmbH 2006 L-676e_2...
  • Page 79 Debugging A new dialog opens. • Select yes to switch to the debug perspective. The debug perspective opens and the debugger stops at the first line automatically. © PHYTEC Messtechnik GmbH 2006 L-676e_2...
  • Page 80: Stepping And Watching Variables Content

    After you have started the GDB Server on the target and the GDB Debugger in Eclipse you can step through the project. • First click the button Step Into. You will see the following screen: © PHYTEC Messtechnik GmbH 2006 L-676e_2...
  • Page 81 In the upper right corner you can see some variables and their values. • Select the variable ticktime. • Right click on the variable ticktime and select Change Value. • Enter the value 0. • Click on button OK. © PHYTEC Messtechnik GmbH 2006 L-676e_2...
  • Page 82 • Right-click on the grey border left of the following line ticktime = OMTimerManagerDefaults::defaultTicktime; A selection menu opens. • Select Toggle Breakpoint to add a breakpoint • Click button Resume • Click Step Over © PHYTEC Messtechnik GmbH 2006 L-676e_2...
  • Page 83 Eclipse for remote debugging. You can step through a project, watch and change the content of variables and you can use the memory monitor to view the content at a memory address. © PHYTEC Messtechnik GmbH 2006 L-676e_2...
  • Page 84: Further Information

    • Installation and Configuration of PTXdist • Using and Building a Toolchain • Create and activate a project • Running phyCORE-PXA270 from network only • Running phyCORE-PXA270 stand alone • U-Boot and phyCORE-PXA270 • phyCORE-PXA270’s BSP • Using CAN on phyCORE-PXA270 ©...
  • Page 85: Summary

    The Debugging part of this QuickStart gave you information on setting up and using the GDB debugger with the Eclipse IDE. You learned how to set breakpoints, watching and changing variables content and using the memory monitor. © PHYTEC Messtechnik GmbH 2006 L-676e_2...
  • Page 86 ® phyCORE -PXA270 QuickStart Instructions © PHYTEC Messtechnik GmbH 2006 L-676e_2...
  • Page 87 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 Robert-Koch-Str. 39 55129 Mainz, Germany Fax: +49 (6131) 9221-33 © PHYTEC Messtechnik GmbH 2006 L-676e_2...
  • Page 88 Published by  PHYTEC Messtechnik GmbH 2006 Ordering No. L-676e_2 Printed in Germany...

Table of Contents