Hide thumbs Also See for phyCORE-MPC555:

Advertisement

Quick Links

phyCORE-MPC555
QuickStart Instructions
Using Freescale CodeWarrior
Development Tool Chain
Note: The PHYTEC Spectrum CD includes the electronic version of
the phyCORE-MPC555 English Hardware Manual
Edition: August 2009
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-MPC555 and is the answer not in the manual?

Questions and answers

Summary of Contents for Phytec phyCORE-MPC555

  • Page 1 QuickStart Instructions Using Freescale CodeWarrior Development Tool Chain Note: The PHYTEC Spectrum CD includes the electronic version of the phyCORE-MPC555 English Hardware Manual Edition: August 2009 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

    1.5 The Freescale CodeWarrior Development Tool Chain....7 Getting Started................... 11 2.1 Installing the Freescale CodeWarrior Tool Chain ..... 11 2.2 Interfacing the phyCORE-MPC555 to a Host-PC ..... 13 2.3 Launching the CodeWarrior IDE ..........15 2.4 Downloading Example Code with CodeWarrior IDE ....17 2.4.1...
  • Page 4 QuickStart Instructions © PHYTEC Messtechnik GmbH 2009 L-524e_5...
  • Page 5: Introduction To The Phycore-Mpc555 Rapid Development Kit

    Introduction to the phyCORE-MPC555 1 Introduction to the phyCORE-MPC555 Rapid Development Kit This QuickStart provides: • general information on the PHYTEC phyCORE-MPC555 Single Board Computer • an overview of Freescale's CodeWarrior software development tool chain, and • instructions on how to run example programs on the phyCORE-MPC555, mounted on the PHYTEC Development Board, in conjunction with Freescale's CodeWarrior tools.
  • Page 6: Overview Of This Quickstart Instruction

    1.3 System Requirements Use of this "Rapid Development Kit" requires: • the PHYTEC phyCORE-MPC555, • the PHYTEC Development Board with the included DB-9 serial cable, DB-25 printer port cable and AC-to-DC adapter supplying 9 V DC/min. 1.5 A, • the PHYTEC Spectrum CD, •...
  • Page 7 Introduction to the phyCORE-MPC555 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.freescale.com/ © PHYTEC Messtechnik GmbH 2009 L-524e_5...
  • Page 8: The Phytec Phycore-Mpc555

    160-pin Molex SMT pin header connectors (pin width is 0.635 mm./25mil) lining the circuit board edges. This enables the phyCORE-MPC555 to be plugged like a “big chip” into target hardware. The standard memory configurations of the phyCORE-MPC555...
  • Page 9 Introduction to the phyCORE-MPC555 phyCORE-MPC555 Technical Highlights • phyCORE dimensions 72 x 57 mm with two high-density 160-pin Molex SMT pin header connectors • Processor: Freescale Embedded PowerPC MPC555, 40 MHz clock • Internal components of the MPC555: 32-bit PowerPC core...
  • Page 10 +5 V +3.3 V phyCORE-MPC555. Additional +5 V is created for the VG96-con- nector. • VG96 connector with all I/O signals of the MPC555 • two standard width pin header rows (3 x 54) which provide all phyCORE-MPC555 signals •...
  • Page 11: The Freescale Codewarrior Development Tool Chain

    Introduction to the phyCORE-MPC555 1.5 The Freescale CodeWarrior Development Tool Chain Freescale CodeWarrior is a cost-effective and highly functional Integrated Development Environment (IDE) containing a complete suite of development tools to create, compile, link, debug, and assemble fast, optimized embedded systems code for the PowerPC 5xx/6xx/8xx and other architectures.
  • Page 12: Figure 1: Freescale (Metrowerks) Codewarrior Ide Architecture

    As depicted below, CodeWarrior’s editor, C/C++ compiler, linker and debugger comprise the basic tool chain. The remaining plug-in tool components assist in code navigation and build control. Figure 1: Freescale CodeWarrior IDE Architecture © PHYTEC Messtechnik GmbH 2009 L-524e_5...
  • Page 13 Introduction to the phyCORE-MPC555 All IDE commands and functions are accessible via pull-down menus or short cuts. An extensive Help utility is included. The Project Manager gathers all necessary source files, library and project information - such as various output files (called targets) with different memory maps for RAM-download or ROM-imaging - and stores it in a project file assigned the suffix *.mcp.
  • Page 14 Mode), a hardware debugger module integrated on the processor. The parallel printer port of the host-PC communicates to the phyCORE via a BDM interface, such as the Macraigor Wiggler or the BDM signal conversion logic integrated on the PHYTEC Development Board.
  • Page 15: Getting Started

    What you will learn with this Getting Started example: • installing the Rapid Development Kit software • installing Freescale CodeWarrior for PowerPC Embedded Systems • interfacing the phyCORE-MPC555, mounted on the Development Board, to a host-PC • downloading example user code from a host-PC to the phyCORE-MPC555 on-board memory 2.1 Installing the Freescale CodeWarrior Tool Chain...
  • Page 16 Program Files for CodeWarrior on your host-PC. These files enable initialization of and communication to the PHYTEC phyCORE-MPC555 target hardware from within the CodeWarrior IDE. • After installing the PHYTEC Spectrum CD, replace the files mpc555.elf and mpc555sh.elf located in: C:\ProgramFiles\Freescale\CodeWarrior EPPC 5xx V8.7\bin\ Plugins\Support\Flash_Programmer\EPPC with those out of the path: C:\phyBASIC\phyCORE- MPC555\Tools\CW8.1\bin\Plugins...
  • Page 17: Interfacing The Phycore-Mpc555 To A Host-Pc

    Getting Started 2.2 Interfacing the phyCORE-MPC555 to a Host-PC Connecting the phyCORE-MPC555 (part # PCM-001-xxxx, mounted on the PHYTEC Development Board (part # PCM-995), to your computer is simple: • If the phyCORE module is not already connected, mount it onto the Development Board's Molex connector (X1) as shown in the figure below.
  • Page 18: Figure 2: Development Board Overview And Suitable Jumper Settings

    This correctly routes the interface signals to applicable connectors and establishes signal connection between on-board peripherals and the phyCORE-MPC555 module. • Connect the DB-25 connector (P1) of the Development Board to the LPT1 port of your host-PC using the included DB-25 cable.
  • Page 19: Launching The Codewarrior Ide

    MPC555 processor is waiting in debug mode. The phyCORE-MPC555 should now be properly connected via the Development Board to a host-PC and power supply and you are now ready to use the Freescale CodeWarrior tool chain to establish communication.
  • Page 20 Programs\Freescale CodeWarrior\PowerPC 5xx V8.7\ CodeWarrior IDE folder. • Open the Hello_Fl.mcp project file by selecting File \ Open from the pull-down menu and navigating to PHYBasic\phyCORE-MPC555\Demos\CW8.7\Hello_Fl. • The Hello_Fl.mcp project file will open in a project window. © PHYTEC Messtechnik GmbH 2009 L-524e_5...
  • Page 21: Downloading Example Code With Codewarrior Ide

    SRAM. The external SRAM is available from address 0x10000000 to 0x1003FFFF (256 kByte). The end address depends on the actual SRAM capacity available on the phyCORE-MPC555. "rom" target The rom target is configured to generate an output that is linked for operation in ROM (either internal or external Flash memory).
  • Page 22: Configuring Hyperterminal Program For Hello_Fl

    • Enter a name such as "Connect to Com1" (be sure to use an available COM port for your system) and select an icon of your choice to establish a new connection using HyperTerminal. • Click OK to advance to the connection window. © PHYTEC Messtechnik GmbH 2009 L-524e_5...
  • Page 23 Data bits = 8; Parity = None; Stop Bits = 1; Flow Control = None. Not shown: Start Bits = 1. • Selecting OK advances you to the COM Direct – HyperTerminal monitoring window. Notice the connection status report in the bottom lower corner of the window. © PHYTEC Messtechnik GmbH 2009 L-524e_5...
  • Page 24 QuickStart Instructions HyperTerminal is now prepared to view the output of the example program once it is executed. © PHYTEC Messtechnik GmbH 2009 L-524e_5...
  • Page 25: Running The Hello_Fl.mcp Demo Project In Ram

    This typically happens when you open an existing project for the first time. • Perform the build process by clicking the Make icon select Project / Make from the IDE pull-down menu. © PHYTEC Messtechnik GmbH 2009 L-524e_5...
  • Page 26 Project / Run item in the main menu bar. • The following status window will appear during the download. • Once download is complete, you will advance to a more detailed project window that displays the source code in its lower panel. © PHYTEC Messtechnik GmbH 2009 L-524e_5...
  • Page 27 • Select Edit \ ram Settings or click on the ram Settings.. icon in the project window. • Open the Debugger \ Remote Debugging window and select MSI Wiggler under Connection Settings. • Click on Edit Connection… then OK © PHYTEC Messtechnik GmbH 2009 L-524e_5...
  • Page 28 QuickStart Instructions • Enter 0x10000000 for FPU Buffer Address and click OK. • Click on Apply, then OK and repeat the download. © PHYTEC Messtechnik GmbH 2009 L-524e_5...
  • Page 29 This will run the main code, starting from the location indicated by the blue arrow in the source window [first line after main()]. The lower portion of the ram.elf (Thread 0x0) window will indicate that the demo program is executing out of RAM. © PHYTEC Messtechnik GmbH 2009 L-524e_5...
  • Page 30 • Switch back to the HyperTerminal program to view the output of the demo program, which will print the character string, "UART_1> Hello world Running out of external SRAM" LED D4 (red) and LED D5 (green) will flash on and off simultaneously. © PHYTEC Messtechnik GmbH 2009 L-524e_5...
  • Page 31 • The Hello_Fl project implements both UART_1 and UART_2. To view the output of UART_2, connect the RS-232 cable to the DB-9 connector at P3 on the Development Board. After restarting the code execution UART_2 outputs the following: © PHYTEC Messtechnik GmbH 2009 L-524e_5...
  • Page 32: Downloading Hello_Fl To The Mpc555 On-Chip Flash

    / Kill in the main tool bar). 2.4.3 Downloading Hello_Fl to the MPC555 on-chip Flash • Make sure Jumper JP15 on the phyCORE-MPC555 Development Board is closed at position 1+2 (refer to Figure 2). • From the pull-down menu, at the top of the Hello_Fl.mcp project window, select the software target "rom".
  • Page 33 Getting Started • Open the Flash Programmer window by selecting Tools / FlashProgrammer from the pull-down menu. The following window will appear: • Click on the Load Settings… button. © PHYTEC Messtechnik GmbH 2009 L-524e_5...
  • Page 34 QuickStart Instructions • Browse to the phyCORE-MPC555_internal_flash.xml file located in the C:\Freescale\CodeWarrior EPPC 5xx V8.7\bin\Plugins\Support\ Flash_Programmer\EPPC folder and open the file. • The Target Configuration window will appear as follows: © PHYTEC Messtechnik GmbH 2009 L-524e_5...
  • Page 35 Getting Started • Click on Flash Configuration to check that the correct Flash device is as follows: © PHYTEC Messtechnik GmbH 2009 L-524e_5...
  • Page 36 Jumper JP15 is set to position 1+2. • If you wish, you can perform a Blank Check at the end of the Flash erase sequence to verify the Flash sectors are blank. Simply click on the applicable button. © PHYTEC Messtechnik GmbH 2009 L-524e_5...
  • Page 37 • Now go to the Program/Verify section of the Flash Programmer window. • Check Use Selected File and navigate to the PHYBasic\pc-MPC555\Demos\CW8.7\Hello_Fl\Bin folder in the Select File to Program window. • Select the rom.mot file from the list of available files and Open it. © PHYTEC Messtechnik GmbH 2009 L-524e_5...
  • Page 38 Flash. • The Status: line shows the individual steps that are performed during the Flash download. • The following status line will appear at the end of the download sequence: © PHYTEC Messtechnik GmbH 2009 L-524e_5...
  • Page 39 Only the red LED D4 on the Development Board will now flash. • Switch back to the HyperTerminal program to view the output of the demo program, which will print the character string, "UART_1> Hello world Running out of internal FLASH“ © PHYTEC Messtechnik GmbH 2009 L-524e_5...
  • Page 40: Downloading Hello_Fl To The External Flash

    2.4.4 Downloading Hello_Fl to the External Flash This example demonstrates burning code to the external Flash on the phyCORE-MPC555. The example program will be downloaded to the Flash devices at U2/U3 (AM29LV type). • Disconnect the power adapter from Development Board.
  • Page 41 Getting Started • The following window will appear: • Click on the Load Settings… button © PHYTEC Messtechnik GmbH 2009 L-524e_5...
  • Page 42 QuickStart Instructions • Browse to the phyCORE-MPC555_external_flash.xml file located in the C:\Freescale\CodeWarrior EPPC 5xx V8.7\bin\Plugins\Support\ Flash_Programmer\EPPC folder and Open the file. • The Target Configuration window will appear as follows: © PHYTEC Messtechnik GmbH 2009 L-524e_5...
  • Page 43 Getting Started © PHYTEC Messtechnik GmbH 2009 L-524e_5...
  • Page 44 QuickStart Instructions • Click on Flash Configuration to check that the correct Flash device is as follows: • Click on Erase / Blank Check. Next click on the Erase button. © PHYTEC Messtechnik GmbH 2009 L-524e_5...
  • Page 45 • Select the output file that will be downloaded into the external Flash. Check the Use Selected File box. Click on the Browse… button in the upper right-hand corner of this window. • Navigate to the PHYBasic\pc-MPC555\Demos\CW8.7\Hello_Fl\Bin folder in the Select File to Program window. © PHYTEC Messtechnik GmbH 2009 L-524e_5...
  • Page 46 • Select the rom.mot file from the list of available files and Open it. The Flash Programmer window should look as follows: • Now click on the Program button to start downloading the rom.mot file into the external Flash. © PHYTEC Messtechnik GmbH 2009 L-524e_5...
  • Page 47 • Click No when you are prompted to save these new settings. You have now successfully downloaded the Hello_Fl example program to the external Flash on the phyCORE-MPC555. • Disconnect the power adapter from Development Board. • Important: Remove Jumper JP6.
  • Page 48: Creating A New Project

    QuickStart Instructions 2.5 Creating a New Project For ease of creating a new project for the phyCORE-MPC555 it is recommended that the given Hello_Fl project is used as a template. The Hello_Fl project already has the target, linker, compiler,...
  • Page 49: Advanced User Information

    • The Stack Address determines the top of the stack area. The stack grows down the number of kilobytes you specify in the Stack Size edit field. It is located in the Target | EPPC Target panel within the EPPC Settings Panel. © PHYTEC Messtechnik GmbH 2009 L-524e_5...
  • Page 50 • The default value is 32 kByte. You can adjust it to your own re- quirements. • For stack pointer handling the PowerPC General Purpose Register R1 is reserved and should never used for other purposes. © PHYTEC Messtechnik GmbH 2009 L-524e_5...
  • Page 51: Dynamic Memory Allocation

    • If you do not use dynamic memory allocation, you can set this value to zero. • The location of the heap is specified in the Target Linker Setting. • Linker – EPPC Linker: Heap Address © PHYTEC Messtechnik GmbH 2009 L-524e_5...
  • Page 52 8-byte boundary. Note: The memory allocation returns at runtime not as much memory space as in the Heap Size field specified. A small portion is used for buffer management. © PHYTEC Messtechnik GmbH 2009 L-524e_5...
  • Page 53 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-26 © PHYTEC Messtechnik GmbH 2009 L-524e_5...
  • Page 54 Published by © PHYTEC Messtechnik GmbH 2009 Ordering No. L-524e_5 Printed in Germany...

Table of Contents