Advertisement

Quick Links

USER MANUAL: LPC185x – Xplorer++
LPC185x-Xplorer++
About NGX Technologies
NGX Technologies is a premier supplier of development tools for the ARM7, ARM Cortex M0, M3 and
M4 series of microcontrollers. NGX provides innovative and cost effective design solutions for embedded
systems. We specialize in ARM MCU portfolio, which includes ARM7, Cortex-M0, M3 & M4
microcontrollers. Our experience with developing evaluation platforms for NXP controller enables us to
provide solutions with shortened development time thereby ensuring reduced time to market and lower
development costs for our customers. Our cost effective and feature rich development tool offering, serves
as a testimony for our expertise, cost effectiveness and quality.
Contact Information:
NGX Technologies Pvt. Ltd.
#12, 20th Cross, Malagala, Nagarabhavi 2nd Stage
Bengaluru - 560091
Phone- +91-80-23185507 / 23188306
email:sales@ngxtechnologies.com
Page | 1

Advertisement

Table of Contents
loading

Summary of Contents for NGX Technologies LPC185X-Xplorer++

  • Page 1 LPC185x-Xplorer++ About NGX Technologies NGX Technologies is a premier supplier of development tools for the ARM7, ARM Cortex M0, M3 and M4 series of microcontrollers. NGX provides innovative and cost effective design solutions for embedded systems. We specialize in ARM MCU portfolio, which includes ARM7, Cortex-M0, M3 & M4 microcontrollers.
  • Page 2 USER MANUAL: LPC185x – Xplorer++ CE certification: NGX Technologies LPC185X-Xplorer++ board has been tested for radiated emission as per EN55022 class a standard. The device is under the limits of the standard EN55022 class A and hence CE marked. No other test have been conducted other than the radiated emission (EN55022 class A standard). The device was tested with the ports like USB, Serial, and Power excluding the GPIO ports.
  • Page 3: Table Of Contents

    USER MANUAL: LPC185x – Xplorer++ Table of Contents 1.0 INTRODUCTION..........................4 2.0 LPC185X-Xplorer++ Development Tool Setup ................... 5 2.1 ULINK2/ME and KEIL ........................5 2.2 Installation & Configuration of KEIL software ................5 2.3 Configuration of ULINK2/ME Debugger ..................9 2.4 Configuring External Quad Flash ....................
  • Page 4: Introduction

    USER MANUAL: LPC185x – Xplorer++ 1.0 INTRODUCTION This document is the User Manual for LPC185X-Xplorer++; a cost effective evaluation platform for NXP’s LPC185x MCU. This document reflects its contents which include system setup, debugging, and software components. This document provides detailed information on the overall design and usage of the board from a systems perspective.
  • Page 5: Lpc185X-Xplorer++ Development Tool Setup

    USER MANUAL: LPC185x – Xplorer++ 2.0 LPC185X-Xplorer++ Development Tool Setup 2.1 ULINK2/ME and KEIL NGX’s MCU evaluation platforms are not coupled tightly with any one particular combination of IDE and debugger. The following sections will explain the setup for KEIL and ULINK2/ME as the IDE and debugger respectively.
  • Page 6 USER MANUAL: LPC185x – Xplorer++ Step 2: Click on Next. Fig.2 Step 3: To accept the agreement, click the check box and click Next. Fig.3 Page | 6...
  • Page 7 USER MANUAL: LPC185x – Xplorer++ Step 4: Provide the destination path and click on Next Fig.4 Step 5: Fill your personal information and click on Next Fig.5 Page | 7...
  • Page 8 USER MANUAL: LPC185x – Xplorer++ Step 6: Click on Next Fig.6 Step 7: Keil µVision4.54 setup is completed, click Finish. Fig.7 Page | 8...
  • Page 9: Configuration Of Ulink2/Me Debugger

    USER MANUAL: LPC185x – Xplorer++ 2.3 Configuration of ULINK2/ME Debugger The configuration flow of ULINK2/ME Debugger is explained below: Step 1: Open the KEIL blinky project downloaded from the website and click on the ‘Target Options’. Fig.8 Step 2: The window opens as shown in the following image. Next click on Debug and then select the ‘ULINK2/ME Cortex Debugger’...
  • Page 10: Configuring External Quad Flash

    USER MANUAL: LPC185x – Xplorer++ Fig.9 Step 3: Next click on the ‘Settings Option’, the ‘Cortex-M Target Driver Setup’ window opens then select SW port. After selection of the SW port the ULINK2/ME detected is as shown in the following image. Fig.10 (Note: The Cortex M3 can be programming using SW or JTAG.) 2.4 Configuring External Quad Flash...
  • Page 11 USER MANUAL: LPC185x – Xplorer++ Fig.11 Step 2: The window opens as shown in the following image, click on Utilities and select ‘ULINK2/ME Cortex Debugger’. Fig.12 Step 2: Select ‘Update Target before Debugging’ check box, click on ‘Settings Options’ and in ‘CortexM Target Driver setup’...
  • Page 12 USER MANUAL: LPC185x – Xplorer++ Click OK to complete the ‘ULINK2/ME Debugger configuration’. Page | 12...
  • Page 13: Setup For Ulink2/Me And Lpc185X-Xplorer++ Board

    USER MANUAL: LPC185x – Xplorer++ 2.5 Setup for ULINK2/ME and LPC185X-Xplorer++ Board Option A: With ULINK-ME debugger To run the KEIL examples you will need the following and the image shows the each components: • ULINK-ME • 10-pin ribbon cable •...
  • Page 14 USER MANUAL: LPC185x – Xplorer++ Fig.15 Step 2: Connect other end of 10-pin ribbon cable to ‘10-pin box header’ of the LPC185X-Xplorer++ board as shown in the following image. Fig.16 Step 4: Connect one end of ‘USB AM to Micro B’ cable to LPC185X-Xplorer++ board and other end to computer and connect one end of ‘USB AM to Micro B’...
  • Page 15 USER MANUAL: LPC185x – Xplorer++ Fig.17 The setup is now ready to be used for development with KEIL IDE and ULINK-ME. Option B: With ULINK2 debugger The LPC185X-Xplorer++ board has on board ‘10-pin SWD/JTAG box header’; ensure that the ULINK2/ME must have ‘10-pin SWD/JTAG’ support for development. The ULINK2 debugger, ‘20-pin to 10-pin adapter’...
  • Page 16 USER MANUAL: LPC185x – Xplorer++ Fig.18 Steps to setup the ULINK2 and LPC185X-Xplorer++ Board: (Note: Please refer keil knowledgebase article for connecting ULINK2/ME 10-pin ribbon cable to NGX Xplorer++) Step 1: Connect the one end of 10-pin ribbon cable to ‘20-pin to 10-pin adapter’ as shown in the following image.
  • Page 17 USER MANUAL: LPC185x – Xplorer++ Fig.20 Step 3: Now connect the ‘ULINK2 20-pin’ cable to ‘20-pin to 10-pin adapter’ as shown in the following image. Fig.21 Step 4: Connect one end of ‘USB AM to Micro B’ cable to LPC185X-Xplorer++ board and other end to computer, connect one end of ‘USB type B’...
  • Page 18 USER MANUAL: LPC185x – Xplorer++ Fig.22 The setup is now ready to be used for development with KEIL IDE and ULINK2. Page | 18...
  • Page 19: Lpc185X-Xplorer++ Firmware Development

    USER MANUAL: LPC185x – Xplorer++ 3.0 LPC185X-Xplorer++ firmware Development 3.1 Creating the sample (Blinky) project in KEIL Steps to create the sample (Blinky) project: Step 1: Open a KEIL IDE. Fig.23 Step 2: Click on Project->New uVision Project… as show below. Fig.24 Page | 19...
  • Page 20 USER MANUAL: LPC185x – Xplorer++ Step 3: Create a new folder in downloaded sample example folder and rename to Blinky_test and select Blinky_test folder click Open. Fig.25 Step 4: Give a project name, example: ‘Blinky_test’ and click Save. Fig.26 Page | 20...
  • Page 21 USER MANUAL: LPC185x – Xplorer++ Step 5: Select the NXP (found by Philips) and search for the controller. Fig.27 Step 6: Select LPC185X controller (Select LPC1850 for LPC1850-Xplorer++ board, LPC1857 for LPC1857-Xplorer++ board) and click OK. Page | 21...
  • Page 22 USER MANUAL: LPC185x – Xplorer++ Fig.28 Step 7: Click YES to copy startup file to project folder and add file to project. Fig.29 Step 8: Rename the “Target1” to “Blinky_test” and “Source Group1” to “Startup”. Page | 22...
  • Page 23 USER MANUAL: LPC185x – Xplorer++ Fig.30 Step 9: Double click on Startup. Fig.31 Step 10: Search ‘system_LPC18xx.c file’ (in the sample examples downloaded folder from NGX website), the file will be found at following path: Page | 23...
  • Page 24 USER MANUAL: LPC185x – Xplorer++ “..\CMSISv2p10_LPC18xx_DriverLib\Core\Device\NXP\LPC18xx\Source\Templates” select ‘system_LPC18xx.c file’ and click Add as shown in the following image. Fig.32 Delete Startup_LPC18xx.s file and add the Startup_LPC18xx.s from the following path \CMSISv2p10_LPC18xx_DriverLib\Core\Device\NXP\LPC18xx\Source\Templates\ARM Step 10: Right click on Blinky_test to add a new group. Page | 24...
  • Page 25 USER MANUAL: LPC185x – Xplorer++ Fig.33 Step 11: Rename the ‘New Group’ to Drivers. Fig.34 Step 12: Double click on Drivers and search the driver files (in the sample examples downloaded folder from NGX website) the driver files will be found at following path: ‘..\CMSISv2p10_LPC18xx_DriverLib\src’...
  • Page 26 USER MANUAL: LPC185x – Xplorer++ Fig.35 Step 13: Create another new group and rename it as Main. Step 14: Click on New to create an empty document. Fig.36 Step 15: Implement the C instructions need to blink a LED on LPC185x-Xplorer++ and save it to main.c in ‘Blinky_test folder’...
  • Page 27 USER MANUAL: LPC185x – Xplorer++ (Note: Please refer Downloaded ‘Blinky’ example) Fig.37 Step 16: Double click on Main Group, and select main.c and click on Add Fig.38 Page | 27...
  • Page 28 USER MANUAL: LPC185x – Xplorer++ Step 17: Click ‘Target Options’, make following changes for ‘Internal SRAM’ as shown in the following image. Fig.39 For ‘External SPIFI Flash’, make following changes as shown in the following image. Page | 28...
  • Page 29 USER MANUAL: LPC185x – Xplorer++ Fig.40 Step 18: In ‘Output Options’ select ‘Create HEX File’ check box. Fig.41 Step 19: Click ‘C/C++ option’, in Define type ‘CORE_M3’, click on ‘Include paths’ to include Drivers header file path as shown in the following image. Page | 29...
  • Page 30 USER MANUAL: LPC185x – Xplorer++ Fig.42 Include all paths as shown in bellow image. Fig.43 Step 20: In ‘Asm Option’, in Define type NO_CRP for assembly control symbols. Page | 30...
  • Page 31 USER MANUAL: LPC185x – Xplorer++ Fig.44 Step 21: In ‘Debug Option’, select ‘ULINK2/ME Cortex Debugger’ radio button and select ‘Load Application at Startup’ and ‘Run to main()’ check boxes, click on ‘Initialization File’: to select ‘Internal SRAM.ini file’, select ‘Internal SRAM.ini file’ and click Open as shown in the following image. Fig.45 Page | 31...
  • Page 32 USER MANUAL: LPC185x – Xplorer++ For ‘External SPIFI Flash’, make following changes as shown in the following image. Fig.46 (Note: The ‘ini file’ will found at following path: ..\Blinky\Keil) Step 22: In ‘Utilities Option’, select ‘Use External Tool for Flash Programming’. Fig.47 For ‘External SPIFI Flash’, select ‘Use Target Driver for Flash Programming’...
  • Page 33 USER MANUAL: LPC185x – Xplorer++ the existing programing algorithm and click Add select ‘LPC18xx/43xx S25FL032 SPIFI Flash algorithm’ as shown in the following image. Fig.48 Step 23: In ‘Debug Option’, click on Edit... the ‘Internal SRAM.ini file’ will open in editor and OK. Fig.49 Page | 33...
  • Page 34 USER MANUAL: LPC185x – Xplorer++ For ‘External SPIFI Flash’, click on Edit... the ‘SPIFI 32MB Debug.ini file’ will open in editor and click Fig.50 Step 24: Give the correct ‘.axf file’ path in ‘Internal SRAM.ini file’ and file name should be same as shown in the following image.
  • Page 35 USER MANUAL: LPC185x – Xplorer++ Fig.51 For ‘External SPIFI Flash’, Give the correct ‘.axf file’ path in ‘SPIFI 32MB Debug.ini file’ and file name should be same as shown in the following image. Fig.52 Step 25: Click on ‘Build (F7)’ to build a blinky_test project, the build should be error free. Page | 35...
  • Page 36 USER MANUAL: LPC185x – Xplorer++ Fig.53 Step 26: Click on Debug -> ‘Start/Stop Debug Session’. Fig.54 Step 27: Click on ‘Run (F5)’, on LPC185X-Xplorer++ board the LED4 and LED5 starts blinking. Page | 36...
  • Page 37 USER MANUAL: LPC185x – Xplorer++ Fig.55 Step 28: Click on LOAD to download the Blinky_test.axf file into flash. Reset the board then the LED4 and LED5 starts blinking. Fig.56 Page | 37...
  • Page 38: Executing The Sample Project In Keil

    USER MANUAL: LPC185x – Xplorer++ 3.2 Executing the sample project in KEIL Please note that the sample programs are available once the product is registered. Steps to execute the sample project in ‘Internal SRAM’: Step 1: Open project folder. Step 2: Open project_name.uvproj file (Example: Blinky.uvproj.) Fig.57 Step 3: This launches the IDE and double click on ‘Main.c file’, click on build, build must error free.
  • Page 39 USER MANUAL: LPC185x – Xplorer++ Step 4: Click Run (F5) to execute from the ‘Internal SRAM’, two LED’s (LED4 and LED5) on LPC185X- Xplorer++ should blink. Steps to execute the sample project in ‘External Quad Flash’ (SPIFI 32MB Debug): Step 1: Select ‘SPIFI 32MB Debug Option’ and click on build as shown in the following image. Fig.59 Step 2: The program can be debugged from the flash by clicking Debug ->...
  • Page 40: Creating Bin File

    USER MANUAL: LPC185x – Xplorer++ Fig.60 4.0 Creating bin file Follow the below steps to create bin file. Step1: Click on “Target Options”, Select “User” option, select Run #1 and type the format “fromelf --bin -o "$L@L.bin" "$L@L.axf" then click OK as shown in the following image. Fig.61 Step 2: Build the program as shown in the following image.
  • Page 41: Lpc185X-Xplorer++ Programming

    USER MANUAL: LPC185x – Xplorer++ Fig.62 We can find the bin file in the FLASH folder of the project (Blinky\Keil\FLASH) Fig.63 5.0 LPC185x-Xplorer++ Programming 5.1 Programming options LPC185x-Xplorer++ can be programmed using the Coflash and ColinkEx Page | 41...
  • Page 42: Programming Lpc185X-Xplorer++ Using Coflash And Colinkex

    USER MANUAL: LPC185x – Xplorer++ 5.1.1 Programming LPC185x-Xplorer++ using Coflash and ColinkEx Connect one end of ‘USB AM to Micro B’ cable to LPC185x-Xplorer++ board and other end to computer and connect one end of ‘USB AM to Micro B’ to ColinkEx and other end to computer as shown in the following image.
  • Page 43 USER MANUAL: LPC185x – Xplorer++ Step 2: Click on Command, select the bin file you want to download as shown in the following image Fig.66 Page | 43...
  • Page 44 USER MANUAL: LPC185x – Xplorer++ Step 3: Click on Program to load the bin file to the target board as shown in the following image Fig.67 Once the programming is completed, reset the board to run the code. Page | 44...
  • Page 45: Restoring Lpc185X-Xplorer++ To Factory Defaults

    USER MANUAL: LPC185x – Xplorer++ 6 Restoring LPC185X-Xplorer++ to Factory Defaults 6.1 ULINK2/ME and KEIL To restore the factory defaults for the LPC185x-Xplorer++, User needs ULINK2/ME debugger to program the LPC185x-Xplorer++ to default firmware (i.e. All-In-One.uvproj). Steps to restore the factory defaults for LPC185X-Xplorer++: Step 1: Open All-In-One folder and double click on All-In-One.uvproj project.
  • Page 46: Schematic & Board Layout

    USER MANUAL: LPC185x – Xplorer++ 7 Schematic & Board Layout 7.1 Schematic This manual will be periodically updated, please check our website for the latest documents. The Board schematic and sample code are available after the product has been registered on our website. 7.2 Board layout Fig.70 Fig.
  • Page 47: Change History

    USER MANUAL: LPC185x – Xplorer++ 8 CHANGE HISTORY 8.1 Change History Changes Date (dd/mm/yy) Initial release of the manual 26/04/2018 Vivek Aggarwal Page | 47...
  • Page 48 DEMONSTRATION, and EDUCATION OR EVALUATION PURPOSES ONLY and is not considered by NGX Technologies Pvt. Ltd to be a finished end-product fit for general consumer use. Persons handling the product(s) must have electronics training and observe good engineering practice standards. As such,...
  • Page 49 NGX Technologies reserves the right to make changes to information published in this document, at any time and without notice, including without limitation specifications and product descriptions. This document replaces and supersedes all information supplied prior to the publication hereof.

Table of Contents