Table of Contents

Advertisement

Quick Links

- User's Guide
LPC4357 Developer's Kit
Copyright 2013 © Embedded Artists AB
LPC4357 Developer's Kit
User's Guide
Get Up-and-Running Quickly and
Start Developing Your Application On Day 1!
EA2-USG-1208 Rev A

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the EA-QSB-010 and is the answer not in the manual?

Questions and answers

Summary of Contents for Embedded Artists EA-QSB-010

  • Page 1 - User’s Guide LPC4357 Developer’s Kit Copyright 2013 © Embedded Artists AB LPC4357 Developer’s Kit User’s Guide Get Up-and-Running Quickly and Start Developing Your Application On Day 1! EA2-USG-1208 Rev A...
  • 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

    SP6: VBAT/ALARM Handling 4.10 SP7: I2C Peripherals 4.11 SP8: Analog Input 4.12 SP8: Digital IO 4.13 SP8: Serial Expansion Connector 4.14 SP8: NXP/Jennic RF Module Interface 4.15 SP9: UART Multiplexing 4.16 SP9: RS232 Interface Copyright 2013 © Embedded Artists AB...
  • Page 4 Initialization of External Memory Bus 5.6.5 USB OTG Transceiver 6 LCD Expansion Connector 7 Troubleshooting No SWD/JTAG Connection Powering Contact with OEM Board MCU Using Test Program to Verify Correct Operation 8 Further Information Copyright 2013 © Embedded Artists AB...
  • Page 5: Document Revision History

    Date Description 2012-10-29 First version. 2012-12-08 Added information about ESD sensitive JTAG interface. 2013-01-21 Minor clarifications. 2013-04-08 Clarified that JP4 must be shorted (jumper installed) in order for the LPC4357 SWD/JTAG interface to function. Copyright 2013 © Embedded Artists AB...
  • Page 6: Introduction

    LPC4357 Developer’s Kit - User’s Guide Page 6 2 Introduction Thank you for buying Embedded Artists’ LPC4357 Developer’s Kit based on NXP’s ARM dual-core Cortex-M4/M0 LPC4357 microcontroller. This document is a User’s Guide that describes the LPC4357 OEM Board and the OEM Base Board hardware design, which together form the LPC4357 Developer’s Kit.
  • Page 7: Esd Precaution

    Never touch directly on the LPC4357 OEM Board and in general as little as possible on the OEM Base Board. The push-buttons on the OEM Base Board have grounded shields to minimize the effect of ESD. Note that Embedded Artists does not replace boards that have been damaged by ESD. Copyright 2013 © Embedded Artists AB...
  • Page 8: Esd Sensitivity On Jtag Interface

    Also, do not apply pressure on the flex cables connecting the LCD/touch screen. These are relatively sensitive and can be damaged if too much pressure is applied to them. Note that Embedded Artists does not replace boards where the LCD has been improperly handled.
  • Page 9: Other Products From Embedded Artists

    Page 9 Other Products from Embedded Artists Embedded Artists have a broad range of LPC1000/2000/3000/4000 based boards that are very low cost and developed for prototyping / development as well as for OEM applications. Modifications for OEM applications can be done easily, even for modest production volumes. Contact Embedded Artists for further information about design and production services.
  • Page 10: Lpc4357 Oem Board Design

    Note that the NAND flash is connected after the memory bus buffers, i.e., on the same side as the LPC4357 OEM Board expansion signals. This is to allow flexibility in NAND flash usage and reduce loading on memory bus that is directly connected to the SDRAM. Copyright 2013 © Embedded Artists AB...
  • Page 11: Spifi

    From top to bottom; BS0 setting BS1 setting BS2 setting LED2 BS3 setting Memory card 0=’on’ pos, to the right interface powered 1=’off’ pos, to the left Figure 1 – LPC4357 OEM Board Picture, top side Copyright 2013 © Embedded Artists AB...
  • Page 12: Trace Connector

    The signals on the SODIMM edge connector that are normally allocated for memory card interface (on other OEM boards) carry other signals on the LPC4357 OEM board that have no relation to the memory card interface. uSD/transflash connector Figure 2 – LPC4357 OEM Board Picture, bottom side Copyright 2013 © Embedded Artists AB...
  • Page 13: Board Options

    The LPC4357 OEM Board contains a small E2PROM, 24AA02E48 from Microchip that can be accessed via I2C. The chip contains a globally unique 48-bit number (EUI-48™) that can be used as Ethernet MAC address. See the 24AA02E48 datasheet for details. Copyright 2013 © Embedded Artists AB...
  • Page 14: Oem Base Board Design

    The OEM Base Board has been designed to be flexible. Most options can be controlled via jumpers but some options might need soldering. Note that modifications to the board are done at own risk and void all warranties. Copyright 2013 © Embedded Artists AB...
  • Page 15: Sp2: Oem Board Connector

    Note that J4 has gathered all needed signals for expanding the memory bus (16-bit bus expansion). J4 is the expansion connector closest to the board edge. For 32-bit memory bus expansion, J3 is also needed (for the upper 16 bits of the databus). Copyright 2013 © Embedded Artists AB...
  • Page 16: Sp4: External Memory Bus

    Signals BBLS0/BBLS1 controls the lower and upper 8 bits, respectively. Since the OEM Base Board is universal and supports many different OEM Boards, the chip select signal is either signal BCSX or GPIO69. For the LPC4357 OEM Board, the signal BCSX is actually Copyright 2013 © Embedded Artists AB...
  • Page 17: Sp5: Debug Interfaces

    J9 – this is the old and big footprint 38 pin Mictor connector for ETM trace for the LPC2478. This connector is not mounted. It is not used when working with the LPC4357 OEM board. The connector can be soldered to the board if needed. The connector can be bought from Copyright 2013 © Embedded Artists AB...
  • Page 18 Debug Connectors ETM Control Jumpers JP3 – not used Debug Control Jumpers Trace&Debug Connectors J10 – not used Trace&Debug Connectors J9 – not used Debug Connectors Reset LED LED17 Figure 7 – Debug Interfaces Copyright 2013 © Embedded Artists AB...
  • Page 19: Sp6: Ethernet Interface

    For example, using USB Host with power hungry external devices will require more current. In most situations a 9-10W module will be sufficient. Besides the PoE module, a RJ45 capable of handling PoE is also needed. Copyright 2013 © Embedded Artists AB...
  • Page 20: Sp6: Sd/Mmc Memory Card Interface

    There is visual indication via LED2 on the LPC4357 OEM board that supply voltage to the memory card is present. SD/MMC Connector J13 – not used Figure 9 – SD/MMC Memory Card Interface – Not used Copyright 2013 © Embedded Artists AB...
  • Page 21: Sp6: Vbat/Alarm Handling

    The ALARM signal control LED21. Note that LED21 will consume a lot of current from the battery and/or super-capacitor. Restrict on/high time to preserve energy. Battery Holder ALARM-LED LED21 Figure 10 – VBAT and ALARM circuit Copyright 2013 © Embedded Artists AB...
  • Page 22: Sp7: I2C Peripherals

    SW2, LED24/25 are positioned above SW3, LED26/27 are positioned above SW4 and LED28/29 are positioned above SW5. Temp Sensor Port Expander Accelerometer Config E2PROM Push-buttons left to right: SW2/SW3/SW4/SW5 Figure 11 – I2C Peripherals Signals LPC4357 I2C-SDA I2C-SDA I2C-SCL I2C-SCL Copyright 2013 © Embedded Artists AB...
  • Page 23: Sp8: Analog Input

    ADC6. In order to be compatible with other OEM boards, R93 connects signal V3A and VREF, but signal VREF is carrying signal ADC6 on the LPC4357 OEM board. Trimming Potentiometer Figure 12 – Analog Input Signals LPC4357 GPIO39_AIN2 ADC3 Copyright 2013 © Embedded Artists AB...
  • Page 24: Sp8: Digital Io

    The Serial Expansion Connector is a standardized serial interface connector that is included on many boards from Embedded Artists, including the OEM Base Board. The purpose is to provide a simple expansion connector for smaller expansion modules. Such modules are typically sensors of different kinds and communication modules, but can also be smaller displays.
  • Page 25 This is pin 13 of J15. It is suggested to short pin 27 and 29 of J3 in order to connect LPC4357 pin PC_11 to this signal – to get GPIO functionality on this pin. Copyright 2013 © Embedded Artists AB...
  • Page 26: Sp8: Nxp/Jennic Rf Module Interface

    See picture below for locating the relevant components on the board. See also the table for signal connection. RF-Program Connector RF Module on backside RF-Program Button Reset button Figure 15 – RF Module Signals LPC4357 SIE_UART_RXD P2_4 via multiplexor, USART#3 is used SIE_UART_TXD P9_3 via multiplexor, USART#3 is used Copyright 2013 © Embedded Artists AB...
  • Page 27: Sp9: Uart Multiplexing

    UART to LCD Expansion Connector UART to RS422/485 transceiver UART to RS232 Interface Figure 16 – UART Multiplexing Signals LPC4357 GPIO25_RXD P2_4 via multiplexor, USART#3 is used GPIO24_TXD P9_3 via multiplexor, USART#3 is used Copyright 2013 © Embedded Artists AB...
  • Page 28: Sp9: Rs232 Interface

    Left pos: 1-2, Right pos: 2-3 Place in pos 2-3, or no jumpers at all! Figure 17 – RS232 Interface Signals LPC4357 GPIO25_RXD P2_4 via multiplexor, USART#3 is used GPIO24_TXD P9_3 via multiplexor, USART#3 is used Copyright 2013 © Embedded Artists AB...
  • Page 29: Sp9: Rs422/485 Interface

    RS422/485 part of Connector From top (pos 1)-to-bottom: Termination Resistors Control JP10 Figure 18 – RS422/484 Interface Signals LPC4357 GPIO25_RXD P2_4 via multiplexor, USART#3 is used GPIO24_TXD P9_3 via multiplexor, USART#3 is used GPIO43 PF_6 Copyright 2013 © Embedded Artists AB...
  • Page 30: Sp10: Can

    Figure 19 – CAN Interface Signals LPC4357 GPIO14_CANRD P3_1, CAN0 is used GPIO15_CANTD P3_2, CAN0 is used GPIO18_CANRD P4_1, but do not carry any CAN signals GPIO19_CANTD P4_4, but do not carry any CAN signal Copyright 2013 © Embedded Artists AB...
  • Page 31: Sp10: Irda

    The board is prepared for an IrDA interface, but the IrDA transceiver (TFBS4652) is not mounted. Note that the pinning of the LPC4357 OEM board is not compatible with the IrDA interface, which cannot be used. IrDA Transceiver Figure 20 – IrDA Interface Copyright 2013 © Embedded Artists AB...
  • Page 32: Sp11: Usb Channel

    USB-A Connector USB mini-AB Connector USB1 VBUS Power LED34 Force USB Host Power Control USB1-Up LED LED31 Force USB Connect MIC2555 Expansion JP30 Figure 21 – USB Channel#1 Signals LPC4357 USB1-DP USB1-DP USB1-DM USB1-DM Copyright 2013 © Embedded Artists AB...
  • Page 33: Usb Channel 1 As Usb Host

    JP15 shall not be inserted. LED34 is has no meaning. JP16 can be inserted in order to force USB Host behavior on the interface (if the external device connected to J19 cannot pull the ID signal low). Copyright 2013 © Embedded Artists AB...
  • Page 34: Sp12: Usb Channel

    JP17 Upper: USB Device Lower: USB Host Figure 22 – USB Channel#2 Signals LPC4357 USB2-DP USB0-DP USB2-DM USB0-DM GPIO27 P9_4 GPIO28 P9_5 GPIO54 USB0_VBUS GPIO26 inverted P2_3, the signal has been inverted to be Copyright 2013 © Embedded Artists AB...
  • Page 35: Usb Channel 2 (Usb0 On Lpc4357) As Usb Host

    J32 is the connector to use when USB OTG is used. This is a mini-AB USB connector. The VBUS signal is also feed back to GPIO54. LED35 is has no meaning. JP31 shall be inserted. Copyright 2013 © Embedded Artists AB...
  • Page 36: Sp13: Uart-To-Usb Bridge

    See picture below for locating relevant components. The table below lists signal connections. USB mini-B Connector Automatic ISP JP20 Cannot be used! Transmit LED LED38 Receive LED LED37 Figure 23 – UART-to-USB Bridge Signals LPC4357 GPIO16_TXD PF_10, USART0 is used GPIO17_RXD PF_11, USART0 is used Copyright 2013 © Embedded Artists AB...
  • Page 37: Sp13: Power Supply

    LCD expansion connector. The trade-off is that the UART and I2C serial interfaces have to be removed. Via SJ6-SJ11 it is possible to select what signals to make available on the LCD expansion connector. By default pad 1-2 are connected on SJ6-SJ11. Copyright 2013 © Embedded Artists AB...
  • Page 38: Sp15: I2S Audio Codec

    OEM Board. Jumper JP22-JP27 selects which group of signals to connect to the I2S interface of the UDA1380. For LPC4357 OEM Board, set all jumpers in lower position (see picture below). Copyright 2013 © Embedded Artists AB...
  • Page 39 JP24, JP25, JP26, JP27, JP28 Audio Select JP29 Speaker Figure 26 – I2S Audio Codec Interface Signals LPC4357 I2C-SDA I2C-SDA I2C-SCL I2C-SCL GPIO40 ADC0/DAC GPIO56 P3_0 GPIO57 PC_12 GPIO58 PC_13 GPIO59 P6_0 GPIO60 P6_1 GPIO61 P6_2 GPIO68 CLK2_OUT Copyright 2013 © Embedded Artists AB...
  • Page 40: Default Jumpers Positions

    Page 40 4.26 Default Jumpers Positions Figure 27 illustrates the default jumper positions as mounted when the board is delivered from Embedded Artists. Default jumpers are marked with color. Change JP22, JP23, JP24, JP25, JP26, JP27, JP28 to pos 2-3 Remove all JP11 jumpers.
  • Page 41: Usage Of Cpu Pins

    GPIO16 PF_10 Connects to USB-to-serial bridge (TxD on USART #0). GPIO17 PF_11 Connects to USB-to-serial bridge (RxD on USART #0). GPIO18 P4_1 LCD databit 0, can also be connected to RD2 for CAN channel Copyright 2013 © Embedded Artists AB...
  • Page 42 I2C-SDA I2C-SDA I2C-SDA, connects to PCA9532, E2PROM, LM74, 3-axis Accelerometer, audio codec, serial expansion connector, lcd expansion connector. I2C-SCL I2C-SCL I2C-SCL, connects to PCA9532, E2PROM, LM74, 3-axis Accelerometer, audio codec, serial expansion connector, lcd Copyright 2013 © Embedded Artists AB...
  • Page 43 Can optionally be connected to USB1 VBUS power enable. GPIO44 P4_10 LCD databit 10 GPIO45 P4_9 LCD databit 11 GPIO46 P8_3 LCD databit 12 Can optionally be connected to USB1 VBUS feedback. GPIO47 PB_6 LCD databit 13 Copyright 2013 © Embedded Artists AB...
  • Page 44 Connects to joystick switch GPIO74 PA_2 Connects to joystick switch GPIO75 PA_3 Connects to joystick switch GPIO76 P9_0 Connects to joystick switch GPIO77 P9_1 Connects to joystick switch GPIO78 PF_8 No special usage on OEM Base Board. Copyright 2013 © Embedded Artists AB...
  • Page 45 Connected to SWD/JTAG connectors signals signals Note that the LPC4357 MCU is sensitive to ESD on the JTAG port. Observe extra care around this. Make sure the ground of the JTAG interface is connected to Copyright 2013 © Embedded Artists AB...
  • Page 46 JTAG pod is powered. RESET_IN RESET Connects to RESET push-button and USB-to-serial bridge (for automatic ISP functionality) RESET_OUT RESET Connects to RESET LED indicator. Used to reset PCA9532, UDA1380, FT232RL, MIC2555, RF module and LCD expansion connector. Copyright 2013 © Embedded Artists AB...
  • Page 47: Getting Started

    LPC4357, see section 5.4 . The source code and pre-compiled hex-file is available on the support site. Copyright 2012 © Embedded Artists AB...
  • Page 48 Version: 1.0, (build October 24 2012)  LCD controller; the program will detect if a display (one of Embedded Artists’ LCD boards) is connected on the LCD Expansion Connector and display an image on it, like below. Figure 29 – Demo Application Image...
  • Page 49: Installing Usb Driver

    Flash Magic (http://www.flashmagictool.com/). Note that the LPC4357 OEM board does not support ISP over USART booting due to pinning conflicts. It was not possible to place the used pins for USART communication on the Copyright 2012 © Embedded Artists AB...
  • Page 50: Isp Over Usb Program Download

    This method is not supported by any sample applications from Embedded Artists. Embedded Artists support site contains sample applications for the LPC4357 Developer’s Kit. Source code and pre-compiled binary images (hex-files) can be downloaded from there.
  • Page 51 See the project files in the sample applications for how it is added to the compile process.  Settings in lpc_dfusec See Figure 32for details of the description below. 1. Use the "Program Mode" tab. 2. Only “Step 0” is used. 3. For “Algo”, select the file Programming_algorithms\dfusecp_iflash_18xx43xx.bin.hdr Copyright 2012 © Embedded Artists AB...
  • Page 52 Start the board in DFU mode and wait for the "NO_CONN" status in the lower left corner to change into "HIGH SPEED USB". The press the “Start” button to download. The program should then be flashed and started automatically. Copyright 2012 © Embedded Artists AB...
  • Page 53 LPC4357 Developer’s Kit - User’s Guide Page 53 NOTE: The SW6 button on the OEM base board (that is used to enter DFU mode) MUST be kept pressed down until both steps have finished executing! Copyright 2012 © Embedded Artists AB...
  • Page 54: Handling So-Dimm Boards

    Alternatively, add a 100nF ceramic capacitor in parallel to R239. See Figure 34 below where to locate R239. The capacitor will create a low-pass filter removing the noise in the audible region. Copyright 2012 © Embedded Artists AB...
  • Page 55: Current Consumption And Limits Of Usb Ports

    MSB signal low, which is the flickering that is seen. The solution is to remove resistor R163. The LCD interface and the USB OTG transceiver cannot be used at the same time on the OEM Base Board. Copyright 2012 © Embedded Artists AB...
  • Page 56: Initialization Of External Memory Bus

    Remove R163 Figure 35 – Identifying R163 Note that R163 has been removed on all boards shipped out from Embedded Artists after May 15, 2012. Since there is a transition period, and stock at distributors, there is no guarantee that the resistor has been removed on boards delivered after this date.
  • Page 57: Lcd Expansion Connector

    All LCD boards supplied from Embedded Artists use the LCD Expansion Connector. There is also an option to connect custom displays via the LCD Expansion Connector, J26.
  • Page 58 Signal SPI_LCD_DC is typically used for this. Few displays allow for read back of internal control registers via SPI. Only write transfers are typically supported. Copyright 2012 © Embedded Artists AB...
  • Page 59  As a final step a touch screen interface is typically needed. o Embedded Artists display boards often use the TSC2046 from TI. It has a simple SPI interface. o Capacitive touch screen controllers typically have I2C or SPI interfaces.
  • Page 60: Troubleshooting

    It is strongly advised to read through the list of tests and actions that can be done before contacting Embedded Artists. The different tests can help determine if there is a problem with the board, or not. For return policy, please read Embedded Artists’ General Terms and Conditions http://www.embeddedartists.com/shop/...
  • Page 61: Contact With Oem Board Mcu

    (in case an application is running). It is recommended to download one of the precompiled sample applications from the LPC4357 Developer’s Kit support page on the Embedded Artists web site. How to download is explained in next section. The sample application s_sdram.hex has for example a known current consumption range. The valid range is 650-900m V (which corresponds to 130-180mA).
  • Page 62: Further Information

    (not just the LPC2000 series). http://tech.groups.yahoo.com/group/lpc2000/ [10] LPCware, NXP's community for developers http://www.lpcware.com/ Note that there can be newer versions of the documents than the ones linked to here. Always check for the latest information/version. Copyright 2012 © Embedded Artists AB...

Table of Contents