Hide thumbs Also See for phyCORE-LPC3180:

Advertisement

Quick Links

®
phyCORE
-LPC3180
QuickStart Instructions
Programming Embedded Linux on phyCORE-LPC3180
Note: The PHYTEC Spectrum CD includes the electronic version of the English
phyCORE-LPC3180 Hardware Manual
Edition: May 2007
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-LPC3180 and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

Summary of Contents for Phytec phyCORE-LPC3180

  • Page 1 ® phyCORE -LPC3180 QuickStart Instructions Programming Embedded Linux on phyCORE-LPC3180 Note: The PHYTEC Spectrum CD includes the electronic version of the English phyCORE-LPC3180 Hardware Manual Edition: May 2007 A product of a PHYTEC Technology Holding company...
  • Page 2 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

    2.5 LPC3180 Boot Process ..............8 Getting Started ..................9 3.1 Installing Rapid Development Kit Software ........9 3.1.1 Installing PHYTEC Spectrum CD ......... 9 3.1.2 Install the Segger jlink.exe and J-Link Drivers....10 3.2 Interfacing the phyCORE®-LPC3180 to a Host-PC....... 11 3.3 Flashing Images ................
  • Page 4 QuickStart Instructions Index of Figures Figure 1: Default Jumper Settings of the phyCORE Carrier Board with phyCORE-LPC3180.............. 11 Figure 2: Power Connector................12 © PHYTEC America LLC 2007 L-698e_2...
  • Page 5: Introduction To The Rapid Development Kit

    LPC3180 Carier Board. The phyCORE-LPC3180 Carrier Board contains the I/O connectors as well as any other interface circuitry not provided on the phyCORE module itself. The phyCORE module, combined with the PHYTEC Carrier Board, provides a platform to jump start embedded designs and propel concept to prototype and finished product.
  • Page 6: System Description

    The Segger J-LINK is included in the Rapid Development Kit version with the part number KPCM-031-LINUX. The phyCORE-LPC3180 is a USB OTG enabled device. When operating as an embedded host, an OTG device can only supply up to 8mA of operating current. Most non-OTG enabled USB devices require more than 8mA of operating current so a powered USB hub is typically required to interface USB devices.
  • Page 7: Host System Requirements For Downloading Images (Section 3)

    Operating System: Linux • Terminal emulation program such as, Minicom or RealTerm 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 © PHYTEC Anerica LLC 2007 L-698e_2...
  • Page 8: The Phytec Phycore®-Lpc3180

    (1). Configuration of the boot mode is done via an external jumper on the phyCORE- LPC3180 Carrier Board. By default the Carrier Board should be configured for boot process (2). Please refer to the PHYTEC phyCORE-LPC3180 hardware manual for details on changing this setting if required.
  • Page 9: Getting Started

    3.1 Installing Rapid Development Kit Software 3.1.1 Installing PHYTEC Spectrum CD The current version of the PHYTEC Spectrum CD for ARM7/9 does not provide a setup program for automatic installation of the LINUX specific kit contents . You will need to manually copy the demos, manuals, and other support documents for this Rapid Development Kit to your local hard drive.
  • Page 10: Install The Segger Jlink.exe And J-Link Drivers

    The Segger J-Link includes a CD-ROM with the required Windows drivers and the jlink.exe command prompt utility. In addition PHYTEC provides the most recent version (as of the printing of this manual) of the J-Link drivers on the Spectrum CD for ARM7/9. Alternatively you can download...
  • Page 11: Interfacing The Phycore®-Lpc3180 To A Host-Pc

    Getting Started 3.2 Interfacing the phyCORE®-LPC3180 to a Host-PC Connecting the phyCORE-LPC3180, mounted on the phyCORE Carrier Board, to your computer is simple. • Ensure proper jumper settings on the phyCORE Carrier Board as shown in Figure 1. All phyCORE-LPC3180 Carrier Board jumper settings can be referenced in the phyCORE-LPC3180 Hardware Manual section 13.1.1.
  • Page 12 Board combination (which is also referred to as "target hardware" within this document). The phyCORE module/Carrier Board combination should now be properly connected to a host PC via the Segger J-LINK. © PHYTEC America LLC 2007 L-698e_2...
  • Page 13: Flashing Images

    Getting Started 3.3 Flashing Images Flashing images on the phyCORE-LPC3180 involves using one or both of the NAND Flash controllers available on the LPC3180. Both the SLC and MLC NAND Flash controllers on the LPC3180 can be used to write to the SLC NAND Flash device populating the phyCORE-LPC3180. Special attention should be paid to which Flash controller is being used when writing to NAND Flash.
  • Page 14 QuickStart Instructions • Click OK to close the New User Variable, Environment Variables, and System Properties windows. © PHYTEC America LLC 2007 L-698e_2...
  • Page 15 3.3.1.3 Command Prompt • Open a command prompt window and browse to the Demo folder at this location: C:\PHYBasic\pC-LPC3180\Linux\Demo You should see the following files: bootflash.bin rootfs_phytec.ubt uimage_phytec.ubt load_bootflash.jlink sibl_phytec.bin uboot_phytec.bin load_images.jlink uImage_phytec uboot_phytec.ubt © PHYTEC Anerica LLC 2007 L-698e_2...
  • Page 16: Writing Images To Flash

    QuickStart Instructions 3.3.2 Writing Images to Flash To boot Linux from phyCORE-LPC3180 NAND Flash, four images must be written to the NAND Flash: (1) SIBL, (2) U-Boot, (3) the Linux image, and (4) the Linux file system. The Bootflash utility is used to burn these images to NAND Flash.
  • Page 17 Getting Started • Select 2 from the menu for the default 32 MB SDRAM populating the phyCORE-LPC3180 Linux development kits. If you have SDRAM of a different size, please select accordingly. • Now return to the command prompt window and quite the Jlink program by entering q in the command prompt J-Link>q...
  • Page 18 After the script completes, return to the HyperTerm window and the running instance of Bootflash. • Now that the images are in SDRAM they can be written to the on-board NAND Flash. At the Bootflash command prompt issue the following command: bootflash $ lflash © PHYTEC America LLC 2007 L-698e_2...
  • Page 19 Next the secondary boot loader SIBL must be written to Flash. The load_images script placed this file at the SDRAM address 0x81000000. To write this binary file to Flash, the command nand bwrite must be used. Type the following command at the Bootflash prompt: bootflash $ nand bwrite 0x81000000 0x1400 © PHYTEC Anerica LLC 2007 L-698e_2...
  • Page 20 • Press the reset button, labeled “RST”, located near the 5V power connector on the phyCORE- LPC3180 Carrier Board. Linux will begin booting. • After successful boot, Linux login prompt should display: © PHYTEC America LLC 2007 L-698e_2...
  • Page 21: Extended Demo: Usb-Ethernet

    (non) login: root The phyCORE-LPC3180 is a USB OTG enabled device. When operating as an embedded host, an OTG device can only supply up to 8mA of operating current. Most non-OTG enabled USB devices require more than 8mA of operating current so a powered USB hub is typically required to interface USB devices.
  • Page 22 • If you have successfully setup the default gateway, you should be able to ping an outside IP address, such as PHYTEC’s IP address: ~ # ping 72.34.40.39 Press CTRL+C to abort pinging after verifying that packets are being sent and received.
  • Page 23: Using Mmc/Sd Card Devices

    You have now successfully demonstrated use of a USB-Ethernet adapter within the Linux operating system environment. PHYTEC is currently working on instructions for building the Linux kernel and file system using the source BSP provided on the PHYTEC Spectrum CD. Please visit the following PHYTEC product page for additional and updated documentation: http://www.phytec.com/products/sbc/ARM-XScale/phyCORE-ARM9-LPC3180.html...
  • Page 24: Getting More Involved

    • Copy the Arm Linux GCC toolchain arm-linux-gcc-2004-q1-vfp.tar.gz from the PHYTEC Spectrum CD: phyBASIC\pC-LPC3180\Linux\Arm to your host machine. The remainder of this Quickstart guide assumes that the path for the Arm toolchain on the host machine is /usr/local/arm/gnu.
  • Page 25: Building U-Boot

    % make u-boot.axf The U-boot* files can be converted into a U-Boot image (single line): % ./tools/mkimage –A arm –O u-boot –T Firmware –C none –a 81EC0000 –e 81EC0000 –n "PHYTEC U-Boot v0.1" –d u-boot.bin uboot_phytec.ubt © PHYTEC Anerica LLC 2007...
  • Page 26: Building Linux Kernel

    To build a Kernel image, the Arm Linux GCC toolchain must be copied to the Linux host machine as described in section 5.1. • Copy the phyCORE-LPC3180 Linux kernel patch linux-2.6.10-phytec3180.patch.gz from the PHYTEC Spectrum CD: phyBASIC\pC-LPC3180\Linux\BSP Source\kernel to your host machine. The remainder of this Quickstart guide assumes that the path for the kernel patch on the host machine is /usr/local/arm/kernel.
  • Page 27: Root File System

    Copy the phyCORE-LPC3180 ext2 root file system root_fs_arm.ext2.phytec.gz from the PHYTEC Spectrum CD: phyBASIC\pC-LPC3180\Linux\File System to your host machine. The remainder of this Quickstart guide assumes that the path for the phyCORE-LPC3180 ext2 root file system on the host machine is /usr/local/arm/rootfs.
  • Page 28: File System Workflow

    5.5.5 Building a New Root File System Important: If it is required to build a new root file system, the kernel and the libraries in the root file- system must be built with the same compiler. root_fs_arm.ext2.phytec was built with arm-linux-gcc v3.4.0 with vfp support.
  • Page 29: Building A Jffs2 File System

    The JFFs2 file system must be copied to /dev/mtd0 when Linux is running. • Boot-up the phyCORE-LPC3180 and stop U-Boot from autostarting Linux • When adding a JFFS2 flash file system, space must be made in the NAND flash. The start offset of the JFFS2 is 0x01000000 and the end address is 0x1f000000.
  • Page 30 Suggestions for Improvement Document: phyCORE-LPC3180 QuickStart Instructions - LINUX Document number: L-698e_2, May 2007 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 America LLC...
  • Page 31 Published by © PHYTEC America LLC 2007 Document Number: L-698e_2 Printed in Germany...

Table of Contents