Home

- Element14

image

Contents

1. Configure Met a a u GPIO ClESFVE ue 1 lt lt LED1 BIT scu pinmux 0x2 o MD PUP FUNCO GPIO SetDir LED2 PORT 1 lt lt LED2 BIT 1 El 73 Drivers if GPIO ClearValue LED PORT 1 lt lt LED2 BII Main aa 3 Mai M3Frequency is automatically set wher 2 4 ME SysTick Config CGU GetPCLKFrequency Ct EI eadme M mn 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 as shown in the following image Use Simulator Limit Speed to Real Time TEE Runtor 1 tanh a5 v Run to main Initialization File Initialization File es ee I Restore Debug Session Settings Restore Debug Session Settings v Breakpoints v Toolbox v Breakpoints Toolbox V Watch Windows amp Performance Analyzer Watch Windows Memory Display M Memory Display CPU DLL Driver DLL Paramet SARMCM3 DLL E SARMCM3 DLL TE Dialog DLL Parameter Dialog DLL DCM DLL PUE TCM DLL ER Fig 9 9 www nextechnologies com User Manual LPC1830 Xplorer aS EA 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 1s as shown in the following image Options for Target Internal SRAM 28 Device Target Output Listing User CICH Asm Linker Debug Utilities Use Simulat
2. Main c SPIA 32MB Debug ini 1 2 FUNC void Setup unsigned int region i 3 region amp OxFFFFOOOO 4 SP RDWORD region Setup Stack Pointer 5 PC RDWORD region 4 Setup Program Counter amp WDWORD OxEOOOEDOS region Setup Vector Table Offset Register T 8 g 10 LADEE 11 v Debug Information Create Batch File W Create HEX File M Rmwse Infnrmatinn Fig 51 30 www ngxtechnologies com User Manual LPC1830 Xplorer iNT xa Step 25 Click on Build F7 to build a blinky project the build should be error free File Edit View Project Flash Debug Peripherals Tools OB dH amp 3 dA 9 c E ES W Target EENT Ey Startup 31 return c eA startup LPC18xx s 32 0 f system LPCI amp xx c 2 94 ifdef DEBUC H ane 95 FARER kkk kkk es H Main 96 brief F E v whe 8 Gparam in gg dnaram inl Fig 52 Step 26 Click on Debug gt Start Stop Debug Session Peripherals Tools SVCS Window Hi LE EY S E3 W Tarod Rer Reset CPU Project 7T ME i Run F5 Elm Startup Step Fil Re startup LPC18xx s 2 system LPCl amp xx c Step Over F10 fg Drivers Step Out Ctrl F11 H Main 1 Run to Cursor Line Ctrl F10 gt Show Next Statement Fig 53 31 www ngxtechnologies com User Manual LPC1830 Xplorer Step 27 Click on Run F5 on Xplorer board the LED D2 and D3 starts blinkin
3. 33 4 0 Restoring Xplorer to Factory Defaults uui iere sepu coto sk s nes ste soadabeiindes epo sia dedo aha koridoru Dodd ad eaa 35 MEIN SE dol 35 s OC Me MEIC Os ey OL 1o 0 MT 36 ILO HC UA 11C casecasacecateaneeemue uc quueavesseansdeaetecascobnue TN 36 SPAN OAM NAY OUI NEUTRO 36 OU CPT INEIE TANS PONY qe 2T Oak Chan S ISTOTY estando dta dE Uum O soc evacaesuamiar PUO MD UM DU MU MdUDIdE 37 3 www ngxtechnologies com User Manual LPC1830 Xplorer TECHNOLOGIES 1 0 INTRODUCTION This document is the User Manual for LPC1830 Xplorer a cost effective evaluation platform for NXP s LPC18xx 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 Before proceeding further please refer the Quick Start Guide for Xplorer features Xplorer Unboxing and Xplorer verification Kindly refer to the product page for the latest information Note To restore the Factory Default for LPC1830 Xplorer Board kindly refer to section 4 0 4 www ngxtechnologies com User Manual LPC1830 Xplorer Na 2 0 LPC1830 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
4. C C Aem Linker Debug Utities Conditional Assembly Control Symbols Define c Undetine Language Code Generation Split Load and Store Multiple Read Only Position Independent Read Write Position Independent l Thumb Mode cpu Cortex M3 g apcs interwork pd MICROLIB SETA 1 I C KeiARMSRV3T Inc C Keil SARMSCMSISInclude I C KeilsARM IncSNAXPNLPCTExx pd NO CRP SETA 1 ist Ist xref 26 www ngxtechnologies com User Manual LPC1830 Xplorer iNT xa 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 z RRR RRR RRR RR RRR sm Linker Debug iities ngs se ULINK2 ME Cortex Debugger Settings KA Select Target Debugger Initialization File ad Application at Startup File nye Hp lt lt pc4330 Xplorer Keil Blinky Search Blink zu Organize v New folder d fill e cn en A OT Name Date modified Tos v Breakpoints I Toolbox is V Watch Windows Internal SRAM ini 09 04 2012 PM 01 INI File Memory Display BE Desktop Driver DLL Parameter A SARMCM3 DLL MPU Dialog DLL Parameter 1 TCM DLL pCM4 Cancel Defaults Fig 44 For External S
5. agreement click the check box and click Next Setup MDK ARM V4 22 License Agreement KE L Please read the following license agreement carefully Tools by ARM To continue with SETUP You must accept the terms of the License Agreement To accept the agreement click the check box below END USER LICENCE AGREEMENT FOR MDK ARM THIS END USER LICENCE AGREEMENT LICENCE IS A LEGAL AGREEMENT BETWEEN YOU EITHER A SINGLE INDIVIDUAL OR SINGLE LEGAL ENTITY AND ARM LIMITED CARM FOR THE USE OF THE SOFTWARE ACCOMPANYING THIS LICENCE ARM IS ONLY WILLING TO LICENSE THE SOFTWARE TO YOU ON CONDITION THAT YOU ACCEPT ALL OF THE TERMS IM THIS LICENCE BY CLICKING AGREE OB BY INSTALLING OR OTHERWISE USING OR COPYING el uVisiond Setup Back ew gt ten Fig 3 6 www nextechnologies com User Manual LPC1830 Xplorer Step 4 Provide the destination path and click on Next Setup MDK ARM V4 Folder Selection S IKEIL Select the folder where SETUP wall install files Tools by ARM SETUP will install pvisiond in the following Folder To install ta this folder press Nest To install to a different folder press Browse and select another folder Kal p isiond Setup Fig 4 Step 5 Fill your personal information and click on Next Setup MDK ARM V4 23 S KEIL Please enter your information Tools by ARM Please enter your name the name of the company For whom you work and your E mail add
6. Downloaded LPC1830_Xplorer_Blinky example Edit View Project Flash Debug Peripherals Tools SVCS Window Help To PE EON n Name Date modified Type 3 Librari LPC4330 Xplorer Blinky plg 07 06 2012 PM 04 PLG File ries s 3 po ts LPC4330_Xplorer_Blinky uvproj 07 06 2012 PM 04 UVPROJ F ocumen cs r S LPC4330 Xplorer Blinky Target1 dep 07 06 2012 PM 04 DEP File usic asm startup LPC43xx s 13 03 2012 AM 10 Assemble i Pictures z Videos A Nagaraj M Computer th Network File na Save as type a Hide Folders Fig 37 23 www nextechnologies com User Manual LPC1830 Xplorer Na Step 16 Double click on Main Group and select Main c and click on Add Mein 42 define LED2 BIT 12 LEDUSB Look in Blinky Ex Eg Name E Date modified Type 07 06 2012 PM 04 C File Type File Size 4 05 KB Date modified 07 06 2012 PM 04 46 Fig 38 Step 17 Click Target Options make following changes for Internal SRAM as shown in the following image Options for Target Target 1 sss sss Device Output Listing User C C Asm Linker Debug Utilities NXP founded by Philips LPC1830 Stal MHz 12 0 perating system one SY Use Cross Module Optimization System Viewer File Sfr se MicroLIB Code Generation T Big Endian SFDNXP LPC1 amp 8oLPCT amp o SFR www ngxtechnologies com User Manual LPC1830 Xpl
7. PIFI Flash make following changes as shown in the following image 2s S Asm Linker Utilities Setti 3 v Setti ings se ULINK2 ME Cortex Debugger ings ad Application at Startup EA Select Target Debugger vlc File 9 Initialization File k JA m punc Xplorer Keil Blinky v gt L 5 i 4 Restore Debug Session Settings Organize v New folder v Breakpoints v Toolbox Ar Favorites Date modified 3 i SB ai ao ee 07 06 2012 PM05 INI File Memory Display RE Desktop d f SPIFI 32MB Debug ir ini b 08 06 2012 PMO1 INIFile a Libraries Driver DLL Parameter E Documents SARMCM3 DLL MPU d Music i Pictures Videos cuu pCM4 B Nagaraj m Computer th Network iT Cancel Defaults Control Panel 788a Jl m File name SPIFI 32MB Debug ini v Ini Files ini Dialog DLL Parameter Open 3 Cancel j g Fig 45 Note The ini file will found at following path LPC1830_Xplorer_Blinky Keil 27 www ngxtechnologies com User Manual LPC1830 Xplorer Step 22 In Utilities Option select Use External Tool for Flash Programing EJ Options for Target Target 1 M Device Target Output Listing User C C Asm Linker Debus Cites J r Configure Flash Menu Command Use Target Driver for Flash Programming ULINK2 ME Cort
8. SB Serial and Power excluding the GPIO ports Any external connection made to the GPIO ports may alter the EMC behavior Usage of this device under domestic environment may cause unwanted interference with other electronic equipment s User is expected to take adequate measures The device is not intended to be used in and end product or any subsystem unless the user re evaluates applicable directive conformance 2 www ngxtechnologies com User Manual LPC1830 Xplorer TECHNOLOGIES Table of Contents MUN RCA COIN 4 2 0 LPC1830 Xplorer Development Tool Setup cccceccccccccsssssssseecccceccceeeessecceccceesaeesseseceesesseaaeaaseeeeeess 5 Ba UCINE ONE ana EE e E EE EERIE E EA E EEE E E E 2 2 2 Installation amp Configuration of KEIL software eeeeeeeesssseeeeeeennnnneneenenn nnne nennen D 2 9 Configuration or ULINKZ ME Deb Ser coe ct toco ta vo kosou ooo k non 9 24 Connounne External Quad Flas deine oie evuideusi cod estia r v venas cua doo 10 2 5 Setup for ULINK2 ME and LPC1830 Xplorer Board cece cccssssseseecceeeeeeeaeeeseeseeeeeeeaeeeeeees 12 3 0 LPC1830 Xplorer firmware Development sesseseeeeeeeeeeeeeeee nnne eene nnne enne nnns 17 3 1 Creating the sample Blinky project in KEIL usce ioci da sasi or co se ROe S DRM cerea u Rex Pu enaiee 17 3 2 Executing the sample project in KEIL 2 23 re h uza hk b ln k n Eo ME PED drea ike Dn kn E o Das
9. Target Output Listing User Ice Hm rin om ey Configure Hih Mena Cranmand T Use Target Driver for Possis Proorae Fig 12 Step 2 Select Update Target before Debugging check box click on Settings Options and in Cortex M Target Driver setup click add and select LPCI8xx 43xx S25FL032 SPIFI programing algorithm and click add SS nm US Coe Aam ute ce TEER Corfigure Flash Menu Command Use Target Deve for Rash Prog Cortex M Target Driver Setup Debug Trace Rash Dowrioad Download Function C Eme FU Chip W Program Ene Sedom V Vety C Dont Ere Root and Rn p ii sti Pyogrsmmeg ko m HH HUE Fig 13 Click OK to complete the ULINK2 ME Debugger configuration 11 www ngxtechnologies com User Manual LPC1830 Xplorer a EA 2 5 Setup for ULINK2 ME and LPC1830 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 LPC1830 Xplorer Board 2 USB AM to Micro B cable Xplorer 10 pin Cable USB AM to Micro B cable Fig 14 Steps to setup the ULINK ME and LPC1830 Xplorer Board Note Please refer keil knowledgebase article for connecting ULINK2 ME 10 pin ribbon cable to NGX Xplorer Step 1 Connect one end of 10 pin ribbon cable to ULINK ME 10 pin box header as show in the following image Fig 15 12 www ngxtechnologies c
10. User Manual LPC1830 Xplorer LPC1830 Xplorer aaa aa eri 9 a Rite is ei 7 4 m a t Designed by NGX ond nNxp R23 www ngxtechnologies com User Manual LPC1830 Xplorer TECHNOLOGIES About NGX Technologies NGX Technologies is a premier supplier of development tools for the ARM7 ARM Cortex MO 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 MO M3 amp 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 No 216 5th main Road R P C Layout Vijayanagar 2nd Stage Bangalore 560 104 Phone 91 80 40925507 email sales ngxtechnologies com CE certification NGX Technologies LPC1830 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 U
11. and debugger The following sections will explain the setup for KEIL and ULINK2 ME as the IDE and debugger respectively 2 2 Installation amp Configuration of KEIL software The Installation of KEIL MDK ARM V4 23 software is explained below Step 1 Open the KEIL setup E c Computer Mew Volume F az i Organize v Open Burn New folder r Favorites BE Desktop Mim NonTechni Technical MDK i gu as administrato E Recent Places cal un as adrministratar Troubleshoot compatibility Libraries 1 Zip b E Documents V Select Left File for Compare d Music Y TortoiseSVN i Pictures E Videos Add to archive SS Addto MDK423 rar M Computer Compress and email 05 C Compress to MDK423 rar and email E DVD RW Drive D N Pin to Taskbar i ca New Volurne F Fin to Start Menu Restore previous versions ig Network Send to www ngxtechnologies com User Manual LPC1830 Xplorer Step 2 Click on Next Setup MDK ARM V4 2 Welcome to Keil p ision KE L Release 12 2011 Tools by ARM This SETUP program installs MDK ARM v4 23 This SETUP program may be used ta update a previous product installation However vau should make a backup copy before proceeding It i recommended that you exit all Windows programs before continuing with SETUP Follow the instructions to complete the product installation Kel p isiond Setup Fig 2 Step 3 To accept the
12. ash Sut LM3So x 8kB Flash On chip Flash FF Te FL LM Fhox 128kB Flash On chip Flash LM4Frox 256kB Flash On chip Flash LOK OI LM4Fox 32kB Flash On chip Flash CABE 7 EXE cp 28 www nextechnologies com Na User Manual LPC1830 Xplorer TECHNOLOGIES Fig 47 Step 23 In Debug Option click on Edit the Internal SRAM ini file will open in editor and OK r T Options for Target Target a Device Target Output Listing User C C Asm Linker Cebu Utities Settings Use ULINK2 ME Cortex Debugger Settings Run to maint jw Run to main Use Simulator Limit Speed to Real Time Iv Load Application at Startup Initialization File intemal SRAMini 0000 KE Restore Debug Session Settings v Breakpoints Toolbox v Watch Windows Memory Display Load Application at Startup initialization File FO Ej Edit Restore Debug Session Settings v Breakpoints v Toolbox v Watch Windows amp Performance Analyzer v Memory Display Driver DLL Parameter SARMCM3 DLL MPU CPU DLL Parameter E ARMCM3 DLL mpu Dialog DLL Farameter Dialog DLL Parameter pemo ew HD ew Cancel Defauts Help Fig 48 For External SPIFI Flash click on Edit the SPIFI 32MB Debug ini file will open in editor and OK kA Options for Target Target 1 o M Device Target Output Listing User C C Asm Li
13. eating the sample Blinky project in KEIL added 37 www nextechnologies com User Manual LPC1830 Xplorer TECHNOLOGIES About this document Revision History Version V1 2 author Nagaraj Baddi Company Terms amp Conditions Legal NGX Technologies Pvt Ltd provides the enclosed product s under the following conditions This evaluation board kit 1s intended for use for ENGINEERING DEVELOPMENT DEMONSTRATION and EDUCATION OR EVALUATION PURPOSES ONLY and 1s 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 the goods being provided are not intended to be complete in terms of required design marketing and or manufacturing related protective considerations including product safety and environmental measures typically found in end products that incorporate such semiconductor components or circuit boards This evaluation board kit does not fall within the scope of the European Union directives regarding electromagnetic compatibility restricted substances RoHS recycling WEEE FCC CE or UL and therefore may not meet the technical requirements of these directives or other related directives The user assumes all responsibility and liability for proper and safe handling of the goods Further the user indemnifies NGX Technologies from all claims arising from t
14. ex Debugger Command Arguments Run Independent Fig 46 For External SPIFI Flash select Use Target Driver for Flash Programing as ULINK2 ME Cortex Debugger and select Update Target before Debugging check box then click Setting Option remove the existing programing algorithm and click Add select LPCI8xx A3xx S25FL032 SPIFI Flash algorithm as shown in the following image gt u wE EJ Options for Target Target 1 9 S LEI Device Target Output Listing User C C Asm Linker Debus ine m Configure Hash Menu Command e Target Driver for Flash Programming ULINK2 ME Cortex Debugger v stings A date Target before Debugging Init File J T ez Cortex M Target Driver Setup C Use Extemal Tool fo Debug Trace Flash Download Command Download Function gt r RAM for Algorithm Arguments L ap Erase Full Chip v Program ant a Erase Sectors v Verify Star 0x10000000 Size 0x8000 4 Runi C Donot Erase Reset and Run m Programming Algorithm Description Device Type HT32 Series Flash On chip Flash HT32 Series Flash Options On chip Flash K8P5615UQA Dual Flash Ext Flash 32 bit LM3So x 128kB Hash On chip Flash LM3So 16kB Hash On chip Hash LM3So x 256kB Hash On chip Hash LM3So 32kB Flash On chip Hash LM3So x 384kB Flash On chip Flash LM3Sox 512kB Hash On chip Flash C wi LM3Sxx 64kB Flash On chip Fl
15. g File Edit View Project Flash Debug Peripherals Tools SVCS Window Help Og ma s lt a 2 nA A E JE K A ostat Em g rh ak e v gt ua alel 4 3 8 2 m return c entry _ aeabi uldivmod 10x10001552 E92D5FFO PUSH 114 r12 1r 10x10001556 4605 MOV r5 r0 10x10001558 2000 MOVS r0 0x00 u EJ Mainc heap area and initialize and copy code and dat toolsets the entry point is through start file and that startup code will setup stacks a int main void return c entry ifdef DEBUG RRR k k k k o RRR RE RERRERRERREREEREERERRERREREE SR ma Fig 54 32 www nextechnologies com User Manual LPC1830 Xplorer iNT xa 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 LPC1830 Xplorer Blinky uvproj 3 a MA QU TE x LPC1830 Aplorer Blinky Keil v search e Keil Organize T Open Burn New folder a LH Favorites Internal SRAM Edit with HHD Hex Editor Meo EE Desktop Internal SRAM ini 7 Zip M Select Left File for Compare LPC1830 Xplorer Blinky uvopt Git Init Here LY LPC1330 Xplorer Blinky uvproj Git Bash LPC1830 Xplorer Blinky Internal ui Edit with Notepad pen wi
16. he handling or use of the goods Due to the open construction of the product it is the user s responsibility to take any and all appropriate precautions with regard to electrostatic discharge EXCEPT TO THE EXTENT OF THE INDEMNITY SET FORTH ABOVE NEITHER PARTY SHALL BE LIABLE TO THE OTHER FOR ANY INDIRECT SPECIAL INCIDENTAL OR CONSEQUENTIAL DAMAGES NGX Technologies currently deals with a variety of customers for products and therefore our arrangement with the user is not exclusive NGX Technologies assumes no liability for applications assistance customer product design software performance or infringement of patents or services described herein Please read the User s Guide and specifically the Warnings and Restrictions notice in the User s Guide prior to handling the product This notice contains important safety information about temperatures and voltages No license is granted under any patent right or other intellectual property right of NGX Technologies covering or relating to any machine process or combination in which such NGX Technologies products or services might be or are used 38 www ngxtechnologies com User Manual LPC1830 Xplorer Nt xa TECHNOLOGIES Disclaimers Information in this document is believed to be reliable and accurate However NGX Technologies does not give any representations or warranties expressed or implied as to the completeness or accuracy of such information and shall have
17. in to 10 pin adapter as shown in the following image 14 www ngxtechnologies com 15 User Manual LPC1830 Xplorer Step 2 Connect other end of 10 pin ribbon cable to 10 pin box header of the LPC1830 Xplorer board as shown in the following image Fig 20 Step 3 Now connect the ULINK2 20 pin cable to 20 pin to 10 pin adapter as shown in the following image SJKEIL ULINK2 Dengred with Regi Time Library E 6643646108614 V Fig 21 www ngxtechnologies com User Manual LPC1830 Xplorer TATA Step 4 Connect one end of USB AM to Micro B cable to LPC1830 Xplorer board and other end to computer connect one end of USB type B to ULINK2 and other end to computer as shown in the following image RUN _ COM i USB pti Fig 22 Step 5 The setup is now ready to be used for development with KEIL IDE and ULINK2 16 www nextechnologies com User Manual LPC1830 Xplorer 3 0 LPC1830 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 ee eee Pett Fite for Compare Troubleshoot compatibility Open file location R TortoiseSVN a Run as administrator Fig 23 Step 2 Click on Project gt New uVision Project as show below File Edit View Flash Debug Peripherals Tools SVCS 1 wA New M
18. itch twice to run program from External Quad Flash the two LED s D2 and D3 should start blinking on Xplorer File Edit View Project Flash Debug Peripherals Tools SVCS Window dl a lt EU cx LE g SPIFI32MB Debug v Project t4 Download Download code to flash memory p E g SPIFI 32 MB Debug n Y eee eee ee eee ee H Startup 2 Id Gpio LedBlinky c E74 CMSIS CM3 gH fie HA iiss 7 Brile Gpio LedBlinky c aves Main 5 brief This example des Pog Mai amp version 1 0 _ Ee Mainc 7 date 02 June 2011 Er Readme 8 Gauthor NXP MCU SW Appli ius abstract txt g 10 Copyright C 2011 NXP 5 11 All rights reserved 12 13 Ee Eee AAA AAA Fig 58 34 www ngxtechnologies com User Manual LPC1830 Xplorer 4 0 Restoring Xplorer to Factory Defaults 4 1 ULINK2 ME and KEIL To restore the factory defaults for the Xplorer User needs ULINK2 ME debugger to program the Xplorer to default firmware i e LPC4330 Xplorer PeripheralTest uvproj Steps to restore the factory defaults for Xplorer Step 1 Open LPC1830 Xplorer Default Setting folder and double click on LPC1830 Xplorer PeripheralTest uvproj project e Computer Local Disk F Ipcl830 Xplorer Keil LPC1830 Xplorer Default Setting Organize T Include in library Share with T Burn New folder Favorit Name LPC1830 Xplorer PeripheralTest axf ur Desktop
19. lder and Add File to Project 2 j a el F xg Fig 29 Step 8 Rename the Source Group1 to Startup File Edit View Project Flash Debug Peripherals Tools 5V05 Window DO dd an c us AUR zm Fig 30 Step 9 Double click on Startup o Group Startup a _ Name Date modified Type No items match your search i mr Ml b wa JANO Files of type C Source file c Close Fig 31 20 www nextechnologies com User Manual LPC1830 Xplorer Nixa Step 10 Search system LPCl xx c file in the sample examples downloaded folder from NGX website the file will be found at following path CMSISv2p10_LPC18xx_DriverLib Core Device NX P LPC18xx Source Templates select system LPC18xx c file and click Add as shown in the following image Add Files to Group Startup Type 25 05 2012 AM 10 File fo 25 05 2012 AM 10 File fo 25 05 2012 AM 10 File fo 10 05 2012 PM 04 k File name system LPC18occ T Ad I Files of type c Source file c Close Fig 32 Step 10 Right click on Target to add a new group fex K Options for Target Target 1 Open File Open List File Open Map File Inm EI Translate File E Stop build pe MER ac NE Add Files to Group Remove Item e Manage Components iV Show Include File Dependencies Fig 33 2l www ngxtechnologies com User Manual LPC1830 X
20. m PCTIRSDPL ER ERE n pEEMUUS C 0 7c t Libraries P v LPC1830 Xplorer PeripheralTest uvproj EE 0nnoooempslnttl Documents Fig 59 Step 2 Click on LOAD the LPC1830 Xplorer PeripheralTest axf will flash on to SPIFI Flash Now RESET twice to restore the Xplorer to factory default p D d lsrdlocles PRAR FEE R D aom Jaslalo 000E 3 cBBo Gorss FR AS H SPIH 32M8 Debug Fig 60 35 www ngxtechnologies com User Manual LPC1830 Xplorer TATA 5 0 Schematic amp Board Layout 5 1 Schematic This manual will be periodically updated but for the latest documentations 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 5 2 Board layout J4 A dg CUTE EH aan vegecscascnsoceet eas eee m ais NE M 700000000000 0000000000000 00 HJ Designed by NGX and NXP SILKSCREEN TOP SIDE o R26 mu o Meine U mum D Pad ww 2 c22 s z B000000000000000000000000900 i e rel zam a m a D w 36 www ngxtechnologies com User Manual LPC1830 Xplorer 6 0 CHANGE HISTORY 6 1 Change History Rev Changes Date dd mm yy By Initial release of the manual 29 03 2012 Ashwin Athani 1 1 e Added section for Restoring 10 04 2012 Nagaraj Baddi Xplorer to factory defaults in KEIL 1 2 e The Keil User Manual 08 06 2012 Nagaraj Baddi separated e Cr
21. nker 2003 uices Use Simulator Settings Use ULINK2 ME Cortex Debugger Settings Limit Speed to Real Time Aun to main Load Application at Startup Initialization File Restore Debug Session Settings v Breakpoints v Toolbox v Watch Windows amp Performance Analyzer W Memory Display CPU DLL Farameter SARMCM3 DLL Pu Parameter Dialog DLL Load Application at Startup I Run to main Initialization File XSPIFI 32MB Debug jini Be Restore Debug Session Settings Breakpoiri M Toolbox v Watch Windows Iw Memory Display Parameter z ARMCM3 DLL MPU ale Parameter www ngxtechnologies com User Manual LPC1830 Xplorer iNT xa 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 1 2 IFUNC void Setup unsigned int region 3 region OxFFFFOOOO 4 SP RDWORD region Setup Stack Pointer 5 PC RDWORD region 4 7 Setup Program Counter 6 WDWORD OxEOOOEDOS region Setup Vector Table Offset Register 1 H 8 S LOAN LE CREMENTAL 10 Setup BEE 11 Iv Debug Information Create Bate Create HEX File C Create Library gt LPC1830 Xplorer Blinky LIB Fig 50 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
22. no liability for the consequences of use of such information 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 Trademarks All referenced trademarks product names brands and service names are the property of their respective owners 39 www nextechnologies com
23. om User Manual LPC1830 Xplorer Step 2 Connect other end of 10 pin ribbon cable to 10 pin box header of the LPC1830 Xplorer board as shown in the following image Fig 16 Step 4 Connect one end of USB AM to Micro B cable to LPC1830 Xplorer board and other end to computer and connect one end of USB AM to Micro B to ULINK ME and other end to computer as shown in the following image Fig 17 Step 5 The setup is now ready to be used for development with KEIL IDE and ULINK ME 13 www nextechnologies com User Manual LPC1830 Xplorer iNT xa Option B With ULINK2 debugger The 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 and 10 pin ribbon cable are not a part of the LPC1830 Xplorer package the user needs to buy separately To run the KEIL examples you will need the following and the image shows the each components ULINK2 ARM JTAG to Cortex JTAG Adapter 20 pin to 10 pin Adaptor 10 pin ribbon cable LPC1830 Xplorer Board One USB AM to Micro B cable 20 pin to 10 pin Xpl peu 10 pin Cable USB AM to Micro B cable Fig 18 Steps to setup the ULINK2 and LPC1830 Xplorer Board Note Please refer keil knowledgebase article for connecting ULINK2 ME 10 pin ribbon cable to NGX Xplorer Step 1 Connect the one of 10 pin ribbon cable to 20 p
24. or Cortex M Target Driver Setup Debug Trace Flash Download ULINK USB JTAG SW Adapter r SW Device MENE ULINK Version ULINKZ Device Family Cortex M Firmware Version V1 A AE ID CODE ha c Tw Manual Cor Fiquratin Device Name 7 x MESE 5 ree is mm P da Options Connect Normal Reset VECTRESET I Cache Code r Verity Code Download Reset after Connect Download to Hash Fig 10 Note The Cortex M4 can be programed using SW or JTAG while the Cortex MO is visible through JTAG port 2 4 Configuring External Quad Flash Step 1 Open the KEIL blinky project then click on the Target Options File Edit View Project Flash Debug Peripherals Tools SVCS Window Help lai a ne a e S GE JE JE 89 LCD_Seti s E S ES des SPIFI32MB Debug Qu Project Main r E J SPIFI 32MB Debug ee target options 1 lt lt LED1 BIT H E Startup scu pinmux 0x2 12 MD PUP FUNCO H A CMSIS CM3 GPIO SetDir LED2 PORT 1 LED2 BIT m 41 7 Drivers GPIO ClearValue LED2 PORT 1 lt lt LED2 BI E43 Main POD Ma M3Frequency is automatically set whe Fig 11 10 www ngxtechnologies com User Manual LPC1830 Xplorer Step 2 The window opens as shown in the following image click on Utilities and select ULINK2 ME Cortex Debugger A Optoes for Target SPIA IZME Debug Device
25. orer For External SPIFI Flash make following changes as shown in the following image E 4 gt EX Options for Target Target 1 sss Device Faroe output Using User C C Asm Linker Debug Utilities NAP founded by Philips LPC 1830 Code Generation Xtal MHz 12 0 Operating system None Use Cross Module Optimization Micro LIB Big Endian SFDANXPM PCT amp ocLPCT amp o SFR pm ROM Cel4000000 0k18000 Fig 40 Step 18 In Output Options select Create HEX File check box Options for Target Target 1 MMM ux vu ee e Name of Executable LPC1830 Xplorer Blinky Create Executable gt LPC1830 Xplorer Blinky v Debug Information 9o HEX File v Information Create Library LPC1830_Xplorer_Blinky LIB Fig 41 25 www ngxtechnologies com User Manual LPC1830 Xplorer 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 Options for Target Target 1 Device Target Output Listing User CEC Mom Linker Debug Utilities Preprocessor Symbols D gt Jo Blinky 4 CMSISv2p10 LPC18xx DriverLib gt k Core k docs_cmsis Fig 42 Step 20 In Asm Option in Define type NO_CRP for assembly control symbols Options for Target Target 1 eee Device Target Output Listing User
26. ould blink 33 www ngxtechnologies com User Manual LPC1830 Xplorer Na 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 Tools SVCS Window File Edit View Project Flash Debug Peripherals dl 4 A te Sj S 4 We srme nebu x AX dh i rfi q Lal aFIFI32MB Debug ee ee a ee ee ee ee ee ee ee ee eee E E E E Eck kock kok kok ko ok kk Help IE FE UH System 1 523 SPIFI 32MB Debug H E Startup 2 Id Gpio LedBlinky c 2011 06 02 H E CMSIS CM3 gH Uu H T ON 4 Bfile Gpio LedBlinky c Bq Main 5 brief This example describes how to use oG 6 Bversion 1 0 OBe Main c 7 date 02 June 2011 E Readme 8 Bauthor NXP MCU SW Application Team abstract txt g 10 Copyright C 2011 NAP Semiconductor 11 All rights reserved ER 13 eS eS SS SS E W amp cEC EC Am X E Ww ee eee eee ee EC UE E ee E EC E oo TH 14 Software that is described herein is for i 15 which provides customers with programming 16 products This software is supplied A5 15 Fig 57 Step 2 The program can be debugged from the flash by clicking Debug gt Start Stop Debug Session click Run F5 to execute from the External Quad Flash OR click on LOAD the executable is loaded into SPIFI 32MB flash then press RESET sw
27. plorer Nixa Step 11 Rename the New Group to Drivers DS o dH 448 9 6 3 Target 1 Bg Target 1 Ay Startup e startup LPC18xx s hus stem LPCl amp xx c r ST jrdlew Groupe 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 NCMSISv2p10 LPCI18xx DriverLibisre for blinky project we have to select Ipcl8xx_cgu c Ipc18xx_gpio c Ipc18xx_scu c Ipc18xx_timer c and Ipc18xx utils c driver files and click Add fem Drivers Add Files to Group Dri c Fae Date modified E Ipei8xx ssp c 24 02 2012 AM 11 epcl amp xx timer c 07 03 2012 PM 01 E Ipci8xx uart c 24 02 2012 AM 11 Ipcl8xx utils c 25 05 2012 PM 04 IpelBxx wwdt c 24 02 2012 AM 11 system LPCiBxx c 20 12 2011 PM 023 Fig 35 Step 13 Create another new group and rename it as Main 22 www nextechnologies com User Manual LPC1830 Xplorer Step 14 Click on New to create an empty document File Edit View Project Flash Debug Peripherals Tools SV Fig 36 Step 15 Implement the C instructions need to blink a LED on Xplorer and save it to Main c in Blinky folder as shown in the following image Note Please refer
28. ress First Mame Company Hare Max Technologies Pvt Ltd abci amp ngstechnalagies com keil pVision4 Setup KK lt Back P Next gt gt Cancel Fig 5 7 www ngxtechnologies com User Manual LPC1830 Xplorer Step 6 Click on Next Setup MDK ARM V4 23 File installation completed gt KE L Tools by ARM uvision Setup has installed all files successfully vw Retain current pvision configuration Add example projects to the recently used project list Freselect Example Projects Far Simulated Hardware i Kal pvisiond Setup Cancel Fig 6 Step 7 Keil u Vision4 23 setup is completed click Finish Setup MDK ARM V4 23 XJ Keil p ision4 Setup completed S KE i L MDK ARM v4 23 Tools by ARM p Vision Setup has performed all requested operations successfully Iw Launch Driver Installation ULINK Pro Driver V1 Show Release Mates Kel pVisiond Setup Fig 7 8 www nextechnologies com User Manual LPC1830 Xplorer iNT xa 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 File Edit View Project Flash Debug Peripherals Tools SVCS Window Help Dag 2A 9 o o S PR m dee IE I ab coser L5 p Ge pl 4 Internal SRAM Project n 7 1 553 Internal SRAM g Startup Sg CMSIS CM3
29. th SPIFI32MB Debug ini TortoiseSVN 3 PowerlsO Fig 55 Step 3 This launches the IDE and double click on Main c file click on build build must error free Click on Debug gt Start Stop Debug Session File Edit View Project Flash Debug Peripherals Tools SVCS Window Help a d m m T Te zm JE setom Ja SE Internal SRAM BENE d amp n E M Eg Internal SRAM 7 1 r TJ kk k kk H Startup 2 Id Gpio LedBlinky c 2011 06 02 HE CMSIS CM3 Bg iO B ig Drivers 4 file Gpio LedBlinky c aS Main 5 brief This example describes how to use GPIO to drive LEDs 6 version 1 0 QUE Bi 7 date 02 June 2011 E e Readme 8 Bauthor NXP MCU SW Application Team Ee r u abstract txt g 10 Copyright C 2011 NAP Semiconductor 11 Al rights reserved Em 13 LALAZAZZLZLZLLLILLLLLLLZLLRLLLLLLLLLLLLLZLLLLLLLLZLLAZLLAZLLILLLLLLLLLLLLLLLI 14 Software that is described herein is for illustrative purpos 15 which provides customers with programming information regard 16 products This software is supplied AS IS without any WATT 17 NAP Semiconductors assumes no responsibility or liability fo 16 use of the software conveys no license or title under any p 18 copyright or mask work right to the product NAP Semiconduc Fig 56 Step 4 Click Run F5 to execute from the Internal SRAM two LED s D2 and D3 on Xplorer sh
30. ts Name Date modified Type Siz a Music is i Pictures B Videos B Nagaraj jii Computer amp 0s c hitex DVD RW Drive ca Local Disk F ca Local Disk G 43 cn nes raa rn No items match your search Hide Folders Fig 26 18 www nextechnologies com User Manual LPC1830 Xplorer Step 5 Select the NXP found by Philips and search for the controller CPU Vendor Actel Device Toolset Data base Ee Lapis Semiconductor HA Luminary Micro FQ milandr M aLa NXP founded by Philips Fig 27 Step 6 Select LPC1830 controller and click OK pme p Select Device for Target Target I CPU Vendor NXP founded by Philips Device LPC183D Toolset ARM ARM Cartex M3 processor running at frequencies of up to 150 MHz Memory Protection Unit MPL Nested Vectored Intemupt Controller NVIC Mon maskable Interrupt MMI input JTAG and Serial Wire Debug serial trace ETM and ETB support Four reduced power modes Sleep Deep ssleep Power down Deep pow On chip memory 136 kB SRAM for code and data use Two 32 kB SRAM blocks with separate bus access 32 kB ROM containing boot code and on chip software drivers 32 bit One Time Programmable OTP memory 19 www nextechnologies com User Manual LPC1830 Xplorer Step 7 Click YES to copy startup file to project polder and add file to project a A Copy startup LPC18xx s to Project Fo
31. ulti Praject Workspace AE Open Project Project Close Project Export Manage Select Device for Target Remove Item I Options ETI m m d Fig 24 17 www ngxtechnologies com User Manual LPC1830 Xplorer TATA Step 3 Create a new folder in downloaded sample example folder and rename to Blinky and select Blinky folder click Open G je r Local Disk ff gt 1pc4330 Xplorer Keil Sx 5 Search pc4330 Xplorer Keil v iLv4 P po v New folder dz v a Libraries Name Date modified Type Documents x r Musi 07 06 2012 PM 04 File folder x 28 05 2012 AM 10 File folder es 5 pa i LPC4330 Audio 28 05 2012 PM 12 File folder B N sis 1 LPC4330 Xplorer Blinky 28 05 2012 AM 10 File folder agara WC j _ LPC4330_Xplorer_Default_Setting 28 05 2012 AM 10 File folder omputer 7 s LPC4330 Xplorer DualCore 28 05 2012 AM 10 File folder hitex DVD RW Dri di LPC4330 Xplorer Ethernet 28 05 2012 AM 11 File folder ibis LPCA330 Xplorer Extlnt 28 05 2012 AM 11 File folder ca Local Disk F S ST a S MN Mh File name O U Save as type Project Files uvproj v a Hide Folders tl Opn Fig 25 Step 4 Give a project name example LPC1830 Xplorer Blinky and click Save m e IG ON lt pe o ores Kel Bini Je o Organize v New folder Bec ow Documen

Download Pdf Manuals

image

Related Search

Related Contents

Kapitel 4 Installation und Anschlüsse  WAVE LINE KAYAK OWNER`S MANUAL  pronto 12 sw 3m - Horsch Maschinen  Sun Storage 2500-M2 Arrays Getting Started Guide  Gefen EXT-HDMI1.3-242 User's Manual  取扱説明書 ご使用前に必ず、ご確認ください  3. GESTION DE PROJET  Electrolux 502 D Ventilation Hood User Manual  3. Inscripción de deportistas  Surveyor 4a Instruction Manual  

Copyright © All rights reserved.
Failed to retrieve file