LPC3250 Developer’s Kit - User’s Guide 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-0903 Rev D
LPC3250 Developer’s Kit - User’s Guide Page 2 Embedded Artists AB Davidshallsgatan 16 SE-211 45 Malmö Sweden info@EmbeddedArtists.com http://www.EmbeddedArtists.com Copyright 2011 © Embedded Artists AB. All rights reserved.
LPC3250 Developer’s Kit - User’s Guide Page 3 Table of Contents 1 Document Revision History 5 2 Introduction 6 2.1 Features 6 2.2 ESD and Handling Precaution 7 2.3 LPC3250 Core Voltage Precaution 8 2.4 CE Assessment 8 2.5 Other Products from Embedded Artists 8 2.5.1 Design and Production Services 8 2.5.2 OEM / Education / QuickStart Boards and Kits 8 3 LPC3250 OEM Board Design 9 3.1 9 LPC3250 OEM Board Schematics 3.1.1 Schematic Page 2: Misc 3.1.
LPC3250 Developer’s Kit - User’s Guide Page 4 5.3 Building Sample Applications 34 5.3.1 Compile Using CodeSourcery 35 5.3.2 Compile Using Keil’s uVision 36 5.4 Booting 5.4.1 Kickstart Loader 36 5.4.2 Stage 1 Loader 36 5.4.
LPC3250 Developer’s Kit - User’s Guide Page 5 1 Document Revision History Revision Date Description A 2009-10-05 First official revision of document B 2010-10-18 Added section (4.6) about USB device interface. Updated rework instruction in section (4.6) for USB device interface and R100. Corrected section 5.4.3 about service boot jumpers. Updated to rev 1.3 of OEM board schematic. C 2011-10-26 Updated section 5.4.
LPC3250 Developer’s Kit - User’s Guide Page 6 2 Introduction Thank you for buying Embedded Artists’ LPC3250 Developer’s Kit based on NXP’s ARM926EJ-S 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. 2.
LPC3250 Developer’s Kit - User’s Guide JTAG connector Pads for ETM connector (cannot be used with the LPC3250 OEM Board) Interfaces USB OTG interface & connector USB host interface & connector Full modem RS232 on UART #1 (cannot be used on 32-bit databus cpu boards, but RxD2/TxD2 can alternatively be connected to the RS232 interface) Dual CAN interface & connector (cannot be used with the LPC3250 OEM Board) IrDA transceiver interface Power Page 7 Power supply, eithe
LPC3250 Developer’s Kit - User’s Guide Page 8 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. Read the LPC3250 datasheet for details (the absolute maximum core voltage allowed is 1.39V). Note that Embedded Artists do not replace LPC3250 OEM boards where the core voltage (VDD(CORE)) has been raised above 1.
LPC3250 Developer’s Kit - User’s Guide Page 9 3 LPC3250 OEM Board Design Please read the LPC3250 OEM Board datasheet and associated schematic for information about the board. Some additional information about the LPC3250 OEM Board is presented below. 3.1 LPC3250 OEM Board Schematics 3.1.1 Schematic Page 2: Misc 3.1.1.1 Crystals The microprocessor crystal frequency is 13.0000 MHz, which is the recommended frequency from NXP.
LPC3250 Developer’s Kit - User’s Guide Page 10 3.1.1.6 I2C E2PROM There is a 256 kbit E2PROM accessible via the I2C interface (I2C1). The LPC3250 has two on-chip I2C communication channels (I2C1 and I2C2). More peripheral units are easily connected to the two-wire I2C bus, just as long as the addresses do not collide. The address of the 256kbit E2PROM is 0xA0, which is also indicated in the schematic. There are 2.
LPC3250 Developer’s Kit - User’s Guide Page 11 3.1.3.1 DDR SDRAM A 512 MBit (64 MByte) Mobile DDR SDRAM is used (MT46H32M16LF from Micron). The chip is powered by 1.8V and is organized as 32Mbit x16, i.e. it has 16-bit databus width. The chip is connected to EMC_DYCS0_N (memory bank #0 for dynamic RAM) at address range 0x8000 0000 – 0x9FFF FFFF. Note that memory bank #1 for dynamic RAM is not available (i.e., signal EMC_DYCS1_N is not used). 3.1.3.
LPC3250 Developer’s Kit - User’s Guide 3.1.7 Page 12 Schematic Page 8: Expansion Connector The LPC3250 OEM Board integrates the core part of a typical LPC3250 board design with a reasonable large amount of external memories. All relevant signals of LPC3250 are available on the 200 pos, 0.6mm pitch expansion connector (SODIMM-200 format). See the next section for a detailed list of available pins. 3.2 Usage of CPU Pins Almost all pins of the LPC3250 are directly available on the expansion connectors.
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 U5_RX / GPI_20 U5_TX U6_IRRX / GPI_21 U6_IRTX U7_HCTS / CAP0.1 / LCDCLKIN / GPI_22 U7_RX / CAP0.0 / LCDVD[10] / GPI_23 U7_TX / MAT1.1 / LCDVD[11] GPI_00 / I2S1RX_SDA GPI_01 / SERVICE_N GPI_02 / CAP2.
LPC3250 Developer’s Kit - User’s Guide Page 14 EMC_D22/P2.3 EMC_D23/P2.4 EMC_D24/P2.5 EMC_D25/P2.6 EMC_D26/P2.7 EMC_D27/P2.8 EMC_D28/P2.9 EMC_D29/P2.10 EMC_D30/P2.11 EMC_D31/P2.12 EMC databus.
LPC3250 Developer’s Kit - User’s Guide Page 15 EMC_BLS2 EMC_BLS3 EMC_CKE1 EMC_CLKIN EMC_DQM2 EMC_DQM3 EMC_DYCS1_N No. These signals are not used and not available. KEY_COL0 / ENET_TX_CLK KEY_ROW0 / ENET_TX_ER KEY_ROW1 / ENET_TXD2 KEY_ROW2 / ENET_TXD3 No. These signals are not used and not available.
LPC3250 Developer’s Kit - User’s Guide Page 16 66 mm 48 mm 1.8V keying of SODIMM board Figure 1 – LPC3152 OEM Board Mechanical Dimensions The SODIMM-200 format is a standard and there are many connectors that are suitable from many different manufactures. The many sources also keep the connector cost very low. Note that the connector should be 1.8V keyed. One suitable connector is 0-1473005-4 from Tyco/AMP. Basically any SODIMM, DDR2, 200pos, 1.8V, right-angled connector will do. 3.
LPC3250 Developer’s Kit - User’s Guide Page 17 program shall always read the chip id of flash devices to make certain which chip is actually mounted on the board. 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.
LPC3250 Developer’s Kit - User’s Guide Page 18 4 QVGA Base Board Design Please read the QVGA Base Board schematic for information about the board. Some additional information about the 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. 4.
LPC3250 Developer’s Kit - User’s Guide Page 19 JTAG connector 19 JTAG_TDI JTAG_TDI Connected to standard 20 pos (2x10 pin) JTAG connector 20 JTAG_TDO JTAG_TDO Connected to standard 20 pos (2x10 pin) JTAG connector 21 V3A VDDA Positive reference for trimming potentiometer 22 VREF NC (can be VCCA) Can be connected VDDA(V3A) 23 VSSA VSSA Negative reference for trimming potentiometer 24 GND GND GND 25 P2.0 GPO_10 LCDPWR signal, power enable for QVGA display.
LPC3250 Developer’s Kit - User’s Guide Page 20 KEYROW1) i/f not used 44 USBB-DM USB_CONN_DN Connects to USB host interface 45 P2.12 GPO_06 LCD databit 18 46 P2.13 PWMOUT2 LCD databit 19 47 P0.0 U6_IRTX Can be connected to RD1 for CAN channel #1, can also connect to IrDA transceiver USB Host interface is connected to the LPC3250 CAN interface cannot be used by the LPC3250. IrDA can be used 48 P0.
LPC3250 Developer’s Kit - User’s Guide Page 21 70 P0.23 AIN0 Can be connected to accelerometer, X-axis 71 P0.24 AIN1 Can be connected to accelerometer, Y-axis 72 P0.25 AIN2 Can be connected to accelerometer, Z-axis, or analog input (trimpot) 73 P0.26 GPO_00 Connects to speaker output on AOUT signal 74 P0.27-SDA0 I2C1_SDA I2C-SDA0, connects to PCA9532 (IO expander) 75 P0.28-SCL0 I2C1_SCL I2C-SCL0, connects to PCA9532 (IO expander) 76 GND GND 77 GND GND 78 P1.
LPC3250 Developer’s Kit - User’s Guide Page 22 101 GND GND 102 GND GND 103 NC I2S1TX_CLK 104 NC I2S1TX_SDA 105 NC I2S1TX_WS 106 NC P0.0 107 NC P0.1 108 NC GPI_00 109 NC I2C2_SDA 110 NC I2C2_SCL 111 NC GPI_04 112 NC GPI_06 113 NC USB_CONN_ID 114 NC POWER_ON 115 NC TST_CLK2 116 P2.14 P2.7 Can connect as enable signal for IrDA transceiver (active low) 117 P2.15 GPIO_00 Can connect to interrupt signal from touch screen controller 118 P2.
LPC3250 Developer’s Kit - User’s Guide Page 23 139 BA11 BA11 No special usage on QVGA Base Board 140 BBLS1 BBLS1 No special usage on QVGA Base Board 141 BA10 BA10 No special usage on QVGA Base Board 142 BBLS0 BBLS0 No special usage on QVGA Base Board 143 BA9 BA9 No special usage on QVGA Base Board 144 BWE BWE No special usage on QVGA Base Board 145 BA8 BA8 No special usage on QVGA Base Board 146 BOE BOE No special usage on QVGA Base Board 147 BA7 BA7 No special usage on
LPC3250 Developer’s Kit - User’s Guide Page 24 176 BD27/P3.27 P2.8 No special usage on QVGA Base Board 177 BD10 BD10 Occupied by 16-bit databus. No special usage on QVGA Base Board 178 BD26/P3.26 P2.9 No special usage on QVGA Base Board 179 BD9 BD9 Occupied by 16-bit databus. No special usage on QVGA Base Board 180 BD25/P3.25 P2.10 No special usage on QVGA Base Board 181 BD8 BD8 Occupied by 16-bit databus. No special usage on QVGA Base Board 182 BD24/P3.24 P2.
LPC3250 Developer’s Kit - User’s Guide Page 25 4.3 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. USB device connect J37 Top pos: always enable Lower pos: enable via P0.
LPC3250 Developer’s Kit - User’s Guide 4.3.1 Page 26 Default Jumper Positions The figure below illustrates the default jumper positions as mounted when the board is delivered from Embedded Artists. 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.
LPC3250 Developer’s Kit - User’s Guide Page 27 4.4 Connectors The figure below illustrates the position of all external connectors on the QVGA Base Board.
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.
LPC3250 Developer’s Kit - User’s Guide 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. When the LPC3250 USB interface is used as a USB Host interface the QVGA Base Board connector (J28) is the correct one.
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.
LPC3250 Developer’s Kit - User’s Guide Page 31 5 Getting Started This chapter contains information about how to get acquainted with the LPC3250 Developer’s Kit. Please read this section first before you start using the board - it will be worthwhile! 5.1 Initial Setup and Powering The board can be powered from a PC via the included USB cable (mini-B to A cable).
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.
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 – Device Manager Port Dialog Select 115200 bits per second, 8 data bits, none parity, 1 stop bit, and none flow control, as illustrated in Figure 12 below. Then select Advanced settings.
LPC3250 Developer’s Kit - User’s Guide Page 34 Select the desired COM port number under the Advanced settings dialog. NXP’s FLASH Utility program (for ISP program download) needs, for example, a COM port number between 1 and 5. Often the COM port number is selected but the USB Serial Port is higher than that and needs to be changed manually. It is common that all COM ports with low numbers are listed as occupied, but try to change to a low number anyway. Very often it is no problem at all to do so.
LPC3250 Developer’s Kit - User’s Guide Page 35 Figure 14 – Common Driver Library Structure 5.3.1 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. 1. Download the CodeSourcey Tools from www.codesourcery.com.
LPC3250 Developer’s Kit - User’s Guide Page 36 8. A .bin file as well as a .srec file will be generated that can be used for booting. 5.3.2 Compile Using Keil’s uVision This section describes how you can compile an application using Keil’s uVision. 1. You must have Keil’s uVision installed on your computer. An evaluation version can be downloaded from www.keil.com. 2. Download the sample applications from Embedded Artists support site and unzip the file. 3.
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. - MMC/SD card - UART5 - NAND Flash Load application from MMC/SD card First make sure you have stored the srec file on the FAT formatted MMC/SD card. Please note that the S1L loader doesn’t support long file names. 1.
LPC3250 Developer’s Kit - User’s Guide Page 38 1. Start the download process. ea3250> load term srec 2. Start to transfer the srec file using your terminal application 3. When the application has been transferred, the prompt will return and you can execute the application ea3250> exec More commands are available in the S1L loader and you can use the help command to find out more about how to use them.
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. The scatter file will now be opened. Please note that this file is common for all sample applications. If only one application should be changed copy this file to the local project instead of changing the common file.
LPC3250 Developer’s Kit - User’s Guide Figure 17 – Linker settings in Keil uVision Copyright 2011 © Embedded Artists AB Page 40
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” fromelf.exe --output "$P\app.
LPC3250 Developer’s Kit - User’s Guide Page 42 5. Put the binary file (app.bin) on a memory card. 6. Boot into the S1L boot loader and load the application from the memory card, save it to NAND flash and set S1L to automatically load the application at boot. ea3250> ea3250> ea3250> ea3250> 5.4.3 load blk app.bin raw 0x80000000 nsave aboot flash raw 0x80000000 prompt ea3250> 2 Service Boot The LPC3250 bootloader starts by reading the SERVICE_N (GPI_01) input when deciding from which source to boot.
LPC3250 Developer’s Kit - User’s Guide Page 43 USB-to-serial connector Service Boot jumpers: Open: enable Service Boot Shorted: disable Service Boot RX/TX jumpers: Both jumpers should always be inserted Figure 19 – Jumper Settings for USB/Serial Connection If they are not, it is possible that a terminal program resets the board and/or enable service boot mode by accident.
LPC3250 Developer’s Kit - User’s Guide Figure 20 – LPC3250 loader application Copyright 2011 © Embedded Artists AB Page 44
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. [1] NXP LPC3250 Datasheet http://ics.nxp.com/products/lpc3000/datasheet/lpc3220.lpc3230.lpc3240.lpc3250.pdf [2] NXP LPC3250 User’s Manual http://ics.nxp.com/support/documents/microcontrollers/pdf/ user.manual.lpc3220.lpc3230.lpc3240.lpc3250.