Phytec phyCORE-OMAP44 Series Quick Start Instructions

Hide thumbs Also See for phyCORE-OMAP44 Series:

Advertisement

Quick Links

QuickStart Instructions
WEC 7-Kit
®
phyCORE
-OMAP44xx
Using Microsoft Visual Studio 2008
Software Development Tool Chain
Note: The PHYTEC WinCE-phyCORE-OMAP44xx includes the
®
electronic version of the English phyCORE
-OMAP44xx Hardware
Manual
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-OMAP44 Series and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

Summary of Contents for Phytec phyCORE-OMAP44 Series

  • Page 1 QuickStart Instructions WEC 7-Kit ® phyCORE -OMAP44xx Using Microsoft Visual Studio 2008 Software Development Tool Chain Note: The PHYTEC WinCE-phyCORE-OMAP44xx includes the ® electronic version of the English phyCORE -OMAP44xx Hardware Manual 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

    50 min Summary ....................45 Appendix A How to install Windows Embedded Compact on the phyCORE-OMAP44xx Kit ..........47 Appendix B How to update an existing bootloader on the phyCORE- OMAP44xx Kit ..............53 © PHYTEC Meßtechnik GmbH 2012 L-763e_0...
  • Page 4 ® phyCORE -OMAP44xx QuickStart Instructions © PHYTEC Messtechnik GmbH 2012 L-763e_0...
  • Page 5: Introduction

    Introduction 1 Introduction 5 min ® This QuickStart provides general information on the PHYTEC phyCORE OMAP44xx Single Board Computer (SBC). It gives you also an overview of Microsoft’s Visual Studio 2008 software development tool chain and ® instructions on how to run example programs on the phyCORE ®...
  • Page 6: Professional Support Packages Available

    3) The “Debugging” section demonstrates simple debug functions using Visual Studio 2008 debug environment. In addition to the dedicated data for this Rapid Development Kit, the PHYTEC WinCE Kit disc contains supplemental information on embedded microcontroller design and development. © PHYTEC Messtechnik GmbH 2012...
  • 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 manual. You can find information to solve problems. © PHYTEC Messtechnik GmbH 2012 L-763e_0...
  • Page 8: System Requirements

    USB A/mini-B cable, Ethernet cross-over cable and AC adapter supplying 12 VDC (min. 2 A) • Windows Embedded Compact 7 (Eval version) • the PHYTEC WinCE-phyCORE-OMAP44xx-Disc for WEC 7 • an IBM-compatible host-PC (586 or higher running with WindowsXP and at least 10 GB free hard disc space)
  • Page 9: Microsoft Visual Studio 2008 Development Tool Chain

    The Visual Studio 2008 Tool chain is available from your local Microsoft dealer. There is also an evaluation version available which is used in this QuickStart. You can use it to develop standard WinCE applications, MFC WinCE applications and .NET Applications for WinCE. © PHYTEC Messtechnik GmbH 2012 L-763e_0...
  • Page 10 ® phyCORE -OMAP44xx QuickStart Instructions If you already have installed another version of Visual Studio 2008, you can use this one. We recommend installing the evaluation version when working with this QuickStart. © PHYTEC Messtechnik GmbH 2012 L-763e_0...
  • Page 11: Getting Started

    Rom drive. The setup should launch automatically. If not, open a windows file explorer, go to your DVD drive and start “setup.exe” manually. Visual Studio 2008 needs at least 2 GB free hard disc space to install. © PHYTEC Messtechnik GmbH 2012 L-763e_0...
  • Page 12: Installing Platform Builder

    DVD labeled “Windows Embedded Compact 7” in your DVD drive. The setup should start automatically. If not, open a windows file explorer, select your DVD drive and start “WindowsEmbeddedCompact7.exe” manually. On the opening window click “Install” to start further installation steps. © PHYTEC Messtechnik GmbH 2012 L-763e_0...
  • Page 13 DVD case. After complete installation, it is recommended to register for the Windows Embedded Developer Update program to get all necessary updates. Click “Register” for the registration. © PHYTEC Messtechnik GmbH 2012 L-763e_0...
  • Page 14: Installing Wince Phycore-Omap44Xx-Kit Software

    Also the SDK includes all functionality that is included in the image that runs on the phyCORE-OMAP44xx. Therefore using the SDK allows the compiler to check if all functionality that is needed in the © PHYTEC Messtechnik GmbH 2012 L-763e_0...
  • Page 15 “compile-time” not at “runtime”. For proper installation of the SDK it is essential to first install Visual Studio 2008 as described in chapter 2.1. Insert labeled “PHYTEC phyCORE-OMAP44xx” your CDROM/DVD drive and start setup.exe. © PHYTEC Messtechnik GmbH 2012 L-763e_0...
  • Page 16 -OMAP44xx QuickStart Instructions In this dialog you are asked for a destination path for installing the demo software and the manuals. We recommend to use the default path for working with this QuickStart. © PHYTEC Messtechnik GmbH 2012 L-763e_0...
  • Page 17 In the next dialog you can choose a program folder. We recommend using the default program folder for working with this QuickStart. In the next steps, the BSP for the PHYTEC phyCORE-OMAP44xx will be installed. Please follow the instructions on the screen.
  • Page 18: Installing Microsoft Active Sync 4.5

    Select the folder you saved the software to and double-click setup.msi. Click “Next” and in the following dialog click “Install” to start the installation process for Microsoft Active Sync 4.5. This may take a few minutes. © PHYTEC Messtechnik GmbH 2012 L-763e_0...
  • Page 19: Preparing Thost-Pce Phost-Pcycore ® -Omap44Xx To Interface To A 4-5 Host-Pc

    When Windows Embedded Compact has loaded it will show a screen to calibrate the touch panel. Click on the cross on the screen to calibrate your touch panel. When calibration is done you will see the WinCE screen. © PHYTEC Messtechnik GmbH 2012 L-763e_0...
  • Page 20: Establishing An Active Sync Connection

    Ensure to use the USB A/mini-B included in this RDK. Establishing the connection might take a few seconds. Once the connection has been established Active Sync will show a screen with status information. Your PC is now connected to your phyCORE-OMAP44xx device. © PHYTEC Messtechnik GmbH 2012 L-763e_0...
  • Page 21: Downloading Example Code With Active Sync

    Explorer window called Mobile Device will open that will show you the folder structure of the Windows Embedded Compact installation on your phyCORE- OMAP44xx device. Open a file manager and navigate to the folder C:\PHYTEC\PCM049_phyCORE-OMAP44xx\WinCE-Kit\QuickStart\Demos \Demo\HelloWorld\HelloWorld\Phytec phyCORE-OMAP44xx SDK (ARMV4I)\Debug. © PHYTEC Messtechnik GmbH 2012 L-763e_0...
  • Page 22: Downloading Example Code With Visual Studio 2008

    Hello World message. 2.8 Downloading Example Code with Visual Studio 2008 PHYTEC provides you with example code to learn about downloading code onto your phyCORE-OMAP44xx device. This code has already been copied to your local hard drive by the setup.
  • Page 23 Hello World on the display of your phyCORE OMAP44xx. • To open the HelloWorld project select File / Open / Project/Solution… from the Visual Studio 2008 menu bar. • Browse to the folder C:\PHYTEC\PCM049_phyCORE-OMAP44xx\WinCE-Kit\QuickStart\Demos \Demo\HelloWorld. • Select the HelloWorld project HelloWorld. © PHYTEC Messtechnik GmbH 2012 L-763e_0...
  • Page 24 • In the Solution Platform pull-down menu make sure that the PhyCore OMAP4 PD11.1.0 SDK (ARMv4I) configuration is selected. Also make sure that PhyCore OMAP4 PD11.1.0 SDK ARMV7 Device is selected in the Target device menu. © PHYTEC Messtechnik GmbH 2012 L-763e_0...
  • Page 25 • A window with one button will open on your phyCORE-OMAP44xx device. Click on the button to print the Hello World message on a listbox. • Click the Close icon in the window to close the application. © PHYTEC Messtechnik GmbH 2012 L-763e_0...
  • Page 26 You have successfully passed the Getting Started part of this QuickStart. In this chapter you learned how to open a project, build an executable and transfer and run this executable on the target hardware. © PHYTEC Messtechnik GmbH 2012 L-763e_0...
  • Page 27: Getting More Involved

    Studio 2008 menu. This opens a dialog that will ask about the kind of project you wish to create. • Open the Visual C++ tree and select Smart Device. • In the Templates field select MFC Smart Device Application. © PHYTEC Messtechnik GmbH 2012 L-763e_0...
  • Page 28 ® phyCORE -OMAP44xx QuickStart Instructions • In the text field Name, enter the name of the project you wish to create, e.g. myHelloWorld. • Click OK. • Click Next. © PHYTEC Messtechnik GmbH 2012 L-763e_0...
  • Page 29 Selected SDKs: field. • Select Pocket PC 2003 in the field Selected SDKs and press the < button. This removes the Pocket PC 2003 SDK from the list of selected SDKs. • Click Next > © PHYTEC Messtechnik GmbH 2012 L-763e_0...
  • Page 30 At this point you have created a new project for the phyCORE-OMAP44xx board. The next step is to modify the C source file before building your project. This includes compiling, linking, locating and creating the executable. © PHYTEC Messtechnik GmbH 2012 L-763e_0...
  • Page 31: Create A Button On Dialog

    Have a look at the Toolbox window on the right. You can drag and drop any control field in your dialog window myHelloWorld. For our example we need only one button. Select the Button tool in the toolbox and drag it on your dialog window like below. © PHYTEC Messtechnik GmbH 2012 L-763e_0...
  • Page 32 ® phyCORE -OMAP44xx QuickStart Instructions To edit the button caption do right-click on the button and select “Properties”. On the properties window edit the “Caption” field in “Send Hello World”. © PHYTEC Messtechnik GmbH 2012 L-763e_0...
  • Page 33 Getting More Involved © PHYTEC Messtechnik GmbH 2012 L-763e_0...
  • Page 34: Modifying The Source Code

    = sizeof(DCB); GetCommState (hComPort, &dcb); dcb.BaudRate = 115200; dcb.ByteSize = 8; dcb.Parity = 0; dcb.StopBits = 1; if(!SetCommState (hComPort, &dcb)) err = GetLastError(); DWORD dwWritten; // write message WriteFile(hComPort, "Hello World!",13, &dwWritten, NULL); CloseHandle(hComPort); © PHYTEC Messtechnik GmbH 2012 L-763e_0...
  • Page 35: Building The Project

    • If there are no errors, the code can be downloaded to your phyCORE- OMAP44xx device. For this to work you need to have established an Active Sync connection between your PC and your phyCORE-OMAP44xx device as © PHYTEC Messtechnik GmbH 2012 L-763e_0...
  • Page 36 • Click on the “Send Hello World!” button and look at the terminal program for the “Hello World!” message. You have now modified source code, recompiled the code, created a downloadable file, and successfully executed this modified code. © PHYTEC Messtechnik GmbH 2012 L-763e_0...
  • Page 37: Debugging

    If a problem occurs during data transfer, an error message will be displayed. If this should occur, make sure you have established a connection between your PC and your phyCORE-OMAP44xx device as described in section 2.5. © PHYTEC Messtechnik GmbH 2012 L-763e_0...
  • Page 38 The debugger will run up to the code section you have marked with a breakpoint and stop automatically. Notice the yellow arrow pointing to that breakpoint. You can click on Debug / Toggle Breakpoint or press F9 again to remove the breakpoint you have set. © PHYTEC Messtechnik GmbH 2012 L-763e_0...
  • Page 39: Visual Studio 2008 Debug Features

    Step Out is very useful if you find yourself in a function you are not interested in and need to return quickly to your intended function. • The Hex button toggles the display style of watch variables between hexadecimal and decimal. © PHYTEC Messtechnik GmbH 2012 L-763e_0...
  • Page 40: Using The Visual Studio 2008 Debug Features

    • To run your program without stopping at any time, delete all breakpoints by clicking on the Insert / Remove Breakpoint icon. • Click the Go button. • You can use the Stop Debugging button to stop program execution at any time. © PHYTEC Messtechnik GmbH 2012 L-763e_0...
  • Page 41: Changing Target Settings For The "Executable Version

    You can now watch your final example on the screen of your phyCORE- OMAP44xx device. You have successfully finished the debug section of this QuickStart. You learned how to set breakpoints, run your program to a specific line of code and inspect variables. © PHYTEC Messtechnik GmbH 2012 L-763e_0...
  • Page 42 ® phyCORE -OMAP44xx QuickStart Instructions © PHYTEC Messtechnik GmbH 2012 L-763e_0...
  • Page 43: Building An Image

    Under the “Files” section add the following line: HelloWorld.exe "C:\PHYTEC\PCM049_phyCORE-OMAP44xx\WinCE-Kit\QuickStart\Demos\Demo\ HelloWorld\HelloWorld\Phytec phyCORE-OMAP44xx SDK (ARMV4I)\Debug\HelloWorld.exe" NK This will add the executable HelloWorld.exe to the Windows directory of the target. The path tells the platform builder where to find the executable that should be added to the image and the parameter NK specifies the name of the memory region where it should be added to.
  • Page 44: Download An Image

    The HyperTerminal main window will now appear: Double-click on the HyperTerminal icon “Hypertrm” to create a new HyperTerminal session. The Connection Description window will now appear. Enter “COM Direct” in the Name text field. © PHYTEC Messtechnik GmbH 2012 L-763e_0...
  • Page 45 COM1/COM2 under the Connect Using pull-down menu (be sure to indicate the correct COM setting for your system). Click the Configure button in the COM Direct Properties window to advance to the next window (COM1/COM2 Properties). © PHYTEC Messtechnik GmbH 2012 L-763e_0...
  • Page 46 • Press ‘7’ to save the configuration. • Press ‘0’ for start downloading the image. You will see some output messages followed by a BOOTME message. • Select Target Attach Device… from the Visual Studio 2008 menu bar. © PHYTEC Messtechnik GmbH 2012 L-763e_0...
  • Page 47 • Press ‘2’ for Select Boot Device and then choose ‘3’ for NK from NAND. • Press ‘7’ to save the configuration. • Press ‘0’ and the original image from flash will be started again. © PHYTEC Messtechnik GmbH 2012 L-763e_0...
  • Page 48 Click “OK” and select Build -> Make run-time image in Visual Studio. Please read Appendix A “How to install Windows Embedded Compact on the phyCORE-OMAP44xx” for information on how to flash the image. You have successfully finished this QuickStart. © PHYTEC Messtechnik GmbH 2012 L-763e_0...
  • Page 49: Summary

    Visual Studio 2008. You learned how to set breakpoints, watching and changing variables content. In the Building an Image section you learned how to build a new image based on a preconfigured BSP and project. © PHYTEC Messtechnik GmbH 2012 L-763e_0...
  • Page 50 ® phyCORE -OMAP44xx QuickStart Instructions © PHYTEC Messtechnik GmbH 2012 L-763e_0...
  • Page 51: Appendix A How To Install Windows Embedded Compact On The Phycore-Omap44Xx Kit

    The HyperTerminal main window will now appear: Double-click on the HyperTerminal icon “Hypertrm” to create a new HyperTerminal session. The Connection Description window will now appear. Enter “COM Direct” in the Name text field. © PHYTEC Messtechnik GmbH 2012 L-763e_0...
  • Page 52 Click the Configure button in the COM Direct Properties window to advance to the next window (COM1/COM2 Properties). • Set the following COM parameters: Bits per second = 115200; Data bits = 8; Parity = None; Stop Bits = 1; Flow Control = None. © PHYTEC Messtechnik GmbH 2012 L-763e_0...
  • Page 53 Second one is a persistent flash image that will be programmed in NAND flash. • Open the Project -> OMAP4Phytec Properties in Visual Studio. • The window OMAP4Phytec Property Pages appear. Expand Configuration Properties and select Build Options on the tree. © PHYTEC Messtechnik GmbH 2012 L-763e_0...
  • Page 54 • After build select Target / Connectivity Options… from the Visual Studio 2008 menu bar. • Select OMAP4 Device in the Target Device drop down box. • Select Ethernet in the Kernel Download and Kernel Transport settings. © PHYTEC Messtechnik GmbH 2012 L-763e_0...
  • Page 55 • Go back to Visual Studio. In the window Ethernet Download Settings a new entry should appear in the Active target devices list. Select the device and close the window by pressing Apply in the first window and Apply and Close in the second one. © PHYTEC Messtechnik GmbH 2012 L-763e_0...
  • Page 56 • Press ‘2’ for Select Boot Device and then choose ‘7’ for NK from NAND. • Press ‘7’ to save the configuration. • Press ‘0’. Booting will now always be done from flash again. © PHYTEC Messtechnik GmbH 2012 L-763e_0...
  • Page 57: Appendix B How To Update An Existing Bootloader On The Phycore-Omap44Xx Kit

    The HyperTerminal main window will now appear: Double-click on the HyperTerminal icon “Hypertrm” to create a new HyperTerminal session. The Connection Description window will now appear. Enter “COM Direct” in the Name text field. © PHYTEC Messtechnik GmbH 2012 L-763e_0...
  • Page 58 Click the Configure button in the COM Direct Properties window to advance to the next window (COM1/COM2 Properties). • Set the following COM parameters: Bits per second = 115200; Data bits = 8; Parity = None; Stop Bits = 1; Flow Control = None. © PHYTEC Messtechnik GmbH 2012 L-763e_0...
  • Page 59 OMAP4Phytec on the Build menu in Visual Studio. • After build process select Project-> OMAP4Phytec Properties on the Visual Studio menu. • The window OMAP4Phytec Property Pages appear. Expand Configuration Properties and select General on the tree. © PHYTEC Messtechnik GmbH 2012 L-763e_0...
  • Page 60 • Select Target / Connectivity Options… from the Visual Studio 2008 menu bar. • Select OMAP4 Device in the Target Device drop down box. • Select Ethernet in the Kernel Download and Kernel Transport settings. © PHYTEC Messtechnik GmbH 2012 L-763e_0...
  • Page 61 • Go back to Visual Studio. In the window Ethernet Download Settings a new entry should appear in the Active target devices list. Select the device and close the window by pressing Apply in the first window and Apply and Close in the second one. © PHYTEC Messtechnik GmbH 2012 L-763e_0...
  • Page 62 • On the Visual Studio menu select Target -> Detach Device. • Select Project-> OMAP4Phytec Properties in the Visual Studio menu. • The window OMAP4Phytec Property Pages appear. Expand Configuration Properties and select General on the tree. © PHYTEC Messtechnik GmbH 2012 L-763e_0...
  • Page 63 • Power up the board and the bootloader will automatically download the second bootloader to your device. • When the download is finished, the image has been downloaded in flash and the message INFO: XLDR/EBOOT/IPL downloaded, spin forever should appear on the HyperTerminal. © PHYTEC Messtechnik GmbH 2012 L-763e_0...
  • Page 64 ® phyCORE -OMAP44xx QuickStart Instructions © PHYTEC Messtechnik GmbH 2012 L-763e_0...
  • Page 65 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 2012 L-763e_0...
  • Page 66 Published by © PHYTEC Messtechnik GmbH 2012 Ordering No. L-763e_0 Printed in Germany...

Table of Contents