background image

 

 

 

   

 LPC3152 

Developer’s Kit

 - User’s Guide

 

Copyright 2012 © Embedded Artists AB 

 

 

EA2-USG-0902 Rev H 

 

 

 

 

 

LPC3152 Developer’s Kit 

User’s Guide 

 
 

 

 

 

 

 

 

 

 

 

Get Up-and-Running Quickly and 
Start Developing Your Applications On Day 1! 

Содержание LPC3152

Страница 1: ...LPC3152 Developer s Kit User s Guide Copyright 2012 Embedded Artists AB EA2 USG 0902 Rev H LPC3152 Developer s Kit User s Guide Get Up and Running Quickly and Start Developing Your Applications On Day 1 ...

Страница 2: ...rtists 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 Feedback We appreciate any feedback you ...

Страница 3: ...age of CPU Pins 14 3 7 LPC3152 OEM Board Mechanical Dimensions and Connector 16 3 8 Things to note about the LPC3152 OEM Board 16 3 8 1 NAND FLASH Bad Block 16 3 8 2 Brand of Memory Chips 17 4 LPC31xx Base Board Design 18 4 1 Usage of CPU Pins 18 4 2 Known Limitation of LPC31xx Base Board 20 4 2 1 MMC SD Memory Card Detect Signal J13 20 4 2 2 H_L_CC Jumper 21 4 2 3 NAND Booting 21 4 2 4 USB Host a...

Страница 4: ...4 Copyright 2012 Embedded Artists AB 5 3 2 Creating a Boot Image 33 5 3 3 Booting via UART 35 5 3 4 Booting via SPI NOR flash 36 5 3 5 Booting via USB DFU class 36 5 3 6 LED on GPIO2 38 5 3 7 Booting via NAND Flash 38 6 Further Information 39 ...

Страница 5: ...it manual Replaced earlier section 5 3 6 with new section about NAND boot and LCD Ethernet problem section 4 6 D 2010 07 05 Added information in section 4 2 about things to note about the LPC31xx Base Board SD card detect logic USB Host powering E 2010 11 15 Updated information about NAND boot problem F 2011 08 24 Added information about VBUS over current sense for USB Host applications section 4 ...

Страница 6: ...RAM 16 bit databus width External FLASH memories 256 MB 2Gbit NAND FLASH and 4 MB 32Mbit SPI NOR FLASH 12 0000 MHz crystal for maximum execution speed and standard serial bit rates including CAN and USB requirements 256 Kbit I2C E2PROM for storing non volatile parameters Buffered 16 bit data bus for external expansion 200 pos expansion connector SODIMM 200 format 0 6mm pitch All LPC3152 pins avail...

Страница 7: ...posed for finger touches and therefore extra attention must be paid to ESD Electro Static Discharge precaution Make it a habit to always first touch the metal surface of one of the USB or SC MMC connectors for a few seconds with both hands before touching any other parts of the boards That way you will have the same electrical potential as the board and therefore minimize the risk for ESD Never to...

Страница 8: ...te that the LPC3152 OEM board is classified as a component and is hence not CE marked separately It can perform different functions in different integrations and it does not have a direct function It is therefore not in the scope of the CE Directive An end product where an OEM Board is integration into is however very likely to need CE marking 2 4 Other Products from Embedded Artists Embedded Arti...

Страница 9: ... USB powering is also supported USB powering is under software control Signal PWR_CTRL controls Q1 power switch to enable powering from a USB source An external 5V power source can power the board via VIN 3 1 1 2 Internal Voltage Converters The LPC3152 contains internal voltage converters both switched and linear designed to operate on battery power See the LPC3152 user s manual for details The ge...

Страница 10: ...oint should be as close as possible to the battery in order to remove the effect of voltage drops VNTC sensing for guarding the battery temperature An NTC resistor can be used to monitor the battery temperature A cold temperature limit is set to about 25 of VBUS voltage and a high temperature limit is set to about 6 There is a small hysteresis implemented also The table below lists the temperature...

Страница 11: ...TAG interface There is a special feature on the LPC3152 that can bypass the ARM core scan chain i e the debug access by pulling JTAGSEL low In that case the JTAG interface is used for boundary scan access 3 2 1 4 SPI NOR FLASH There is a 32Mbit 4 MByte NOR flash connected to the SPI bus There is an option to mount one of two different manufacturers either S25FL032 from Spansion or AT45DB321 from A...

Страница 12: ...ge 5 External Memories Page 5 of the schematic contains the external memory interface and the external memories There are two memory components connected to the external 16 bit memory bus interface Note that the LCD interface and external memory bus interface are multiplexed over the same pins It is the memory bus interface that is used in the LPC3152 OEM Board The LCD interface cannot be used and...

Страница 13: ...efault unless enabled by external signals By pulling signal N_ABUF_EN low the two buffers for address and control signals are enabled and act as outputs from the LPC3152 OEM Board The data bus buffer is controlled by the signal N_DBUF_EN By pulling this signal low the data bus buffer is enabled The buffered version of the LPC3152 signal OE controls the direction of the data bus buffer During read ...

Страница 14: ...ion connector USB_VBUS USB_DM USB_DP USB_ID Yes I2C_SDA0 I2C_SCL0 Yes but I2C E2PROM connected to these pins SPI_CS_OUT0 No signal used for chip select of SPI NOR flash U7 or U10 SPI_SCK SPI_MISO SPI_MOSI SPI_CS_IN Yes but note that SPI NOR flash is connected to SPI_SCK SPI_MISO SPI_MOSI UART_RXD UART_TXD UART_CTS SPI_CS_OUT1 UART_RTS SPI_CS_OUT2 Yes I2SRX_DATA0 I2SRX_WS0 I2SRX_BCK0 I2STX_DATA0 I2...

Страница 15: ... buffer EBI_DQM0 NOE EBI_NWE EBI_NCAS BLOUT0 EBI_NRAS BLOUT1 MLCD_CSB EBI_NSTCS0 MLCD_DB1 EBI_NSTCS1 Yes but only available via the buffer NAND_NCS0 MNAND_RYBN0 MCI_DATA4 No used for internal NAND flash memory NAND_NCS1 NAND_NCS2 NAND_NCS3 MNAND_RYBN1 MCI_DATA5 MNAND_RYBN2 MCI_DATA6 MNAND_RYBN3 MCI_DATA7 Yes MLCD_DB0 EBI_CLKOUT MLCD_RS EBI_NDYCS MLCD_RW_WR EBI_DQM1 MLCD_E_RD EBI_CKE No used for in...

Страница 16: ...ions 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 8 Things to note about the LPC3152 OEM Board 3 8 1 NAND...

Страница 17: ...y 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 The application program shall always read the chip id of flash devices to make certa...

Страница 18: ...e 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 4 1 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 and chip select si...

Страница 19: ...as MCI_DAT1 MMC SD interface GPIO9 Can be used as MCI_DAT2 MMC SD interface GPIO10 Can be used as MCI_DAT3 MMC SD interface PWM_DATA Can be used to control backlight intensity on QVGA display ADC10B_GPA0 X output from accelerometer ADC10B_GPA1 Y output from accelerometer ADC10B_GPA2 Either z output from accelerometer or trim pot CLOCK_OUT No usage EBI_D0 EBI_D15 Connect to QVGA display module conn...

Страница 20: ...Connected to Reset push button and LED 4 2 Known Limitation of LPC31xx Base Board 4 2 1 MMC SD Memory Card Detect Signal J13 J13 is not assembled on LPC31xx Base Boards version 1 1 Instead a 3K resistor is soldered between the pins The reason is that the signal I2STX_BCK0 acts as an output during booting in most boot modes Since the MMC SD connector will drive the signal to GND if a memory card is...

Страница 21: ...t applications over current sense U3 is an over current protected distribution switch for VBUS 5V for feeding external USB devices There is a status flag feedback signal from U3 If this is used for example by the latest Linux distribution a jumper must be inserted in J14 pin 9 10 This will bridge the status signal to pin I2SRX_WS0 This jumper is not inserted by default If the over current flag on ...

Страница 22: ... Lower J10 select always enabled or controlled UART select J28 J30 J31 J32 Left pos to RS232 Right pos to XBee module QVGA interface config From left to right J36 J33 J35 J34 UART select J27 J29 Upper pos UART to RS232 XBee Lower pos UART to USB to serial bridge USB Host always J16 insert to always force USB Host UOS_VBAT J23 Select source for UOS_VBAT Boot select J20 J19 J18 Left pos pull high Ri...

Страница 23: ... Base Board Default Jumper Positions 4 3 2 Illegal Jumper Combinations Note that some jumpers are mutual exclusive and should not be inserted simultaneously Note that the spi chip select on the QVGA display touch controller use the signal UART_CTS_SPI_CS_OUT1 Hence a jumper between pin 1 2 on J38 should not be inserted while a jumper on J31 is inserted since RTS from the RS232 interface or CTS fro...

Страница 24: ...ors on the LPC31xx Base Board Figure 5 LPC31xx Base Board External Connectors Mic in J42 Line in 1 J44 Line in 2 Line out J48 Headphone J52 MMC SD J12 RS232 DSUB J26 XBee module U10 Power in J24 JTAG J9 USB Host J15 USB OTG J17 Battery connector X2 Expansion J7 Expansion J6 RJ45 Ethernet J56 Expansion J8 QVGA display J37 SODIMM connector X1 USB serial J25 ...

Страница 25: ...d for some important components in the design Figure 6 LPC31xx Base Board Important Components Reset push button and Reset LED Trimming potentiometer for analog input Accelerometer SD MMC Power LED LED5 12 Joystick SW3 Voltage measurement pads and Power LED LED13 USB to serial activity LEDs Current monitor outputs J2 J5 GPIO2 LED LED2 USB VBUS LED LED4 Play button SW1 ...

Страница 26: ...d 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 After NAND flash boot is completed the active level changes for the signals N_STCS0 and N_STCS1 Their inactive state is then high and their active stat...

Страница 27: ...PC3152 OEM Board will not be enabled during NAND boot when both N_STCS0 and N_STCS1 are low Embedded Artists has created a small board with a XNOR gate that can be soldered to the LPC31xx Base Board This board can be ordered free of charge from the support page The board is delivered with a detailed instruction how to solder the board 5 wires needs to be soldered on the back side of the LPC31xx Ba...

Страница 28: ... LPC3152 to a virtual COM port on the PC via USB It is this serial channel that is the console interface to the system Special USB drivers must be installed on the PC in order for the virtual COM port to be created See Section 5 2 for a description of how to install the FTDI USB driver 5 2 FTDI USB Driver A USB driver must be installed on your PC computer in order to get the USB to UART chip FT232...

Страница 29: ...er s Guide Page 29 Copyright 2012 Embedded Artists AB Figure 9 System Settings Dialog Then select the Device Manager and open the Ports list as illustrated in Figure 10 below Figure 10 Device Manager Dialog Ports Device Manager ...

Страница 30: ...e flow control as illustrated in Figure 12 below Then select Advanced settings Please note that different application programs can use different baudrate settings for the serial channel Other baudrates can also be used depending on your specific application Also note that it is normally not needed to set the used baudrate at all The driver and FT232R chip will automatically handle different baudra...

Страница 31: ...rtly and then plug in again A new COM port that can be accessed properly should be created the second time This problem may occur after every time you start i e power cycle your PC 5 3 Booting The processor will start its code execution from an internal ROM containing the boot code This code determines the boot mode by sampling the reset state of the pins GPIO0 GPIO1 and GPIO2 Multiple boot option...

Страница 32: ...on UART default mode The boot image is downloaded via the UART The download format is 115 2 kbps 8 data bits no parity and one stop bit 8N1 It is recommended to download a CRC check boot image since there is no flow control or handshake mechanism implemented in the UART protocol Note that no jumpers need to be set for this boot mode since this is the default However it is good practice to set the ...

Страница 33: ...g a Boot Image Note that this section describes how to create a boot image for the LPC313x family The principles are exactly the same for the LPC315x family and the exact same conversion program is used even though the somewhat bad naming of the program The first step is to create a pure binary file This is normally done from the build output file often an elf or elf compatible file Under a GCC en...

Страница 34: ...d i lpc313x bin The o option specifies the output directory the current directory in this case The pd option specifies that a file for USB boot mode should be generated The i option specifies the input file An output file called lpc313x rom will be generated in the command line example above It is possible to automatically create the boot image when compiling building The example below illustrates...

Страница 35: ...rface can be used directly Make sure the jumpers on the LPC31xx Base Board are correctly set for the interface option selected Terminal setting is 115 2kbps 8N1 The boot code will output the following string over the UART channel LPC31xx READY FOR PLAIN IMAGE The download of the binary file should start within 2 minutes from this message When the boot image is downloaded the following string will ...

Страница 36: ... actual boot image to be used for SPI booting Please note that you need to download a CRC attached boot image Section 5 3 2 describes how to create such an image The download process should start within 2 minutes after this message has appeared When the boot image is downloaded the following string will be sent from the SPI NOR flash program Download finished Programing flash multiple hashes Verif...

Страница 37: ...rtists 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 5 Warning about the file not containing a suffix can sometimes be generated Just ignore such messages and click Yes to continue 6 Select Start Download Figure 18...

Страница 38: ... 2 minutes after reset wrong boot image format or CRC error detected in the downloaded boot image Figure 20 GPIO2 LED Position 5 3 7 Booting via NAND Flash NXP has written detailed instructions of how to use the u boot or Apex bootloaders to program the NAND flash on the LPC31xx OEM Boards with a bootable image Please follow the links below for more information Program NAND flash using u boot http...

Страница 39: ...0 874 5 6 ARM9 vs ARM7 core comparison This document from ARM gives a good overview of the ARM9 core compared to the ARM7 core that for example is found in the LPC2xxx family http www arm com pdfs comparison arm7 arm9 v1 pdf 7 Embedded System Design on a Shoestring by Lewin Edwards Newnes ISBN 0750676094 8 GNU Manuals http www gnu org manual 9 GNU ARM tool chain for Cygwin http www gnuarm com 10 A...

Страница 40: ...Mouser Electronics Authorized Distributor Click to View Pricing Inventory Delivery Lifecycle Information Embedded Artists EA OEM 302 ...

Отзывы: