Advertisement

Quick Links

- User's Guide
LPC3152 Developer's Kit
Copyright 2012 © Embedded Artists AB
LPC3152 Developer's Kit
User's Guide
Get Up-and-Running Quickly and
Start Developing Your Applications On Day 1!
EA2-USG-0902 Rev H

Advertisement

Table of Contents
loading
Need help?

Need help?

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

Questions and answers

Subscribe to Our Youtube Channel

Summary of Contents for Embedded Artists LPC3152

  • Page 1 - User’s Guide LPC3152 Developer’s Kit Copyright 2012 © Embedded Artists AB LPC3152 Developer’s Kit User’s Guide Get Up-and-Running Quickly and Start Developing Your Applications On Day 1! EA2-USG-0902 Rev H...
  • Page 2 Embedded Artists AB. Disclaimer Embedded Artists AB makes no representation or warranties with respect to the contents hereof and specifically disclaim any implied warranties or merchantability or fitness for any particular purpose. Information in this publication is subject to change without notice and does not represent a commitment on the part of Embedded Artists AB.
  • Page 3: Table Of Contents

    Schematic Page 4: Analog and Audio Interfaces Schematic Page 5: External Memories Schematic Page 6: Expansion Connector Usage of CPU Pins LPC3152 OEM Board Mechanical Dimensions and Connector Things to note about the LPC3152 OEM Board 3.8.1 NAND FLASH Bad Block 3.8.2 Brand of Memory Chips...
  • Page 4 LPC3152 Developers Kit - User’s Guide Page 4 5.3.2 Creating a Boot Image 5.3.3 Booting via UART 5.3.4 Booting via SPI NOR flash 5.3.5 Booting via USB DFU class 5.3.6 LED on GPIO2 5.3.7 Booting via NAND Flash 6 Further Information...
  • Page 5: Document Revision History

    LPC3152 Developers Kit - User’s Guide Page 5 1 Document Revision History Revision Date Description 2009-05-25 Original version 2009-09-09 Added ‘known issues’ section 4.2.2 and 4.2.3 (information about H_L_CC jumper and information about NAND boot and LCD/Ethernet problem). Added section 5.3.6.
  • Page 6: Introduction

    LPC3152 microcontroller. This document is a User’s Guide that describes the LPC3152 OEM Board and the LPC31xx Base Board hardware design. It is the User’s Manual for both the LPC3152 Developer’s Kit as well as for just the LPC3152 OEM Board.
  • Page 7: Esd And Handling Precaution

    ESD. Never touch directly on the LPC3152 OEM Board and in general as little as possible on the LPC31xx Base Board. The keys on the LPC31xx Base Board have grounded shields to minimize the effect of ESD.
  • Page 8: Ce Assessment

    LPC3152 Developers Kit. Due to the nature of the LPC3152 Developers Kit – an evaluation board not for integration into an end- product – fast transient immunity tests and conducted radio-frequency immunity tests have not been executed.
  • Page 9: Lpc3152 Oem Board Design

    Li-Ion battery charging functionality and USB OTG +5V generation. 3.1.1.1 Powering The input voltage to the LPC3152 OEM Board is given by the requirements of the LPC3152 internal power converters. There are multiple options how to power the LPC3152: ...
  • Page 10 The nominal charge current is set with a resistor between pin CHARGE_CC_REF and ground. The selected resistor on the LPC3152 OEM Board (R8, 1 kohm) gives a nominal charge current of 100 mA. A resistance value of 400 ohm gives a nominal charge current of 250 mA. This is the maximum current setting.
  • Page 11: Schematic Page 3: Lpc3152 Cpu

    3.2 Schematic Page 3: LPC3152 CPU Page 3 of the schematic contains the core part of the design, which of course is the LPC3152 microcontroller. It is an ARM926EJ-S cpu core with a lot of different peripheral units and on-chip memory (192 KByte SRAM).
  • Page 12: Schematic Page 4: Analog And Audio Interfaces

    It is the memory bus interface that is used in the LPC3152 OEM Board. The LCD interface cannot be used and shall not be enabled in the cpu.
  • Page 13: Schematic Page 6: Expansion Connector

    LPC3152 Developers Kit - User’s Guide Page 13 The LPC3152 OEM Board uses the external SDRAM bank 0 as well as NAND bank 0. It is mainly the two external SRAM banks that are available for the off-board external memory interface of the LPC3152 OEM Board.
  • Page 14: Usage Of Cpu Pins

    Page 14 3.6 Usage of CPU Pins Almost all pins of the LPC3152 are directly available on the expansion connectors. Only in a few cases pins are used for dedicated functionality like (dynamic) memory control signals, chip select signals and power supply.
  • Page 15 LPC3152 Developers Kit - User’s Guide Page 15 CLOCK_OUT EBI_D0-EBI_D15 Yes, but only available via the data bus buffer MLCD_A0/ALE Yes, but only available via the address bus buffer MLCD_A1/CLK MLCD_DB2/EBI_A2 MLCD_DB3/EBI_A3 MLCD_DB4/EBI_A4 MLCD_DB5/EBI_A5 MLCD_DB6/EBI_A6 MLCD_DB7/EBI_A7 MLCD_DB8/EBI_A8 MLCD_DB9/EBI_A9 MLCD_DB10/EBI_A10 MLCD_DB11/EBI_A11...
  • Page 16: Lpc3152 Oem Board Mechanical Dimensions And Connector

    RESET_IN The LPC31xx Base Board illustrates how to typically connect external interfaces (like USB, external memory devices, etc) to the LPC3152 OEM Board. Study this schematic for details. LPC3152 OEM Board Mechanical Dimensions and Connector Figure 1 below contains a drawing of the board that includes mechanical measures. See SODIMM-200 standard for exact measures.
  • Page 17: Brand Of Memory Chips

    NAND flash and SDRAM. The lifetime of memory chips is limited and availability can also be limited from time to time. Embedded Artists make every effort to mount the original design chip on the board. In case that is impossible a compatible chip will instead be mounted without any prior notice. There can be small programming differences between mounted brands.
  • Page 18: Lpc31Xx Base Board Design

    LPC3152 OEM Board, for example the I2S codec (since the LPC3152 has an internal codec). Note that the codec on the LPC31xx Base Board cannot be accessed by the LPC3152. The used I2C and I2S channels are not available on the LPC3152 chip.
  • Page 19 LPC3152 Developers Kit - User’s Guide Page 19 I2SRX_BCK0 No usage. I2STX_WS0 I2STX_CLK0 I2STX_DATA0 Can be used to control powering of MMC/SD memory card interface. I2STX_BCK0 Can be used to detect MMC/SD memory card presence. GPIO0 Can be connected to jumpers for controlling boot mode.
  • Page 20: Known Limitation Of Lpc31Xx Base Board

    LPC3152 Developers Kit - User’s Guide Page 20 EBI_DQM0/NOE Connect to QVGA display module connector and DM9000 EBI_NWE Ethernet interface. MLCD_CSB/EBI_NSTCS0 Connect to QVGA display module connector. MLCD_DB1/EBI_NSTCS1 Connect to DM9000 Ethernet interface. EBI_NCAS/BLOUT0 No usage. EBI_NRAS/BLOUT1 NAND_NCS1 No usage.
  • Page 21: H_L_Cc Jumper

    LPC3152 Developers Kit - User’s Guide Page 21 Component side Back side Cut/remove J13 Added 3K resistor pins between J13 pins Figure 2 – MMC/SD Card Detect Fix 4.2.2 H_L_CC Jumper When the H_L_CC jumper is inserted, it will pull signal GPIO1_BOOT1 low despite boot jumper settings.
  • Page 22: Jumpers

    The LPC31xx Base Board has a number of jumpers in order to be able to connect/disconnect and fully utilize all functionality of the LPC3152 and the LPC31xx Base Board. Figure 3 below illustrates all jumpers and explains to what part of the design they belong.
  • Page 23: Default Jumper Positions

    LPC3152 Developers Kit - User’s Guide Page 23 4.3.1 Default Jumper Positions Figure 4 below illustrates the default jumper positions as mounted when the board is delivered from Embedded Artists. Figure 4 – LPC31xx Base Board Default Jumper Positions 4.3.2 Illegal Jumper Combinations Note that some jumpers are mutual exclusive and should not be inserted simultaneously.
  • Page 24: Connectors

    LPC3152 Developers Kit - User’s Guide Page 24 Connectors Figure 5 below illustrate the position of all external connectors on the LPC31xx Base Board. Mic in Line in 1 Headphone MMC/SD RS232 DSUB Power in Line in 2/ XBee Line out...
  • Page 25: Important Components

    LPC3152 Developers Kit - User’s Guide Page 25 Important Components Figure 6 below illustrates the position on the LPC31xx Base Board for some important components in the design. Voltage measurement SD/MMC pads and Trimming Power potentiometer Power LED Accelerometer for analog...
  • Page 26: Nand Boot Problem Fix

    Board is formed by AND:ing N_STCS0 and N_STCS1. This, in turn, enables the databus buffer (U11 on LPC3152 OEM Board) when the DBUF_EN jumper (pin 1-2 on J40) is inserted on the LPC31xx Base Board. See Figure 8 to locate DBUF_EN jumper on the LPC31xx Base Board.
  • Page 27 For the XNOR gate the output is high when both inputs are low. This will also solve the problem, since the databus buffer (U11 on LPC3152 OEM Board) will not be enabled during NAND boot when both N_STCS0 and N_STCS1 are low.
  • Page 28: Getting Started

    The LPC31xx Base Board contains a USB-to-Serial bridge chip (FT232R from FTDI) that connects the UART channel on the LPC3152 to a virtual COM port on the PC (via USB). It is this serial channel that is the console interface to the system.
  • Page 29 LPC3152 Developers Kit - User’s Guide Page 29 Device Manager Figure 9 – System Settings Dialog Then select the Device Manager and open the Ports list, as illustrated in Figure 10 below. Ports Figure 10 – Device Manager Dialog Copyright 2012 © Embedded Artists AB...
  • Page 30 LPC3152 Developers Kit - User’s Guide Page 30 The new COM port (USB Serial Port) will be listed under the Ports list. Right-click on the new USB Serial Port and select Properties, as illustrated in Figure 11 below. USB Serial Port Properties Figure 11 –...
  • Page 31: Usb Driver Behavior

    0x1102 9000. The boot code can handle boot images up to 128 kByte in size on the LPC3152. For larger applications, the booting has to be done in more steps, i.e., a second stage boot loader has to be added.
  • Page 32: Jumper Settings

    The LPC3152 User’s Manual from NXP contains all details about booting including the pre-defined MMU table. The rest of this section gives an overview of what is supported by the LPC3152 OEM Board and LPC31xx Base Board, and how to quickly get started with the download process.
  • Page 33: Creating A Boot Image

    LPC3152 Developers Kit - User’s Guide Page 33 USB – DFU class The boot image is downloaded via the USB by utilizing the DFU class (Device Firmware Upgrade). A Windows application exists that connect to the DFU device (that the LPC3152 implement in boot mode).
  • Page 34 LPC3152 Developers Kit - User’s Guide Page 34 Figure 14 – lpc3131xImgCreator Command Line Options To add a CRC header to the binary file, i.e., to create a CRC attached boot image, the command is: lpc313xImgCreator -o ./ -pc -i lpc313x.bin The -o option specifies the output directory (the current directory in this case).
  • Page 35: Booting Via Uart

    When booting via UART, a terminal program (on a PC) that can send binary images must be connected to the LPC3152 UART channel. The USB-to-serial bridge can be used to connect to the LPC3152 UART channel. Alternatively the RS232 interface can be used directly. Make sure the jumpers on the LPC31xx Base Board are correctly set for the interface option selected.
  • Page 36: Booting Via Spi Nor Flash

    5.3.4 Booting via SPI NOR flash When booting via SPI the boot image is downloaded from the SPI NOR flash into LPC3152 internal RAM immediately after reset. Execution is also started immediately after download. No message is sent to the UART channel.
  • Page 37 2. Install DFU drivers (available on the Embedded Artists support site). 3. Start the DFU application (DFUAPP.exe). The connected LPC3152 can be seen in the list of devices. 4. Select a file to download (named *_usb.rom in the pre-compiled applications available on the Embedded Artists support site).
  • Page 38: Led On Gpio2

    LPC3152 Developers Kit - User’s Guide Page 38 5.3.6 LED on GPIO2 The boot code will signal any error during boot process by toggling GPIO2 pin. There is a LED connected to this pin for direct visual feedback. The picture below illustrates the position of the LED in relation to the boot jumpers.
  • Page 39: Further Information

    LPC3152 Developers Kit - User’s Guide Page 39 6 Further Information The LPC3152 microcontroller is a complex circuit and there are a number of other documents with more information. The following documents are recommended as a complement to this document. NXP LPC3152 Datasheet http://ics.nxp.com/products/lpc3000/datasheet/lpc3152.lpc3154.pdf...
  • Page 40 Mouser Electronics Authorized Distributor Click to View Pricing, Inventory, Delivery & Lifecycle Information: Embedded Artists EA-OEM-302...

Table of Contents