Advertisement

Quick Links

LPC3180 Development Kit
User's Manual
For Software and Documentation please go to:
www.teamfdi.com/lpc3180

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the LP3180 and is the answer not in the manual?

Questions and answers

Summary of Contents for FDI LP3180

  • Page 1 LPC3180 Development Kit User’s Manual For Software and Documentation please go to: www.teamfdi.com/lpc3180...
  • Page 2 Future Designs, Inc. 2702 Triana Boulevard, Huntsville, AL 35805 NOTE: The inclusion of vendor software products in an FDI kit does not imply an endorsement of the product by Future Designs, Inc.
  • Page 3: Table Of Contents

    NXP LPC3180 Demo User’s Manual Table of Contents Introduction......................5 Guide to Kit......................5 Kit Contents ......................5 Software and Documentation................5 Power Requirements ................... 5 Jumpers ....................... 6 JTAG Connectors....................6 Serial Connection....................6 GUI Board......................7 Hardware Setup....................... 8 Software Installation .....................
  • Page 4 NXP LPC3180 Demo User’s Manual 11.0 General Sales and Contact Information ..............31 11.1 General Sales ....................31 11.2 Contact Information ..................31 12.0 APPENDIX A: Board Layout and Connectors............ 32 13.0 APPENDIX B: Schematic and Parts List ............33 14.0 APPENDIX C: Framebuffer API.................
  • Page 5: Introduction

    2.2 Software and Documentation Currently, all software and documentation related to the LPC3180 Development Kit can be downloaded from the FDI website at www.teamfdi.com/lpc3180. The release distribution includes Gerber files, schematics, module datasheets, software currently on the board, as well as all other patches and setup software required to begin development.
  • Page 6: Jumpers

    NXP LPC3180 Demo User’s Manual For some International Applications where a special 220V Power Supply is required, or for larger power supply options, contact Condor Power Supplies at phone number (408) 745-7141 or DigiKey at (800) 344-4539. 2.4 Jumpers The following table lists all jumpers on the LPC3180 board, their default configurations, and a description on the manipulation of their positions.
  • Page 7: Gui Board

    NXP LPC3180 Demo User’s Manual 2.7 GUI Board The GUI board provides an input/output interface to the LPC3180 board. The board contains a simple keypad with cellular phone-like buttons as well as the Densitron DVC40406 LCD module. The LCD module allows for a resolution of 128x160 and up to 65K Colors.
  • Page 8: Hardware Setup

    NXP LPC3180 Demo User’s Manual Hardware Setup The list below outlines the necessary steps for getting the LPC3180 and optional GUI board up and running. Images are provided where necessary as visual aides to the setup process. 1. Place LPC3180 and GUI boards on a flat surface. 2.
  • Page 9 NXP LPC3180 Demo User’s Manual Figure 1: GUI Board Connection Figure 2: Serial Connection Figure 3: Power Switch Rev 2 Page 9 9/7/2007...
  • Page 10: Software Installation

    NXP LPC3180 Demo User’s Manual Software Installation 4.1 Host PC To download images into the LPC3180 board’s NAND flash, the J-Link Commander tool should be used. To install this product, double-click on the “Setup_JLinkARM_V356b.exe” file included in the distribution. After executing the file, the user will be prompted with the install wizard.
  • Page 11: Build System

    NXP LPC3180 Demo User’s Manual Figure 6: Install Progress Finally, click “Finish” to end the installation. Shortcuts should now be placed on your desktop which will allow you to open JLink Commander and run the programming scripts. Figure 7: Finish Installation 4.2 Build System To successfully re-build kernel, u-boot, and root filesystem images for the LPC3180 board, a build system must be set up.
  • Page 12: Boot Process

    NXP LPC3180 Demo User’s Manual Boot Process This section provides a detailed description of the boot process for the LPC3180 board. First, a general list of steps is given as an overview to the boot process. A more detailed explanation is then provided for the main applications responsible for loading Linux on the LPC3180.
  • Page 13: U-Boot

    NXP LPC3180 Demo User’s Manual On startup, the three LEDs located just above the LPC3180 will blink indicating CPU activity. Following this the LEDs will count from 1 to 5 in binary as SIBL progresses through various stages. This is useful in circumstances when the GUI board is not plugged in and a HyperTerminal connection is not being made from a Host PC.
  • Page 14: Nand Flash Memory Map

    NXP LPC3180 Demo User’s Manual 5.5 NAND Flash Memory Map The NAND Flash is split into the following sections: Section Address Start Interface Configuration data (ICR) 0x00000000 Secondary Boot Loader (SIBL) 0x00000800 RootFS 0x00020000 Linux Kernel 0x00620000 U-Boot 0x00800000 JFFS2 file system 0x01000000 Rev 2 Page 14...
  • Page 15: Downloading New Software

    NXP LPC3180 Demo User’s Manual Downloading New Software Please consult the FDI website, www.teamfdi.com/lpc3180 for updated board images and other related software. Updated software may be downloaded to the LPC3180’s NAND flash memory using a two stage process. First, all images must be transferred via JTAG to the LPC3180’s SDRAM.
  • Page 16 NXP LPC3180 Demo User’s Manual Building Images. Otherwise, the following steps may be used to transfer images to SDRAM: The serial connection to the LPC3180 board should be configured according to the steps outlined in 2.6 Serial Connection. To properly communicate with the board using J-Link Commander, the J-Link-ARM-KS JTAG dongle should be connected to J2 on the LPC3180 Board (see Figure 8).
  • Page 17: Writing Sdram To Nand Flash

    NXP LPC3180 Demo User’s Manual w2 0x2 0x4700 w4 0x4 0xeafffffe setpc 0 loadbin u-boot.bin, 81EC0000 loadbin rootfs.ubt, 80020000 loadbin kernel.ubt, 80620000 loadbin uboot.ubt, 80800000 setpc 81EC0000 NOTE: The “NXP Demo Setup” shortcut ( ..\Software\Binaries\Programmed_Images) expects JLink.exe to be located at "C:\Program Files\SEGGER\JLinkARM_V356b\JLink.exe".
  • Page 18 NXP LPC3180 Demo User’s Manual several minutes to complete. The third command writes the kernel.ubt image to NAND and the fourth command writes the uboot.ubt image to NAND. If it is desirable to only erase a particular image, the following commands are useful: (filesystem) LPC3180 # nand erase 00020000 500000 (kernel)
  • Page 19: Building Images In Linux

    NXP LPC3180 Demo User’s Manual Building Images in Linux The following section explains the direct steps needed to compile the UBT files from their standard sources. 7.1 Building U-Boot Currently, a patch should be applied against the standard u-boot-1.1.1 release. This release can be downloaded from ftp://ftp.denx.de/pub/u-boot/u-boot-1.1.1.tar.bz2.
  • Page 20: Kernel Modules

    NXP LPC3180 Demo User’s Manual mkimage -A arm -O Linux -T Kernel -C none -a 80620000 -e 80620000 –n “NXP Demo Linux-2.6.10” -d arch/arm/boot/uImage kernel.ubt 7.2.1. Kernel Modules In the case where kernel modules must change, it is necessary to install the kernel modules into the root file system image and re-download the image onto the board (see section 6.0 Downloading New Software).
  • Page 21: Linux Features

    Disclaimer: BGW211 drivers available on the reference design are available for use. They are supported "as is" and there is no commitment from NXP or FDI for bug fixing. An updated driver will likely be available in Q4-2007. Existing driver on the system has been tested in the lab environment, but has not been certified by any SIG.
  • Page 22: Bluetooth

    NXP LPC3180 Demo User’s Manual echo "cs=1,client=wlan,cs_pin=GPO_21,flags=1,mbx_int=36,mbx_pin= gpi_11" > /sys/devices/platform/spi-pnx1/cs_table cat /sys/devices/platform/spi-pnx1/cs_table The module itself can be found in the kernel module repository (/lib/modules/2.6.10/kernel/drivers/net/ga_linuxdrv_211_pnx4008_spi.ko), but is not loaded in the same manner as the other drivers due to the necessity of the two above commands.
  • Page 23 NXP LPC3180 Demo User’s Manual ssdfb.h ${LINUX}/include/linux Contains IOCTL defines and others used by ssdfb.c. Should be included by user applications to access IOCTL commands. LCD_SSD1783B.c ${LINUX}/drivers/video This file contains the low-level code to communicate with the SSD1783U2 controller. It must be linked with the ssdfb.c code during module compilation.
  • Page 24: Functional Tests

    (SW1) is toggled. Alternatively if the GUI board is not present, the space key may be tapped after observing the following text in HyperTerminal: NXP LPC3180 Demo FDI SIBL v1.00 SIBL will perform initialization and the quick memory test before going into Functional Test Mode.
  • Page 25: Test Leds

    NXP LPC3180 Demo User’s Manual Pressing the Esc key/End button will exit functional test mode and boot the LPC3180 board into Linux as normal. 9.3 Test LEDs This test verifies functional GPIO pins from the LPC3180 as well as proper operation from the LEDs themselves.
  • Page 26: Test I2C2

    NXP LPC3180 Demo User’s Manual Figure 11: I2C1 Test After the test runs, the user may press the Enter key/OK button to return to the main menu. 9.5 Test I2C2 This test is exactly like the I2C1 test outlined in the previous section. However, devices are probed for at a different location, and devices should be found at different locations.
  • Page 27: Test Uart2 To Bluetooth

    NXP LPC3180 Demo User’s Manual Figure 13: Probe locations for SPI1 Test Figure 14: Probe locations for SPI2 Test After satisfactory results are obtained, the Enter key/Clear button may be pressed to advance to the SPI2 test. During this test, the oscilloscope probe should be moved to pins 1 and 2 on connector J16 (see Figure 14), and the same procedure should be used to issue the test.
  • Page 28: Exhaustive Memory Test

    NXP LPC3180 Demo User’s Manual Figure 15: Probe Connections for UART Test 9.8 Exhaustive Memory Test The memory test within the functional test code is very different from the quick memory check implemented in the SIBL POST code. This memory test will continually write a different pattern to each location in SDRAM and read back the pattern to make sure the write was successful.
  • Page 29 NXP LPC3180 Demo User’s Manual #if [ $? -eq 0 ] #then echo "Unloading vhw module..." modprobe -r vhw #echo "Loading loopback vhw module..." #insmod /nv/STloopback/vhw.ko NOTE: In some cases it was necessary to directly connect the digital and analog grounds to successfully hear the loopback.
  • Page 30: Technical Support

    For fastest response; • e-mail: support@teamfdi.com • fax: (256) 883-1241 • phone: (256) 883-1240. FDI also provides a Web site at: http://www.teamfdi.com. This web site provides the latest product information and updates for all FDI products. Rev 2 Page 30 9/7/2007...
  • Page 31: General Sales And Contact Information

    NXP LPC3180 Demo User’s Manual 11.0 General Sales and Contact Information 11.1 General Sales Authorized sales representatives for the LPC3180 Development Kit include: Worldwide contact: http://www.teamfdi.com (256) 883-1240 11.2 Contact Information The following is a list of company contact information related to the NXP LPC3180 Kit. NXP Semiconductors web site: http://www.nxp.com IAR Systems web site at http://www.iar.com Rev 2...
  • Page 32: Appendix A: Board Layout And Connectors

    NXP LPC3180 Demo User’s Manual 12.0 APPENDIX A: Board Layout and Connectors Connection Usage SDCard JTAG (LPC3180) 50 Ohm Antenna (Bluetooth) JTAG (Bluetooth) 50 Ohm Main Antenna (WLAN) 50 Ohm AUX Antenna (WLAN) 8 Ohm External Speaker Connection BGW211 UART Header Daughter Board Connector 1 GUI Keypad Connector GUI Display Connector...
  • Page 33: Appendix B: Schematic And Parts List

    NXP LPC3180 Demo User’s Manual 13.0 APPENDIX B: Schematic and Parts List Please refer to the Hardware documentation within the distribution for latest schematics and parts list for the LPC3180 Demo Board. Rev 2 Page 33 9/7/2007...
  • Page 34: Appendix C: Framebuffer Api

    NXP LPC3180 Demo User’s Manual 14.0 APPENDIX C: Framebuffer API 14.1 IOCTL Calls Applications in the userspace may manipulate the LCD controller using certain IOCTL commands provided by the framebuffer module. This section outlines these IOCTL calls, lists expected arguments, and provides an example of its use. 1.
  • Page 35 NXP LPC3180 Demo User’s Manual 4. FBIO_SCREENON a. Purpose: Turns on the screen if it is off. If the screen is already on, this command has no effect. b. Arguments: None c. Returns: 1 on failure, 0 on success d. Example: if (ioctl(fbfd, FBIO_SCREENON)) { printf("Error turning screen on.\n");...
  • Page 36 NXP LPC3180 Demo User’s Manual a. Purpose: If the screen is not inverted, this command places the screen in inverted mode. If the screen is inverted, this command places the screen in normal mode: b. Arguments: None c. Returns: 1 on failure, 0 on success d.
  • Page 37 NXP LPC3180 Demo User’s Manual 12. FBIO_CONTRASTMINUS a. Purpose: Decrements the screen’s contrast adjustment by 1. If the contrast adjustment is at its lowest possible value, this command has no effect. b. Arguments: None c. Returns: 1 on failure, 0 on success d.
  • Page 38: Appendix D: Gui Keypad Mapping

    NXP LPC3180 Demo User’s Manual 15.0 APPENDIX D: GUI Keypad Mapping Each button is assigned a column (Cx) and row (Ry) as shown below. Rev 2 Page 38 9/7/2007...
  • Page 39 NXP LPC3180 Demo User’s Manual Rev 2 Page 39 9/7/2007...

Table of Contents