Embedded Artists LPC3250 User Manual

Developer’s kit
Hide thumbs Also See for LPC3250:

Advertisement

Quick Links

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

Advertisement

Table of Contents
loading

Summary of Contents for Embedded Artists LPC3250

  • Page 1 - User‟s Guide LPC3250 Developer’s Kit Copyright 2011 © Embedded Artists AB LPC3250 Developer’s Kit User’s Guide Get Up-and-Running Quickly and Start Developing Your Applications On Day 1! EA2-USG-0902 Rev C...
  • 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

    3.1.6 Schematic Page 7: USB Interface 3.1.7 Schematic Page 8: Expansion Connector Usage of CPU Pins LPC3250 OEM Board Mechanical Dimensions and Connector 15 Things to note about the LPC3250 OEM Board 3.4.1 LPC3250 Adjustable Core Voltage 3.4.2 NAND FLASH Bad Block 3.4.3...
  • Page 4 LPC3250 Developer’s Kit - User’s Guide Page 4 5.3.1 Compile Using CodeSourcery Compile Using Keil’s uVision 5.3.2 Booting 5.4.1 Kickstart Loader 5.4.2 Stage 1 Loader 5.4.3 Service Boot 6 Further Information Copyright 2011 © Embedded Artists AB...
  • Page 5: Document Revision History

    LPC3250 Developer’s Kit - User’s Guide Page 5 1 Document Revision History Revision Date Description 2009-10-05 First official revision of document 2010-10-18 Added section (4.6) about USB device interface. Updated rework instruction in section (4.6) for USB device interface and R100.
  • Page 6: Introduction

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

    ESD damages. Never touch directly on the LPC3250 OEM Board and in general as little as possible on the QVGA Base Board. The push-buttons on the QVGA Base Board have grounded shields to minimize the effect of ESD.
  • Page 8: Lpc3250 Core Voltage Precaution

    2.3 LPC3250 Core Voltage Precaution The core voltage for the LPC3250 can be dynamically changed, via I2C commands sent to the LTC3447 voltage converter. The voltage can be set to up to 2V. Note that this is above the limits of the core voltage.
  • Page 9: Lpc3250 Oem Board Design

    NXP. An internal PLL can create many other frequencies from this, like 208 MHz and 266 MHz. The LPC3250 has an internal real-time clock (RTC) block that can be used to provide real-time and alarm function. A 32.768 kHz crystal gives the base frequency for the RTC. The RTC block can be powered via a separate supply (for example from a battery or high-capacity capacitor).
  • Page 10: Schematic Page 3: Powering

    The LTC3447 can generate voltages up to 2V, which by far exceed the limits for the LPC3250. See the LPC3250 datasheet for exact details about voltage ranges, but it is in the region of 1.1-1.39V. Also see the LTC3447 datasheet for details about how to adjust the voltage (it is a write-only register).
  • Page 11: Schematic Page 5: Digital And Analog Io

    16-bit databus width and 16MByte in size. By default (R44 = 0 ohm, R43 not mounted), signal N_ABUF_EN is pulled low and the two buffers for address and control signals (U13 and U14) are enabled and act as output (from the LPC3250 OEM Board).
  • Page 12: Schematic Page 8: Expansion Connector

    3.2 Usage of CPU Pins Almost all pins of the LPC3250 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 13 LPC3250 Developer’s Kit - User’s Guide Page 13 SPI2_DATIO / MOSI1 / LCDVD[20] SYSCLKEN / LCDVD[15] TST_CLK2 U1_RX / CAP1.0 / GPI_15 U1_TX U2_HCTS / U3_CTS / GPI_16 U2_RX / U3_DSR / GPI_17 U2_TX / U3_DTR U3_RX / GPI_18 U3_TX...
  • Page 14 LPC3250 Developer’s Kit - User’s Guide Page 14 EMC_D22/P2.3 EMC databus. EMC_D23/P2.4  P2.10 controls LED3 EMC_D24/P2.5 EMC_D25/P2.6  P2.11 controls LED4 EMC_D26/P2.7  P2.12 controls LED5 EMC_D27/P2.8 EMC_D28/P2.9 EMC_D29/P2.10 EMC_D30/P2.11 EMC_D31/P2.12 USB_ATX_INT_N No, connected to on-board USB transceiver, USB_DAT_VP / U5_RX...
  • Page 15: Lpc3250 Oem Board Mechanical Dimensions And Connector

    No, internal on-board connection to signal. The QVGA Base Board illustrates how to typically connect external interfaces (like USB, external memory devices, etc) to the LPC3250 OEM Board. Study this schematic (also found in this document) for details. 3.3 LPC3250 OEM Board Mechanical Dimensions and Connector Figure 1 below contains a drawing of the board that includes mechanical measures.
  • Page 16: Things To Note About The Lpc3250 Oem Board

    NAND flash and mobile DDR 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.
  • Page 17: Lpc3250 Peripherals

    The support page contains datasheets to the different memory devices and information about mounted devices on different board versions. 3.4.4 LPC3250 Peripherals The key scan interface peripheral cannot be used with the LPC3250 OEM Board because the Ethernet interface is active. Copyright 2010 © Embedded Artists AB...
  • Page 18: Qvga Base Board Design

    QVGA Base Board is presented below. 4.1 QVGA Base Board Schematics The QVGA Base Board contains a number of interfaces and connectors to the LPC3250 OEM Board. The design can be viewed as a reference schematic for custom designs around the LPC3250 OEM Board.
  • Page 19 LPC3250 Developer’s Kit - User’s Guide Page 19 JTAG connector JTAG_TDI JTAG_TDI Connected to standard 20 pos (2x10 pin) JTAG connector JTAG_TDO JTAG_TDO Connected to standard 20 pos (2x10 pin) JTAG connector VDDA Positive reference for trimming potentiometer VREF NC (can be VCCA)
  • Page 20 LPC3250 Developer’s Kit - User’s Guide Page 20 KEYROW1) not used USBB-DM USB_CONN_DN Connects to USB host interface USB Host interface is connected to the LPC3250 P2.12 GPO_06 LCD databit 18 P2.13 PWMOUT2 LCD databit 19 P0.0 U6_IRTX Can be connected to RD1 for CAN channel...
  • Page 21 LPC3250 Developer’s Kit - User’s Guide Page 21 P0.23 AIN0 Can be connected to accelerometer, X-axis P0.24 AIN1 Can be connected to accelerometer, Y-axis P0.25 AIN2 Can be connected to accelerometer, Z-axis, or analog input (trimpot) P0.26 GPO_00 Connects to speaker output on AOUT signal P0.27-SDA0...
  • Page 22 LPC3250 Developer’s Kit - User’s Guide Page 22 I2S1TX_CLK I2S1TX_SDA I2S1TX_WS P0.0 P0.1 GPI_00 I2C2_SDA I2C2_SCL GPI_04 GPI_06 USB_CONN_ID POWER_ON TST_CLK2 P2.14 P2.7 Can connect as enable signal for IrDA transceiver (active low) P2.15 GPIO_00 Can connect to interrupt signal from touch screen controller P2.19...
  • Page 23 LPC3250 Developer’s Kit - User’s Guide Page 23 BA11 BA11 No special usage on QVGA Base Board BBLS1 BBLS1 No special usage on QVGA Base Board BA10 BA10 No special usage on QVGA Base Board BBLS0 BBLS0 No special usage on QVGA Base Board...
  • Page 24 LPC3250 Developer’s Kit - User’s Guide Page 24 BD27/P3.27 P2.8 No special usage on QVGA Base Board BD10 BD10 Occupied by 16-bit databus. No special usage on QVGA Base Board BD26/P3.26 P2.9 No special usage on QVGA Base Board Occupied by 16-bit databus. No special usage on QVGA Base Board BD25/P3.25...
  • Page 25: Jumpers

    The QVGA Base Board has a number of jumpers in order to be able to connect/disconnect and fully utilize all functionality of the LPC3250 and the boards. Figure 2 illustrates all jumpers and explains to what part of the design they belong.
  • Page 26: Default Jumper Positions

    Note that the “Enable JTAG” jumper shall NOT be inserted. The enable state is different for the LPC3250 than on the LPC2478 (which the QVGA Base Board was originally designed for). Figure 3 – QVGA Base Board Default Jumper Positions 4.3.2...
  • Page 27: Connectors

    Mictor-38 ETM Connector The ETM connector is not mounted on the board. It‟s designated J6. The connector can be soldered to the board if needed but it cannot be used with the LPC3250. It is only for the LPC24xx processor family.
  • Page 28: Important Components

    LPC3250 Developer’s Kit - User’s Guide Page 28 4.5 Important Components The figure below illustrates the position on the QVGA Base Board for some important components in the design. IrDA Accelerometer transceiver SD/MMC LEDs USB-to-serial Trimpot for activity LEDs analog input...
  • Page 29: Usb Interface

    Page 29 4.6 USB Interface The OTG USB interface of the LPC3250 is connected to the USB Host interface on the QVGA Base Board. Note that the LPC3250 USB interface can only be accessed via the USB Host interface connector, J28, on the QVGA Base Board. Connector J26 (USB OTG/Device) on the QVGA Base Board is not connected at all.
  • Page 30 LPC3250 Developer’s Kit - User’s Guide Page 30 Change R100 value by connecting a 1K resistor between the VBUS pin of the USB Host connector (J28) and the pin list, as illustrated. Figure 7 – QVGA Base Board USB Device Fix of R100...
  • Page 31: Getting Started

    The QVGA Base Board contains a USB-to-Serial bridge chip (FT232R from FTDI) that connects the UART channel #5 on the LPC3250 to a virtual COM port on the PC (via USB). It is this serial channel that is the console interface to the system.
  • Page 32 LPC3250 Developer’s Kit - User’s Guide Page 32 To change the UART settings, first open the System Properties dialog, as illustrated in the figure below. Device Manager Figure 9 – System Settings Dialog Then select the Device Manager and open the Ports list, as illustrated in Figure 10.
  • Page 33 LPC3250 Developer’s Kit - User’s Guide Page 33 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 34: Usb Driver Behavior

    A bundle with sample applications is available at Embedded Artists‟ support site. These applications illustrate the use of different peripherals on both the LPC3250 OEM Board and the QVGA Base Board. The sample applications have been developed using the Common Driver Library (CDL) framework developed by NXP.
  • Page 35: Compile Using Codesourcery

    This section describes how you compile an application using the CodeSourcery GNU tools. Please note that there is no guarantee that all applications provided by Embedded Artists will be able to compile using CodeSourcery GNU since the main tool is Keil‟s uVision.
  • Page 36: Compile Using Keil's Uvision

    By default the Embedded Artists LPC3250 OEM Board is programmed with the stage 1 loader (s1l) in block 1 of the NAND flash. This application will be loaded by the kickstart loader when the LPC3250 OEM Board powers up, see figure below.
  • Page 37 LPC3250 Developer’s Kit - User’s Guide Page 37 Figure 15 – S1L loader up and running The S1L loader will initialize the board, such as clocks and external memory and then start a console where you can give input commands to the loader. S1L offers the following booting options.
  • Page 38 The application is downloaded directly to the internal memory through, for example, a JTAG adapter. When an application should be stored persistently on the LPC3250 OEM Board the NAND flash is a suitable place to store it since the LPC3250 microcontroller doesn‟t have any on-chip flash. It can also be suitable to run the application from external memory especially if it is too large to fit into internal memory.
  • Page 39 LPC3250 Developer’s Kit - User’s Guide Page 39 Figure 16 – Asm settings in Keil uVision 3. Change linker script so that the application runs from external memory instead of internal memory. Go to Project  Options  Linker. Click Edit button to the right on the Scatter File.
  • Page 40 LPC3250 Developer’s Kit - User’s Guide Page 40 Figure 17 – Linker settings in Keil uVision Copyright 2011 © Embedded Artists AB...
  • Page 41 LPC3250 Developer’s Kit - User’s Guide Page 41 Figure 18 – Scatter file for the sample applications 4. Create a binary file to be stored in NAND flash. This can be done by using the fromelf.exe utility. Go to Project  Options  User. Add the command below to the “Run User Programs After Build/Rebuild”...
  • Page 42: Service Boot

    There are four jumpers on the QVGA Base Board related to the USB serial channel, connected to UART #5 on the LPC3250. See Figure 19 for details about where the jumpers are located. Make sure the 'Service Boot' jumpers are open.
  • Page 43 The application is available in the directory. software/cspc/lpc2xx/tools/LPC3250 loader 1. Start the LPC3250 loader application, see Figure 20. 2. Click the ”Browse” button in the Executables - Primary Boot section and select the binary file you would like to transfer to the board.
  • Page 44 LPC3250 Developer’s Kit - User’s Guide Page 44 Figure 20 – LPC3250 loader application Copyright 2011 © Embedded Artists AB...
  • Page 45: Further Information

    LPC3250 Developer’s Kit - User’s Guide Page 45 6 Further Information The LPC3250 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 LPC3250 Datasheet http://ics.nxp.com/products/lpc3000/datasheet/lpc3220.lpc3230.lpc3240.lpc3250.pdf...

Table of Contents