FDI LPC3180 User Manual

Summary of LPC3180

  • Page 1

    Lpc3180 development kit user’s manual for software and documentation please go to: www.Teamfdi.Com/lpc3180

  • Page 2

    Fdi nxp lpc3180 demo user’s manual fdi rev 2 page 2 10/1/2007 information in this document is provided solely to enable the use of future designs products. Fdi assumes no liability whatsoever, including infringement of any patent or copyright. Fdi reserves the right to make changes to these specific...

  • Page 3

    Fdi nxp lpc3180 demo user’s manual fdi rev 2 page 3 10/1/2007 table of contents 1.0 introduction....................................................................................................................................................... 4 2.0 guide to kit.....................................

  • Page 4

    Fdi nxp lpc3180 demo user’s manual fdi rev 2 page 4 10/1/2007 1.0 introduction the nxp lpc3180 demo board is a linux based reference design that shows the arm9-based microcontroller interfacing to an audio codec for voip, an 802.11b/g wireless network, bluetooth transceiver, and user interface board...

  • Page 5

    Fdi nxp lpc3180 demo user’s manual fdi rev 2 page 5 10/1/2007 note: the silkscreen markings on rev2 for jp4 are wrong. Please see the table below to see the correct configuration settings. Jumper positions description 1-2 allows boot from uart connection. Jp4 2-3 (default) allows boot from nand flas...

  • Page 6

    Fdi nxp lpc3180 demo user’s manual fdi rev 2 page 6 10/1/2007 3.0 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 f...

  • Page 7

    Fdi nxp lpc3180 demo user’s manual fdi rev 2 page 7 10/1/2007 4.0 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 distribut...

  • Page 8

    Fdi nxp lpc3180 demo user’s manual fdi rev 2 page 8 10/1/2007 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 bui...

  • Page 9

    Fdi nxp lpc3180 demo user’s manual fdi rev 2 page 9 10/1/2007 5.0 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...

  • Page 10

    Fdi nxp lpc3180 demo user’s manual fdi rev 2 page 10 10/1/2007 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 han...

  • Page 11

    Fdi nxp lpc3180 demo user’s manual fdi rev 2 page 11 10/1/2007 6.0 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. Fi...

  • Page 12

    Fdi nxp lpc3180 demo user’s manual fdi rev 2 page 12 10/1/2007 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 wi...

  • Page 13

    Fdi nxp lpc3180 demo user’s manual fdi rev 2 page 13 10/1/2007 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: r loadbin sibl_208mhz.Bin, 0 setpc 0 g ...

  • Page 14

    Fdi nxp lpc3180 demo user’s manual fdi rev 2 page 14 10/1/2007 6.2 writing sdram to nand flash after the following u-boot banner appears, press any key to get to the command prompt. Using default environment in: serial out: serial err: serial hit any key to stop autoboot: 2 after reaching the lpc318...

  • Page 15

    Fdi nxp lpc3180 demo user’s manual fdi rev 2 page 15 10/1/2007 7.0 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....

  • Page 16

    Fdi nxp lpc3180 demo user’s manual fdi rev 2 page 16 10/1/2007 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 mod...

  • Page 17

    Fdi nxp lpc3180 demo user’s manual fdi rev 2 page 17 10/1/2007 8.0 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 ext...

  • Page 18

    Fdi nxp lpc3180 demo user’s manual fdi rev 2 page 18 10/1/2007 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...

  • Page 19

    Fdi nxp lpc3180 demo user’s manual fdi rev 2 page 19 10/1/2007 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 co...

  • Page 20

    Fdi nxp lpc3180 demo user’s manual fdi rev 2 page 20 10/1/2007 9.0 functional tests a group of functional tests are bundled with sibl for verification and debugging purposes on the lpc3180 board. This section describes these functional tests and shows how they are useful in trouble-shooting the boar...

  • Page 21

    Fdi nxp lpc3180 demo user’s manual fdi rev 2 page 21 10/1/2007 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...

  • Page 22

    Fdi nxp lpc3180 demo user’s manual fdi rev 2 page 22 10/1/2007 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, ...

  • Page 23

    Fdi nxp lpc3180 demo user’s manual fdi rev 2 page 23 10/1/2007 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 sh...

  • Page 24

    Fdi nxp lpc3180 demo user’s manual fdi rev 2 page 24 10/1/2007 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 s...

  • Page 25

    Fdi nxp lpc3180 demo user’s manual fdi rev 2 page 25 10/1/2007 10.0 technical support nxp semiconductors provides technical support for the lpc3180 and other nxp devices utilized on this board. Please contact your local nxp sales office or field applications engineer. Iar systems provides technical ...

  • Page 26

    Fdi nxp lpc3180 demo user’s manual fdi rev 2 page 26 10/1/2007 12.0 appendix a: board layout and connectors connection usage j1 sdcard j2 jtag (lpc3180) j3 50 ohm antenna (bluetooth) j4 jtag (bluetooth) j5 50 ohm main antenna (wlan) j6 50 ohm aux antenna (wlan) j7 8 ohm external speaker connection j...

  • Page 27

    Fdi nxp lpc3180 demo user’s manual fdi rev 2 page 27 10/1/2007 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 ...

  • Page 28

    Fdi nxp lpc3180 demo user’s manual fdi rev 2 page 28 10/1/2007 d. Example: if (ioctl(fbfd, fbio_screenoff)) { printf("error turning screen off."); 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

    Fdi nxp lpc3180 demo user’s manual fdi rev 2 page 29 10/1/2007 if (ioctl(fbfd, fbio_sleepoff)) { printf("error turning sleep off."); 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 p...

  • Page 30

    Fdi nxp lpc3180 demo user’s manual fdi rev 2 page 30 10/1/2007 if (ioctl(fbfd, fbio_contrastplus)) { printf("error increasing screen contrast."); exit(1); } 12. Fbio_contrastminus a. Purpose: decrements the screen’s contrast adjustment by 1. If the contrast adjustment is at its lowest possible val...

  • Page 31

    Fdi nxp lpc3180 demo user’s manual fdi rev 2 page 31 10/1/2007 15.0 appendix d: gui keypad mapping each button is assigned a column (cx) and row (ry) as shown below..

  • Page 32

    Fdi nxp lpc3180 demo user’s manual fdi rev 2 page 32 10/1/2007.

  • Page 34: Mouser Electronics

    Mouser electronics authorized distributor click to view pricing, inventory, delivery & lifecycle information: future designs, inc. (fdi) : lpc3180-dev-kit.