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
NXP LPC3180 Demo User’s Manual Table of Contents Introduction............................... 4 Guide to Kit............................... 4 Kit Contents..............................4 Software and Documentation........................4 Power Requirements ............................ 4 Jumpers................................ 4 JTAG Connectors ............................5 Serial Connection............................5 GUI Board ..............................5 Hardware Setup..............................6 Software Installation ............................
2.3 Power Requirements The LPC3180 Demo Board is powered by a wall mounted UL and FCC listed power supply designed for 110VAC outlets. It provides 5V DC at 2.5 Amp. The power connector is a 2.1mm plug with center positive polarity.
Table 2: JTAG Connections 2.6 Serial Connection A serial connection may be made to the LPC3180 board from a host PC by connecting a serial cable from an open COM port on the host PC to connector P1 on the LPC3180 board.
2. OPTIONAL: Connect GUI board to LPC3180 board by lining up connectors J12 and J13 of the LPC3180 board with connectors J1 and J2 of the GUI board, respectively. Push the boards together until a complete connection is made (see Figure 1).
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. Click “Next” to advance to the...
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. This requires setting up a proper environment for cross-compiling ARM binaries. Please see www.gnuarm.com for details on how to set up such a system.
Page 9
Linux on the LPC3180. The boot process of the LPC3180 project is broken up into the following general steps: 1. On power-up, the LPC3180 begins booting by reading block 0 from the NAND flash.
NXP LPC3180 Demo User’s Manual 5.2 U-Boot U-Boot is another boot loader which is mainly responsible for loading the Linux Kernel. It also provides a number of useful utilities. For example, the auto-boot process can be aborted and a command line system accessed to handle flashing of the NAND, memory testing, and other basic low level features (read/write individual bytes).
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. Next, these images in SDRAM are programmed into NAND flash using a utility within U-Boot.
Page 12
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). J2 is located between GUI board connectors J12 and J13 on the right-hand side of the LPC3180 board.
Page 13
NXP LPC3180 Demo User’s Manual Images may be downloaded to the LPC3180 Board’s SDRAM by double-clicking on the “NXP Demo Setup” shortcut file or by entering the following commands manually into the JLink Commander prompt window: loadbin SIBL_208Mhz.bin, 0 setpc 0 speed 4000 // Switch the Thumb ->...
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.
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).
Linux Features 8.1 USB Block Device To connect a USB block device such as a USB Flash Drive to the LPC3180 board, simply insert it into connector P2 on the lower-right of the board. As of Rev2, the board now provides USB power to external devices. The following command should be issued to force USB into host mode: echo host >...
To facilitate driver setup and configuration, a startup script called “startWIFI.sh” is created and placed within the /nv directory on the LPC3180 board. By default, each script is setup to statically assign the IP and MAC addresses of the board according to the serial number on the board.
Page 19
This file contains defines and functional prototypes for all capabilities of the SSD1783U2 controller. LPC3180_GPIO.h ${LINUX}/include/linux This file contains defines for working with the LPC3180 GPIO pins. Makefile ${LINUX}/drivers/video This file has been modified to include framebuffer support directly into the linux kernel.
Also, if using the GUI board, the up and down keys on either side of the ‘OK’ button may be used to scroll through the tests. Pressing the Esc key/End button will exit functional test mode and boot the LPC3180 board into Linux as normal.
User’s Manual 9.3 Test LEDs This test verifies functional GPIO pins from the LPC3180 as well as proper operation from the LEDs themselves. After selecting the test, the user may repeatedly press the space key/OK button to light up LED 1, LED 2, or LED 3. The LEDs should follow the pattern 1, 2, 3, and then repeat.
NXP LPC3180 Demo User’s Manual 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.
To exit the test and return to the main menu, the Enter key/Clear button may be pressed. 9.7 Test UART2 to Bluetooth This test verifies the connection of UART2 from the LPC3180 to the Bluetooth device. After selecting the test from the main menu, the Space key/OK button may be used to send the ‘U’...
NXP LPC3180 Demo User’s Manual 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.
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 25...
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. 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.
Page 28
NXP LPC3180 Demo User’s Manual d. Example: if (ioctl(fbfd, FBIO_SCREENOFF)) { printf("Error turning screen off.\n"); exit(1); 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.
Page 29
NXP LPC3180 Demo User’s Manual if (ioctl(fbfd, FBIO_SLEEPOFF)) { printf("Error turning sleep off.\n"); exit(1); 8. FBIO_TOGGLEINVERT 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.
Page 30
NXP LPC3180 Demo User’s Manual if (ioctl(fbfd, FBIO_CONTRASTPLUS)) { printf("Error increasing screen contrast.\n"); exit(1); 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.
Need help?
Do you have a question about the LPC3180 and is the answer not in the manual?
Questions and answers