Phytec phyCORE-LPC3250 Quick Start Instructions

Rapid development kit
Hide thumbs Also See for phyCORE-LPC3250:

Advertisement

Quick Links

QuickStart Instructions
®
phyCORE
- LPC3250
Rapid Development Kit
Windows Embedded CE
Using Microsoft Visual Studio 2005
Software Development Tool Chain
Note: The phyCORE-LPC3250-Rapid Development Kit CD includes the electronic version of
®
the English phyCORE
-LPC3250 Hardware Manual
Edition: December 2008
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-LPC3250 and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

Summary of Contents for Phytec phyCORE-LPC3250

  • Page 1 - LPC3250 Rapid Development Kit Windows Embedded CE Using Microsoft Visual Studio 2005 Software Development Tool Chain Note: The phyCORE-LPC3250-Rapid Development Kit CD includes the electronic version of ® the English phyCORE -LPC3250 Hardware Manual Edition: December 2008 A product of a PHYTEC Technology Holding company...
  • Page 2 PHYTEC America LLC neither gives any guarantee nor accepts any liability whatsoever for consequential damages resulting from the use of this manual or its associated product. PHYTEC America LLC 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.4 Running, Stopping and Resetting ..........26 4.5 Changing Target Settings for the "Executable Version" ... 27 Building an OS Image .................28 5.1 Download and Install the phyCORE-LPC3250 Binary BSP..28 5.2 Open the OSDesign..............29 5.3 Build the Image ................29 5.4 Download an Image using Visual Studio ........
  • Page 4: Introduction

    Studio 2005 software development tool chain Professional Support Packages Available PHYTEC backs up our Rapid Development Kits with a Start-Up Guarantee. We invite you to make use of our free Technical Support concerning installation and setup of QuickStart demos until any kit start-up problem you might encounter is resolved.
  • Page 5: Overview Of This Quickstart Instruction

    Field and window names or titles, menu items, and other terms that correspond to items on the PC desktop Underline Blue Hyperlinks to documents, webpage URLs, or FTPs Bold Red Command line entries Fixed Width  Source code listings and examples © PHYTEC America LLC 2008 L-716e_1...
  • Page 6 At this point you might leave the sequential path of this QuickStart. This warning will help you avoid problems. Useful supplementary information about the topic. Estimated completion time for the following section. Completion of an important part of this QuickStart. Helpful information for troubleshooting. © PHYTEC America LLC 2008 L-716e_1...
  • Page 7: System Requirements

    (setup.exe) can be manually executed from the root folder of the CD. All path and file statements within this QuickStart Instruction are based on the assumption that you keep C:\PHYTEC as the default path when installing the Kit CD to your hard drive. 1. Insert the PHYTEC Kit CD.
  • Page 8: Microsoft Visual Studio 2005 Development Tool Chain

    Introduction 3. Keep C:\PHYTEC as the installation path and select Next to continue. 4. On the Ready to Install window, select Install. 5. After the installation process is complete, select Finish. The PHYTEC Kit CD installation path is C:\PHYTEC\phyCORE-LPC3250 and the following five subfolders are located within the phyCORE-LPC3250 directory: Demos –...
  • Page 9 WinCE applications, MFC WinCE applications and .NET Applications for WinCE. If you already have installed another version of Visual Studio 2005, you can use this one. We recommend installing the evaluation version when working with this QuickStart. © PHYTEC America LLC 2008 L-716e_1...
  • Page 10: Getting Started

    3. Visual Studio 2005 Team Suite Service Pack 1 4. Windows Embedded CE 6.0 Platform Builder Service Pack 1 5. Windows Embedded CE 6.0 R2 6. Windows Embedded CE 6.0 QFE's 7. ActiveSync 4.5 8. phyCORE-LPC3250 SDK © PHYTEC America LLC 2008 L-716e_1...
  • Page 11: Installing Visual Studio 2005

    You will require activation keys for both Visual Studio and Platform Builder. You can request these keys from Microsoft. Please read the inside of the Windows Embedded CE6.0 R2 DVD package for information. © PHYTEC America LLC 2008 L-716e_1...
  • Page 12: Installing Windows Embedded Ce 6.0 Platform Builder

    If not, open windows file explorer, go to your DVD drive and start "setup.exe" manually. • When the following dialog appears, be sure to select Platform Builder and under CE 6.0 Operating System the files for ARMV4I. © PHYTEC America LLC 2008 L-716e_1...
  • Page 13: Installing Service Packs And Windows Embedded Ce6.0 Platform Builder R2

    The absence of specific features is therefore recognized at “compile-time” not at “runtime”. • To install the LPC3250 SDK open a file manager and navigate to: C:\PHYTEC\phyCORE-LPC3250\WinCE\SDK. © PHYTEC America LLC 2008 L-716e_1...
  • Page 14: Boot Windows Embedded Ce Os On The Phycore®-Lpc325011

    All necessary configurations were done by the setup program. Boot Windows Embedded CE OS on the phyCORE®-LPC3250 A Windows Embedded CE image was pre-installed to the phyCORE-LPC3250 on- board Flash memory. The Windows Embedded CE image pre-installed on the phyCORE- LPC3250 does not support USB-Host.
  • Page 15: Establishing An Active Sync Connection

    If you are not able to establish an ActiveSync connection, the phyCORE may have the “USB Host” version of the NK.bin WinCE image, which does not support ActiveSync. Refer to Appendix B for instructions to install the ActiveSync version of NK.bin © PHYTEC America LLC 2008 L-716e_1...
  • Page 16: 2.10 Downloading Application Code With Active Sync

    Getting Started 2.10 Downloading Application Code with Active Sync To download the demo application provided on the PHYTEC Kit CD, you need to have Active Sync running on your PC to be able to establish a connection to your LPC3250 device as described in the chapter 2.9.
  • Page 17: 2.11 Downloading Application Code With Visual Studio 2005

    Getting Started 2.11 Downloading Application Code with Visual Studio 2005 PHYTEC provides you with example code to learn about downloading code onto your LPC3250 device. This code has already been copied to your local hard drive by the setup in section 1.6.
  • Page 18 Build/Deploy HelloWorld from the main menu bar. • The individual steps of the download procedure can be viewed in the Output Window - Build tab. • Wait until the download is complete. © PHYTEC America LLC 2008 L-716e_1...
  • Page 19 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 America LLC 2008 L-716e_1...
  • Page 20: Getting More Involved

    • Open the Visual C++ tree and select Smart Device. • In the Templates window select Win32 Smart Device Project. • In the Name field, enter the name of the project you wish to create, e.g. myHelloWorld. • Click OK. © PHYTEC America LLC 2008 L-716e_1...
  • Page 21 • Click on the entry LPC3250-SDK in the field Installed SDKs: and press the > button to add the selected platform SDK to the project. The LPC3250-SDK will appear in the Selected SDKs field. © PHYTEC America LLC 2008 L-716e_1...
  • Page 22 • 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 • Don’t change the settings in this window and press Finish. © PHYTEC America LLC 2008 L-716e_1...
  • Page 23: Modifying The Source Code

    WM_PAINT: hdc = BeginPaint(hWnd, &ps); • If line numbers are not displayed, go to Tools / Options. Under the Text Editor tree, select C/C++ and check the "Line numbers" option under Display options. © PHYTEC America LLC 2008 L-716e_1...
  • Page 24 = rt.top + 30; DrawText(hdc, _T("Hello World!"), 12, &rt, DT_SINGLELINE | DT_VCENTER | DT_CENTER); EndPaint(hWnd, &ps); break; • Save the modified file by choosing File / Save or by clicking the floppy disk icon © PHYTEC America LLC 2008 L-716e_1...
  • Page 25: Building The Project

    A window will open on your LPC3250 device that will print 5 "Hello World" message. You have now modified source code, recompiled the code, created a downloadable file, and successfully executed this modified code. © PHYTEC America LLC 2008 L-716e_1...
  • Page 26: Debugging

    If data transfer was successful, a screen similar to the one shown below will appear. The debug toolbar is displayed. In the lower part of the debug screen you will see the Variables and Watch windows. © PHYTEC America LLC 2008 L-716e_1...
  • Page 27 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 America LLC 2008 L-716e_1...
  • Page 28: Visual Studio 2005 Debug Features

    • The Hex button toggles the display style of watch variables between hexadecimal and decimal. • The last button pops up a menu where you can choose different windows useful for debugging, like watch windows, process information, memory information and calling stack. © PHYTEC America LLC 2008 L-716e_1...
  • Page 29: Using The Visual Studio 2005 Debug Features

    Insert/Remove Breakpoint icon. • Click the Go button. • "Hello World!" will be displayed on the screen of your LPC3250 device. • You can use the Stop Debugging button to stop program execution at any time. © PHYTEC America LLC 2008 L-716e_1...
  • Page 30: Changing Target Settings For The "Executable Version

    LCD screen of your LPC3250 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 America LLC 2008 L-716e_1...
  • Page 31: Building An Os Image

    Download and Install the phyCORE-LPC3250 Binary BSP Adeneo is the official partner of PHYTEC America for all Windows Embedded CE developments for the phyCORE-LPC3250. • Download the most current LPC3250 Binary BSP from Adeneo FTP. Find Adeneo FTP access information here: http://www.adeneo-embedded.com/srt/en/document/show?location.id%3A=1353...
  • Page 32: Open The Osdesign

    Copy the three subfolders: LPC3250-DK_BIN LPC3250-DK_BIN_ActiveSync LPC3250-DK_Bluetooth_BIN to: C:\WINCE600\OSDesigns. • Browse to: C:\WINCE600\OSDesigns\LPC3250-DK_BIN_ActiveSync\LPC3250- • Open the OSDesign project LPC3250-DK.pbxml. Build the Image When the project is loaded you should see the project in the Solution Explorer window. © PHYTEC America LLC 2008 L-716e_1...
  • Page 33: Download An Image Using Visual Studio

    • Connect the serial cable from the PC to the bottom DB-9 on the Carrier Board (P1 BTM = UART5). • Start a Hyperterminal session with the following COM settings: 115200 bps 8 bit No parity 1 bit stop No flow control • Power up the board. © PHYTEC America LLC 2008 L-716e_1...
  • Page 34 • Press ‘3’ to disable DHCP. • Press ‘0’ to set the IP address of the device and ‘1’ to change the network mask. Be sure these settings will fit to the network settings on your PC IP address. © PHYTEC America LLC 2008 L-716e_1...
  • Page 35 • Select Ethernet for the Download and Transport settings from the drop down box. • Click on the Settings button on the right of the Download Drop down box. The Ethernet download settings window will appear. Leave this window open. © PHYTEC America LLC 2008 L-716e_1...
  • Page 36 When the download is finished, the image should start. Calibrate the touch panel, and then navigate to the folder MyDevice\Windows. There you find your HelloWorld application that can be executed. The NK.bin OS image has now been successfully downloaded and resides in the phyCORE-LPC3250 on-board Flash memory. © PHYTEC America LLC 2008 L-716e_1...
  • Page 37: Appendix A Install The Bootloader (Eboot.nb0) From Sd Card

    Appendix A: Install the bootloader (eboot.nb0) from SD Card To download eboot, the phyCORE-LPC3250 must have Stage 1 Loader pre-installed (if this is not the case, contact PHYTEC support@phytec.com) 1. Connect the Serial cable from the PC to the bottom DB-9 on the Carrier Board (P1 BTM=UART5) 2.
  • Page 38 9. Next type: PHY3250>prompt PHY3250> 1 phy3250> 10. Next type: phy3250>aboot flash raw 0x80000000 Autoboot configuration updated phy3250> The eBoot loader has now been successfully downloaded and resides in the phyCORE-LPC3250 on-board Flash memory. © PHYTEC America LLC 2008 L-716e_1...
  • Page 39: Appendix B Install An Image (Nk.bin) From Sd Card

    The pre-installed WinCE binary image is the _activesync_ version included with the BSP. The ActiveSync version is required for certain steps of this Quickstart. However, if you wish to use the phyCORE-LPC3250 as a USB host, use the _usbhost_ version of the WinCE binary image. The NK.bin image cannot exceed 61.5 MB.
  • Page 40 8) Download source: Ethernet 9) SDCard file name: NK.bin l) Launch flash resident image now d) Download from SD Card now s) Save configuration now r) Restore default configuration and save now n) Image flash menu © PHYTEC America LLC 2008 L-716e_1...
  • Page 41 When the download is finished, the image should start. The calibration application should appear. Calibrate the touch panel. The NK.bin OS image has now been successfully downloaded and resides in the phyCORE-LPC3250 on-board Flash memory. Congratulations you have completed this QuickStart manual. © PHYTEC America LLC 2008...

Table of Contents