Home
- Element14
Contents
1. 23 8 startup LPC43xx s dg tette eee tete tede yes PRIVATE DEFINIT A E oe 41 define LED1 PORT 1 x 42 define LED2 BIT 12 LEDUSB H a Main 43 define LED2 PORT 1 44 45 prat k k k k RRR RRR RRR TH PRIVATE VARIABI 46 uint32 t msec 47 48 NE MAIN FUNCTION 50 LA A A k k d Sil 51 Qbrief Main program body 52 param in None 53 Qreturn int Fig 52 31 www ngxtechnologies com User Manual LPC4330 Xplorer Step 26 Click on Debug gt Start Stop Debug File Edit View Project Flash LJ Z al a fa a S Torge et 243 Target 1 Sen Startup ow EJ startup LPC43xx s ZJ system LPC43xx c u aig Drivers 2g Main 3 2 Step 27 Click on Run F5 on Xplorer board the LED starts blinking File Edit View Project Flash Debug Peripherals Tools Svcs PE m mt Session eripherals Tools Reset CPU Run Stop Step Step Over Step Out Run to Cursor Line Show Next Statement Breakpoints Insert Remove Breakpoint Fig 53 Window Help m 9 m im Ju IK Ds start SVCS Window F5 Fil F10 Ctri Fil Ctrl F10 Ctrl B F9 I PRIVAT Help jiz a LEDUSB LEDUSB PRIVAT Ema Co m o m Ex return c entry _ aeabi uldivmod 0x10001552 ES2D5FFO PUSH 10x10001556 4605 MOV 0x10001558 2000 4 ma Main c MOVS r4 ri2 1r r5 r0 ro 0x00 heap area and
2. g Readme GPIO CIEATVE ue A l scu pinmux 0x2 12 MD PUP FUNCO GPIO SetDir LED2 PORT 1 lt lt LED2 BIT 1 GPIO ClearValue LED2 PORT 1 LED2 BII J UJ LCD SetFr Configure Met a a u 1 lt lt LED1 BIT J M3Frequency is automatically set wher fSysTick Config CGU GetPCLKFrequency CC Fig 8 Step 2 The window opens as shown in the following image click on Debug and select the ULINK2 ME Cortex Debugger as shown in the following image Use Simulator Limit Speed to Real Time Load Application at Startup Ru Initialization File v Load Application at Startup v Run to main Initialization File Restore Debug Session Settings v Breakpoints v Toolbox v Watch Windows amp Performance Analyzer v Memory Display Restore Debug Session Settings V Breakpoints Toolbox Watch Windows M Memory Display CPU DLL Driver DLL SARMCM3 DLL E SARMCM3 DLL ET Dialog DLL Parameter Dialog DLL DCM DLL PUE TCM DLL ER Fig 9 www ngxtechnologies com User Manual LPC4330 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 kA Options for Target Internal SRAM 28 Device Taraet Output Listing User CICH Asm Linker Debug Utilities Us
3. project in KEIL added Setup for ULINK2 ME and LPC4330 Xplorer added 37 www nextechnologies com User Manual LPC4330 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
4. 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 LPC4330 Xplorer TATA Step 3 Create a new folder 1n downloaded sample example folder and rename to Blinky and select Blinky folder click Open Ed Create New Project il v4 9 KA Je amp Local Disk Kf gt Ipc4330 Xplorer Keil al Search lpc4330 Xplorer Keil v P Organize v New folder d v a Libraries Date modified ES Documents a Music Pictures B Videos A Nagaraj jE Computer amp OS C hitex DVD RW Drive ca Local Disk F a fi na ET MI 07 06 2012 PM 04 File folder TET 28 05 2012 AM 10 File folder LPC4330 Xplorer Audio 28 05 2012 PM12 File folder LPC4330 Xplorer Blinky 28 05 2012 AM10 File folder LPC4330 Xplorer Default Setting 28 05 2012 AM10 File folder Ji LPC4330 Xplorer DualCore 28 05 2012 AM 10 Filefolder LPC4330 Xplorer Ethernet 28 05 2012 AM 11 File folder LPC4330 Xplorer Extlnt 28 05 2012 AM11 File folder File name Save as type Project Files uvproj v a gt Hide Folders tl Opn D Fig 25 Step 4 Give a project name example LPC4330_Xplorer_Blinky and click Save Organize v New folder Documents Date modified Type a Music 3 i Pictures E B Videos B Nagaraj M Compute
5. Hm rin om ey Configure Hih Mena Cranmand T Use Target Driver for Possis Proorae Fig 12 Step 3 Select Update Target before Debugging check box click on Settings Option and then in Cortex M Target Driver Setup click add and select LPCI8xx A3xx S25FL032 SPIFI programing algorithm and click add Cortas M Targat Driver Setup Debug Trace Fash Dowrisad Download Function C Eme FU Chip V Progam re Grose Sectos W Verfy C DonmctErme Rest and Fun Prograewnng Aigorthen Fig 13 Click OK to complete the ULINK2 ME Debugger configuration 11 www ngxtechnologies com User Manual LPC4330 Xplorer iNT xa 2 5 Setup for ULINK2 ME and LPC4330 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 LPC4330 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 LPC4330 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 shown in the following image Fig 15 12 www ngxtechnologies com User Manual LPC4330 Xplorer Step 2 Connect other end of 10 pin ribbon cable to 10 pin box header of the LPC4330 Xplorer board as s
6. a 4 LN s spears HI IL me 2 f Ne JE KA Target1 Bs Startup startup LPC43xx s s s Fig 34 www ngxtechnologies com User Manual LPC4330 Xplorer TATA Step 12 Double click on Drivers and search the driver files in the sample examples downloaded folder from NGX website the driver files will found at following path CMSISvV2p10 LPC43xx DriverLibisre for blinky project we have to select Ipc43xx_cgu c Ipc43xx_gpio c Ipc43xx_scu c Ipc43xx timer c and Ipc43xx utils c driver files and click Add B system LPC43xx c dd A ee E pc 3xx dac c 01 E lpc4d3xx d 18 01 2012 PM 06 Cre L Ipc 3xx emc c 18 01 2012 PM06 CF E pc 3xx evrt c 01 T Ipc43 18 01 2012 PM 06 CF Ipe43x0 _gpdma c 18 01 2012 PM06 CF eU 27 03 2012 PMO04 CF lipet3mgpioc 20 03 2012 PMO CF Fig 35 Step 13 Create another new group and rename it as Main Step 14 Click on New to create an empty document File Edit s Project Flash Debug Peripherals Tools SVCS v Window m aw l E E Target 1 a Startup EJ startup LPC43xx s EM amp system LP 43x c fq Drivers Fig 36 23 www nextechnologies com User Manual LPC4330 Xplorer E 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 Downloaded LPC4330
7. 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 LPC4330 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 address Fi
8. od ka h uza d ko b ln k n l lana Dn kn ln 33 4 0 Restoring Xplorer to Factory Defaults uui iere sepu sval sk s nes nra soadabeiindes soe sia dedo aha koridoru odv 35 ds EEA S NE ai hs E STE sp lni 35 s TE MEIC Os bos Ney OU aaa ozon osn r o On oi ri aj 36 SM SUC 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 LPC4330 Xplorer TECHNOLOGIES 1 0 INTRODUCTION This document is the User Manual for LPC4330 X plorer a cost effective evaluation platform for NXP s LPC43xx dual core Cortex M4 and MO MCUs 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 LPC4330 Xplorer Board kindly refer to section 4 0 4 www ngxtechnologies com User Manual LPC4330 Xplorer Na 2 0 LPC4330 Xplorer Development Tool Setup 2 1 ULINK2 ME and KEIL NGX s MCU evaluation platforms are not coupled tightly with any
9. 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 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 Organize Open Burn New folder ca Computer New Volume E mE Fr Favorites MU Desktop E gp i um Technical MDK L7 arg aa Ey Recent Places ca Troubleshoot compatibility Libraries 1 Zip E Documents V Select Left File for Compare a Music TortoiseSVN i Pictures E Videos Add to archive SS Add to MDK423 rar M Computer Compress and email amp O5 C Compress to MDK423 rar and email E DVD RW Drive D M Pin to Taskbar ca New Volume F Pin to Start Menu Restore previous versions y nd Send to www ngxtechnologies com User Manual LPC4330 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 agreement
10. 5 brief This example describes how to use GPIO to drive LEDs 6 T 8 H E Startup H E CMSIS CM3 version 1 0 date 02 June 2011 Bauthor NXP MCU SW Application Team 10 Copyright C 011 NXP Semiconductor 11 All rights reserved 19 13 4 okckokock ee ee ee ko kok E ox kokok ok ok kckokok o ee ee eee kokoko ee ee ee ee ee ee ee ee 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 15 without any warr 17 NAP Semiconductors assumes no responsibility or liability fo 18 use of the software conveys no license or title under any np copyright or mask work right to the product NEP Semiconduc Fig 56 33 www nextechnologies com User Manual LPC4330 Xplorer iNT xa Step 4 Click Run F5 to execute from the Internal SRAM two LED s D2 and D3 on 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 Fee ton Vere Aaea fem Oebv Penoheam leo 1 01 Window Heb 349 a B e rie d ea Sar Qie Sal s A T oom sve ceo iz A d er ZA o i3 SPL IMB Debug 4 Bacup 2 startup LPC 4 ders ay TES CM 9 gyttern LACE hac Des ers u LLL g aj eto oe i Lic c 9 3 omm GIO Ci ORI 1 ra Must u M 5 Gpo Le
11. Blinky c 083 GPIO SetDir LED2 PORT 1 lt lt LED2 BIT 1 E3 Readme 084 GPIO ClearValue LED2 PORT i LED2 BIT ua abstract txt 10 086 M3Frequency is automatically set when SetClock BASE M3 087 SysTick Config CGU GetPCLKFrequency CGU PERIPHERAL M4CORE 088 089 while 1 090 Loop fo 091 msec 100 092 while msec 093 GPIO ClearValue LED1 PORT i LED1 BIT 094 msec 100 Fig 58 34 www nextechnologies com User Manual LPC4330 Xplorer Nixa 4 0 Restoring Xplorer to Factory Defaults 4 1 ULINK2 ME and KEIL To restore the factory defaults for the Xplorer user needs the 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 LPC4330 Xplorer Default Setting folder and double click on LPC4330 Xplorer PeripheralTest uvproj project Organize T Open Burn New folder x Favorites LPC4330 Xplorer PeripheralTest axf EE Desktop a Ao Libraries LU LPCA330 Xplorer PeripheralTestuvproj 9 1 E Documents X a Music i Pictures B Videos JB Nagaraj JE Computer Cli Network ES Control Panel Recycle Bin Desktop 4 n LPC4330 Xplorer PeripheralTest uvproj Date modified 11 04 2012 PM 07 07 HVision4 Project Size 279 KB Fig 59 Step 2 Click on LOAD the LPC4330 Xplorer PeripheralTest axf will flash on to External Quad Flash Now RE
12. RRR RRR RRR RC ROG IJ sm Linker Debug iities gs O ULINK2 ME Cortex Debugger w Settings KA Select Target Debugger Initialization File ad Application at Startup d om File Overs lt lt pc4330 Xplorer Keil Blinky ir ols Search B Organize v New folder r Restore Debug Session Settings MV Breakpoints v Toolbox Watch Windows v Memory Display Date modified Type Nam w Favorites 09 04 2012 PM 01 INI File WE Desktop Driver DLL Parameter i el SARMCM3 DLL MPU Dialog DLL Parameter TCM DLL pCM4 Cancel Defaults v Fig 44 21 www ngxtechnologies com User Manual LPC4330 Xplorer For External SPIFI flash make following changes as shown in the following image 2e Asm ce COxbvg ns Settings O ULINK2 ME Cortex Debugger Settings JE z m imail ad Application at Startup to MHA Select Target Debugger Initialization File moa Initialization File p EN earch Blinky Edit JE z i j wa d Restore Debug Session Settings e i i Breakpoints v Toolbox Date modified Y f IV Watch Windows Internal Sdn 07 06 2012 PM 05 INI File Iv Memory Display a d RE Desktop j __ SPIFI32MB Debug ini b 08 06 2012 PMO1 INI File al Libraries Driver DLL Parameter l 1 Documents SARMCM3 DLL MPU 2 Music i Pictures Vid Dialog DLL P
13. 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 LPC4330 Xplorer TECHNOLOGIES Table of Contents LOSTI TO COIN 4 2 0 LPC4330 Xplorer Development Tool Setup ccecceccccccccsssssseeecceceeeuaeesssecceeeeeeaaaeeseseeeeseeseaaaaseeeeeess 5 PARE ANNE E NE a i E ov kont notas kan 2 2 2 Installation amp Configuration of KEIL software eeeeeeeesseeseeeeennnnneneeennn nnne D 2 9 Configuration or ULINK2 ME Debug fer xcs iare ct radost Pre Poeno koh a ono EU Ux ERR ER k non 9 24 Conhounne External Quad Flas Merenge ced estia doct r o vvn 10 2 5 Setup for ULINK2 ME and LPC4330 Xplorer Board ccc eccccccccccsssseseseeeeeeeeeeaeeeeeeeeeeeeeeaeeeenees 12 3 0 LPC4330 Xplorer firmware Development c cc cceccccccccccceceeeesesecceeeeeeeaeeeeeeeeeeeeeeaeeesseeeeeeseeeaaaeenees 17 3 1 Creating the sample Blinky project in KEIL si cesccesesccostaacenccntuscasnenscecnetusauestaananerebueasenaanenetussass 17 3 2 Executing the sample project in KEIL ie sstu i snes ns
14. SET twice to restore the Xplorer to factory default Ki FiXplorer reless PC4330 Xplorer Example 0 Xplorer Default 30 Xplorer Test File Edit View Project Flash Debug Peripherals Tools SVCS Window Help O da lsaalocl s eaalFFeg a oom F34 Qlocoel s ET nee BA 42 U Project H3 SPI 32MB Debug Fig 60 35 www ngxtechnologies com User Manual LPC4330 Xplorer 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 BO RESET Re g D FE me a mili iH 1111 In u3 im FB2 itm oon e US n o s o 3 n ta 3 FB Feson g ee 1 TTE U TPlU EET IC IM 3o m East giae T ra Designed by NGX and NXP SILKSCREEN TOP SIDE Fig 61 R26 mm ua Da o 2D w w a 10 0000000000000000000000000 a a n r c JE 5 T 8 0 D w i 36 www ngxtechnologies com User Manual LPC4330 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 The Keil User Manual 08 06 2012 Nagaraj Baddi separated Creating the sample Blinky
15. Trace Flash Download Download Function g RAM for Algorithm Loap Erase Full Chip v Program en a Erase Sectors V Verify Star 0x10000000 SizeRlOx8000 4 C DonotErase Reset and Run Add Flash Programming Algorithm gt Programming Algorithm HT32 Series Hash On chip Flash HT32 Series Flash Options On chip Flash K8P5615UGA Dual Flash Ext Flash 32 bit LM3So 128kB Hash On chip Flash LM3So x 16kB Flash On chip Flash LM3So x 256k B Flash On chip Flash LM3So 32kB Flash On chip Flash LM3So x 384kB Flash On chip Flash LM3So x 512kB Hash On chip Flash LM3So x 64kB Hash On chip Hash LM3Sxa 8kB Hash On chip Hash LM4Pox 128kB Hash On chip Flash LM4Frox 256k B Flash On chip Flash LM4 Foc 32k B Hash On chip Flash Fig 47 Step 23 In Debug Option click on Edit the Internal SRAM ini file will open in editor and OK KA Options for Target Target 1 4 Device Target Output Listing User C Ce Asm Linker Debug p ilities C Use Simulator Settings Use ULINK2 ME Cortex Debugger v Settings Limit Speed to Real Time Load Application at Startup Run to maini MV Load Application at Startup Run to main Initialization File Initialization File O 77E a 7 1e Restore Debug Session Settings 1 r Restore Debug Session Settings v Breakpoints v Toolbox v Breakpoints v Toolbox Watch Windows amp Performance Analyzer Wat
16. User Manual LPC4330 Xplorer LPC4330 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 LPC4330 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 LPC4330 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
17. _Xplorer_Blinky example Edit View Project Flash Debug Peripherals Tools SVCS Window Help y aa 9 gt la S PRAN EE E ab ssa m NB 2 BA gem g E M Target 1 di M Save As pk eT Organize v New folder ect Eg Name Date modified Type i BE Desktop E a Libraries Eg Documents a Music i Pictures B Videos LPC4330 Xplorer Blinky plg 07 06 2012 PM 04 PLG File LPC4330 Xplorer Blinky uvproj 07 06 2012 PM 04 LPC4330 Xplorer Blinky Target 1 dep 07 06 2012 PM 04 DEP File asm startup_LPC43xx s 13 03 2012 AM10 Assemble A Nagaraj i Computer 2 Hide Folders Fig 37 Look in 4 Blinky E EX Eg Name Date modified 07 06 2012 PM 04 C File Type C File Size 4 05 KB Date modified 07 06 2012 PM 04 46 24 www ngxtechnologies com User Manual LPC4330 Xplorer Step 17 Click Target Option make following changes for Internal SRAM as shown in the following image Device Target Output Listing User C C Asm Linker Debug Utilties NXP founded by Philips LPC4330 Code Generation Xtal MHz 12 0 Use Cross Module Optimization i Big Endian System Viewer File Sfr se MicroLIB BigEnd SFDANXPNLPCA3oALPCA3oc SFR Floating Point Hardware Use FP None Read Only Memory Areas 4 r Read Write Memory Areas default off chip Start Size Startup default off chip Star
18. all claims arising from the 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 LPC4330 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 in
19. arameter B vi es TCM DLL pCM4 B Nagaraj m Computer th Network fal Cancel Defaults Control Panel lt File name SPIFI 32MB Debug ini v Ini Files ini Fig 45 Note The ini file will found at following path LPC4330_Xplorer_Blinky Keil Step 22 In Utilities Option select Use External Tool for Flash Programing EJ Options for Target Target i Device Target Output Listing User C C Asm Linker Debus imes J Configure Flash Menu Command Use Target Driver for Flash Programming ULIN K2 ME Cortex Debugger v Run Independent Fig 46 28 www nextechnologies com User Manual LPC4330 Xplorer Nixa 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 LPCl xx 43xx S25FLO32 SPIFI Flash algorithm as shown in the following image 7 z wS oc O RES EA Options for Target Target 1 X ERES Device Target Output Listing User C C Asm Linker Debus ines r Configure Hash Menu Command e Target Driver for Hash Programming ULINK2 ME Cortex Debugger f suos o date Target before Debugging Cortex M Target Driver Setup Init File C Use Extemal Tool fo Debug
20. ch Windows v Memory Display M Memory Display CPU DLL Parameter Driver DLL Parameter SARMCM3 DLL MPU SARMCM3 DLL MPU Dialog DLL Parameter Dialog DLL Parameter DCM DLL pcMa TCM DLL pcMa Fig 48 29 www nextechnologies com User Manual LPC4330 Xplorer For External SPIFI Flash click on Edit the SPIFI 32MB Debug ini file will open in editor and OK Step 24 Give the correct axf file path in Internal SRAM ini file and file name should be same as RA Options for Target Target T Device Target Output Listing User C C Asm Linker Debug Jutities C Use Simulator Settings Limit Speed to Real Time Use ULINK2 ME Cortex Debugger Settings Load Application at Startup Run to main Initialization File i Edit Restore Debug Session Settings v Breakpoints v Toolbox Watch Windows amp Performance Analyzer v Memory Display V Load Application at Startup v Run to main Initialization File ASPIFI 32MB Debug ini Restore Debug Session Settings v Breakpoints v Toolbox Iv Watch Windows V Memory Display CPU DLL Parameter SARMCM3 DLL MPU Dialog DLL Parameter DCM DLL pcMa Driver DLL Parameter SARMCM3 DLL MPU Dialog DLL Parameter TCM DLL pcMa Fig 49 shown in the following image 30 O oI Y t i Q nej FUNC void S
21. d file to project 20 Daal ETT 4 TIE PIE tana is SE startup LPCA3xxs Fig 30 www nextechnologies com User Manual LPC4330 Xplorer Step 9 Double click on Startup Date modified Type No items match your search a Files of type C Source file c Close Fig 31 Step 10 Search system LPC43xx c file in the sample examples downloaded folder from NGX website the file will found at following path CMSISv2p10_LPC43xx_DriverLib Core Device NX P LPC43xx Source Templates select system LPC43xx c file and click Add as shown in the following image aa ES Target 1 Bay Startup am startup_LPC43xx s Add Files to Group Startup Date modified Type 28 05 2012 AM 10 File fo 28 05 2012 AM 10 File fo 28 05 2012 AM 10 File fo 7995 2012 AM 11 CFile p Date modified 28 05 2012 AM 11 50 a A Files of type Ic Source file c Close Fig 32 21 www ngxtechnologies com User Manual LPC4330 Xplorer Step 10 Right click on Target to add a new group K Options for Target Target 1 Alt F7 1 Open File MEN Open List File Open Map File M Rebuild all target files Xj Build target F7 Translate File ES Stop build EE Add Files to Group Remove Item E Manage Components Show Include File Dependencies Fig 33 Step 11 Rename the New Group to Drivers 22 ee eee ee
22. dBseiry EM GP etDiri LE PORT 7 LED BIT FA Readrne 9 s earValcoei LI PORZT 1 cLED2 DIT ons A 086 Frequency is ettateticaltiy set vhod Sfetllo ci BASE MI N was called 087 SysTick ConfigicOG7 GetPCLKFrequency CGU PERIPHERAL MACORI Od o while on I on asec re while mse on SFO ClearValoe LEDAi PORT aED B 11 M asec z oe while msec 0E GPIO Cieazralze LED7 PORT ED Bit 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 switch 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 Help gUJr aal E E ia a menui a e e E C 33 PIFI 32MB Debug A d Project a 5 43 SPIFI 32MB Debug int c entry void Main Program E3 amp x Startup 073 o f startup LPC43xx s 074 SystemInit Ej amp g CMSIS CM3 075 CGU Init m E system LPCA3 c Ore Ex Drivers di Bii Ipcd3x cgu c 079 scu pinmux 0x2 11 MD PUP FUNCO P2 11 GPIO1 1 ORBE Ipc42xx gpio c 080 GPIO SetDir LED1 PORT 1 lt lt LED1 BIT 1 EJ Ipcdxx scu c 081 GPIO ClearValue LED1 PORT 1 lt lt LED1 BIT 5 3 Main 082 scu pinmux 0x2 12 MD PUP FUNCO P2 12 GPIO1 1 amp Gpio Led
23. e Simulator Use ULINK2 ME Cortex Debugger Cortex M Target Driver Setup Debug Trace Flash Download r ULIMK USB JTAG SW Adapter r SW Device Serial No EEE paap DALL 0x2BAD1477 ARM CoreSight SW DE ULINK Version ULINK2 Eh Device Family Cortex M Firmware Version vi 42 r Debug r Connect amp Reset Options r Cache Options r Download Options EE O ps Ims Connect Normal Reset VECTRESET v Cache Code a Verity Code Download F Reset ate Comed W Cache Memory Download to Hash l L 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 click on the Target Options File Edit View Project Flash Debug Peripherals Tools SVCS Window Help sud gt al 9 Project q 5 53 SPIF 32MB Debug H E Startup H E CMSIS CM3 H E Drivers Ej 3 Main 2 Marse if Fig 11 10 www ngxtechnologies com GPIO ClearValue LED2 PORT 1 lt lt LED2 BI M3Frequency is automatically set whe User Manual LPC4330 Xplorer Step 2 A 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 Target Output Listing User Ice
24. ep 2 Connect other end of 10 pin ribbon cable to 10 pin box header of the LPC4330 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 RUN COM USB S KEIL ULINK2 hn ARM Company Dengned with Rea Time Library Tv Sale M H i t Se oe i reyes ic r A M 4 f ALLI EE 634461614 ili Fig 21 15 www ngxtechnologies com User Manual LPC4330 Xplorer TATA Step 4 Connect one end of USB AM to Micro B cable to LPC4330 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 LPC4330 Xplorer 3 0 LPC4330 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 Multi Praject Workspace
25. er file path as shown in the following image Options for Target Target 1 5 Device Target Output Listing User Ce Don Linker Debug Utilities Preprocessor Symbols Y 4 j CMSISv2p10 LPC43xx DriverLib x wc im i aj gt k Core Jj docs cmsis docs TN driverlib JCAKeil ARM owse cif 2 Help LPC4330 Xplorer Audio 339 26 www nextechnologies com User Manual LPC4330 Xplorer E Fig 42 Step 20 In Asm Option in Define type NO CRP for assembly control symbols KA Options for Target Target 1 Device Target Output Listing User C C 4 r Conditional Assembly Control Symbols Language Code Generation Split Load and Store Multiple Read Only Position Independent Read Write Position Independent Thumb Mode No Wamings Include Paths Misc Controls Assembler cpu Cortex M4 g apcs intenwork pd MICROLIB SETA 1 I CAKeilARMNRV31Nnc A CKeil control ARM CMSIS include C Keil ARM Inc NXP LPC43x pd NO CRP SETA 1 ist Ist xref v Fig 43 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 x
26. etup unsigned int region region 4 OxFFFFO0000 _RDWORD region RDWORD region 4 WDWORD OxEOOOEDOS region Select Folder for Objects m Create Executable LPC4330_Xplorer_Blinky Setup Stack Pointer Setup Program Counter Setup Vector Table Offset Register Name of Executable j LPC4330_Xplorer_Blinky v Debug Information Create HEX File Fig 50 www ngxtechnologies com User Manual LPC4330 Xplorer Nixa 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 amp c e RAR SE I a sn Harla o o eam sa Target 1 i Xl EN i q SPIFI 32MB Debuc T 1 2 FUNC void Setup unsigned int region 3 region amp OxFFFFO000 o x 5 ne 4 SP RDWORD region i Senor x LARES Taget n 2 5 PC gt RDWORD region 4 6 WDWORD OxEOOOEDOS region Ii 8 9 LOAD LPC4330 Xplorer Blinky ax A Es um M A ROOT PI 10 Setup SS M ead 11 107 Debug intonation Bids V Create HEX File MV Browse Information C Create Library ALPC4330 Xplorer Blinky LIB Fig 51 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 SVCS Window Help y He M 125 start Wat 109 id dd 4 s 9 7 ERAR E Startup
27. formation and shall have 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
28. hown in the following image Fig 16 Step 4 Connect one end of USB AM to Micro B cable to LPC4330 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 ngxtechnologies com User Manual LPC4330 Xplorer iNT xa Option B With ULINK2 debugger The Xplorer board has on board 10 pin SWD JTAG box 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 LPC4330 Xplorer package the user needs to buy separately To program debug 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 LPC4330 Xplorer Board One USB AM to Micro B cable 20 pin to 10 pin Adaptor Xpl 10 pin Cable USB AM to Micro B cable Fig 18 Steps to setup the ULINK2 and LPC4330 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 20 pin to 10 pin adapter as show in following image 14 www ngxtechnologies com User Manual LPC4330 Xplorer St
29. initialize and copy code and dat toolsets the entry point is through file and that startup code will setup stacks a 89 int main void return c entry 94 ifdef DEBUG 95 RRR RARER RRR dole RRR ERR ERR ERR ERR ER RRR RRR ER RRR i Ma Fig 54 32 www nextechnologies com start User Manual LPC4330 Xplorer Nt lt a 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 LPC4330 Xplorer Blinky uvproj a Name x Favorites i ai _ Internal SRAM ini EE Desktop Libraries E Documents emj Git a Music Pictures Bl Videos A Hagaraj jE Computer ti Network JE Ani m1 IT 11 12 LPC4330 Xplorer Blinky uvproj Date modified 28 05 2012 AM 10 38 EA 4 n UVPROJ File Size 32 7 KB 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 Start Stop Debug Session File Edit View Project Flash Debug Peripherals Tools SVCS Window Help Dee s al 9 c amp mom S mm B setov m JA EOE 6 s reme S TTT amp IdE amp Gpio LedBlinky c 2011 06 02 f fee file Gpio LedBlinky c E1 53 Internal SRAM Z 3 4
30. r No items match your search amp OS C hiex DVD RW Drive ca Local Disk F ca Local Disk G 43 cn necs raa Hide Folders Fig 26 18 www nextechnologies com User Manual LPC4330 Xplorer Step 5 Select the NXP found by Philips and search for the controller Data base ce Lapis Semiconductor H Luminary Micro Fe milandr se NXP founded by Philips fA LH75410 oof LH75411 A LH79520 ee LH79524 n or tm Fig 27 Step 6 Select LPC4330 controller and click OK Select Device for Target Target 1 CPU Vendor NXP founded by Philips Device LPC4330 Toolset ARM Data base Description Cortex M4 Processor running at frequencies of up to 204 MHz Memory Protection Unit MPU Nested Vectored Intemupt Controller NVIC Hardware floating point unit Non maskable Interrupt NMI inpu JTAG and Serial Wire Debug SWD serial trace ETM and ETB support System tick timer Ce OKI SEMICONDUCTOR Four reduced power modes Sleep Deep sleep Power down Deep pow H ROHM E Samsung Cortex MO Processor core FQ Sharp capable of offloading the main ARM Cortex M4 x running at frequencies of up to 204 MHz 4 Siicon Laboratories Inc J JTAG Serial Wire Debug and bultin NVIC b G sssm c 19 www nextechnologies com User Manual LPC4330 Xplorer Step 7 Click YES to copy startup file to project folder and ad
31. rst 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 LPC4330 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 LPC4330 Xplorer Na 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 OG 4 s dA 9 c s pl 4 Internal SRAM Project n 3 3 Internal SRAM Ez Startup Ez CMSIS CM3 zi eg Drivers l 421 Main E Main c
32. t Size ROMt C RAM1 ROM2 C Fig 39 For External SPIFI Flash make following changes as shown in the following image Options for Target Target 1 nu putput Listing User C C Asm Linker Debug Utiities NXP founded by Philips LPC4330 m Code Generation Xtal MHz 12 0 Operating system None SK Use Cross Module Optimization System Viewer Fie Si se MicroLIB Big Endian SFDNNXPNLPC4A3oNLPCA3oc SF R I Jue TNE TT NE Read Only Memory Areas m Read Wrte Memory Areas 1 default off chip Start Size Startup default off chip Start Size Nolnit Rom cjr am f r mw r mw c a J i IROM1 14000000 018000 v Nw C 25 www ngxtechnologies com User Manual LPC4330 Xplorer Step 18 In Output Option select Create HEX File check box EA Options for Target Target p XX EN in Device Target Doo Jin User C C Asm Linker Debug Utilities Select Folder for Objects Name of Executable LPC4330 Xplorer Blinky Create Executable LPC4330_Xplorer_Blinky i v Debug Information Create Batch File D z Raga U er x Browse information C Create Library LPC4330_Xplorer_Blinky LIB d Fig 41 Step 19 Click C C Option in Define type CORE Md4 click on Include paths to include drivers head
Download Pdf Manuals
Related Search
Related Contents
processo licitatório nº 026/2014. pregão presencial n.º 025 Unique Home Designs IWG0200WHT3636 Installation Guide Copyright © All rights reserved.
Failed to retrieve file