Home

LPCXpresso Getting Started Guide

image

Contents

1. ZL 21 S1euure osip s JUSLUNDOP SIU y apind peuels LPC LINK side Expansion Connector superset of mbed pinning mbed LPCXpresso Dual row holes x97 100 nil pacing VIN 4 5 5 8V EXT POM Jee lt gt _____ 26 5 46 32 gt ant aped hern PC Jig nat usad ADe Ethernet M nat usad TO Efwrnet 26 12 46 39 PO 3 USB VBUS Je 148 641 _ I2c 5CL UART3 RX I2 2 SCL 48 15 J6 42 My 21 Fic 21 J6 18 eda 10 _22 MAT PWM PWMOUTI 46 17 46 44 16 18 16 48 7 is FADI PADS PADIS 22 PADS PAD us s Er ea Brame gran PADI aay s m ea OPD PADO ZEPA PADS 46 22 46 49 2 46 23 J6 24 46 51 og 46 25 46 52 46 26 46 53 PI J8 27 26 54 SIOJONPUODIWIS XN Embedded Artists AB TITLE LPC presso LPC11U14 rev A Document Number Date 2012 08 21 09 37 59 Sheet 6 Fig 44 Schematic for the LPCXpresso LPC11U14 target side 2 of 2 pamasa SU 5102 AA dXN 6t OV dXN 5 Dunes 5 1 1951 ZL 21 sjeuurejosip
2. NDIOX _ K SNV 20 NOX MZ EXT_POWX ___ Y2 12MHz C37 C38 18pF 18pF i DX POWX TP ALT VCAN gj2 gt D ____44 J7 c41 2 ca9 c40 1 I I 21 kox A 41 DX GNDX Fig 39 Schematic for the LPCXpresso LPC11C24 target side 1 of 2 LPC11C24 Target Side U7 LPC11C24 RESET PIOO 0 PIOO_1 CLKOUT CT32B0_MAT2 PIOO 2 SSELO CT16BO CAPO XTALIN PIOO 3 XTALOUT PIOO 4 SCL PIOO 5 SDA LE D PIOO_6 SCKO PIOO_7 CTS PIOO B MISO CT16BO MATO PIOO_9 MOSI CT16B0_MAT1 SWCLK PIOO 10 SCKO CT16BO MAT2 R PIOO 11 ADO CTS32B0 MATS R PIO1_0 AD1 CT32B1_CAPO R PIO1 1 AD2 CT32B1 MATO R PIO1 2 ADS CT32B1 MAT1 SWDIO PIO1_3 AD4 CT32B1_MAT2 PIO1 4 ADS CT32B1 MATS WAKEUP PIO1 5 RTS CTS2BO CAPO PIO1 6 RXD CT32BO MATO PIO1 7 TXD CT32BO MAT1 PIO1 B CT16B1 CAPO PIO1 10 AD6 CT16B1 MAT1 11 AD7 PIO2 O DTR SSEL1 PIO2 1 DSR SCK1 PIO2 2 DCD MISO1 PIO2 S RIMOSI PIO2 6 PlO2 7 PIO2 8 PIO2 10 RO2 11 SCKO PIOS O DTR PIOS 1 DSR PIOS 2 DCD PIOS 3 RI osse1dx23d1 dXN peueis 9 SIOJONPUODIWIS XN ossa1Jdy 1 Buje 21 21 sjeuurejosip joefqns s jueunoop siu u 6t JO 95 epino pees pamasa sU 610 AA
3. TITLE LPCXpresso LPCT1B4 Rew A Document REL Date 8 14 2812 1 15 56 dXN 5 Dunes 5 1 SIOJONPUODIWIS XN 1 LOZ ZL 21 sjeuurejosip 1oefqns s jueunoop siu u 6t Buje epino peueis pamasa sU Ily 610 AA dXN Prototype block GNOX lg Iz E Fisa Pa PE Pax Pasa Paso pa Past Pant pss Pia 32 EFS Ein pias pg Pha Past psi pios Fiss EE 3 NXP Semiconductors TITLE LPCXpressoa 118 Rev f Date 8 14 2012 1 15 56 Fig 46 Schematic for the LPCXpresso LPC1104 target side 2 of 2 dXN 5 9 5 1 SIOJONPUODIWIS XN 19511 LOZ ZL 21 S1euure osip s 1 SIU PSPIAOJd 6t apind peuels pamasa SU SLO AA dXN LPC800 Target Side From LPC Link Side LPC LINK side 1_12 1 R38 UR Expansion Connector OR superset of mbed pinning ET ____ LPCXpresso
4. joefqns s jueuinoop SIU u y JO Ly Buje osseidxod1 peueis sU 610 AA dXN From LPC LINK Side 18 RESET Pale 0 POG VCLKOLTACTS2BO LED _ TDGPiODO TiMPMMCTXOBO TDORPIOT S i ETA on E cx C40 Un On GNDX GHOX GHOX Pioi 8 i i 2 51 and 452 LPC1114 Target Side LPCXpresso VE bathery supply nR imaat PO RESET PIC 8 MESI SPN MSO PIOU 8 MISO pue qe nob rut Nested RE SIPLIMOSI ANA i ADUT Production Test solder bumps on Normal operation solder bumps removed Fig 45 Schematic for the LPCXpresso LPC1104 target side 1 of 2 Expansion Connector superset of mbed pinning Dual row holes 2x27 100 mil spacing GHDX ejti et PEH 5 2 3 deis Ass at 2 act He de 6 22 Jez 10 lt 6 25 627 LPCXpresso alza xem xm prem xe
5. 25 Create the Skeleton project 25 log Gm 29 LPCXpresso target side schematics 29 LPCXpresso PCB pinout and dimensions 45 Terminology eese 46 47 9 1 9 3 10 Getting started with NXP LPCXpresso Legal information 48 BIS ORS settee ee RE TT 48 48 48 Contents E S D I ne 49 Please be aware that important notices concerning this document and the product s described herein have been included in the section Legal information NXP B V 2013 All rights reserved For more information please visit http www nxp com For sales office addresses please send an email to salesaddresses nxp com Date of release 17 April 2013 Document identifier LPCXpresso Getting Started Guide
6. EXT POWX 5 2 lt J8 3 _2100 Q POS ejas _2100 3 POR 11 _ 2 y jeg PT eg PiQ 7 ___ 48 11 _ or 12 PO 1 8 3 22 P00 11 r 6 15 AMA 8081 2 8 19 Ja 20 EHH 5 J8 z1 J8 22 Foa J8 23 MID 18 24 6 25 1 r 8 28 2 16 27 16 28 46 29 18 20 28 21 48 35 48 33 46 34 48 35 46 38 JB 37 01 PIO0 18 40 PIO0 4 e 16 41 0132 g ga AMi e 48 43 AMA 6 44 3 lt 16 45 21024 ____ 46 46 J6 47 46 48 6 49 6 50 6 51 Ele 10 g 6 52 E0 48 53 rr 46 54 LPCXpresso mbed powered eise 3 3 input LL MM UART2 TX 1202 504 _ ____ PWMOUTBE PIO2 amp 2 This board has been replaced with the LPC1347 LPCXpresso board 5 dXN 5 5 1 SIOJONPUODIWIS XN 1 LOZ 21 21 sjeuurejosip 0 s jueuinoop siu u 6t JO GE pamasa sU 610 AA dXN From LPC LINK Side
7. Rc ES LPC800 Ipc800 drive tS LPC812 SCT LPC812 Sct e 122 LPC812 SCT pwni LPC812_SCT_um_pwm tS PMU tS SPI Master SPI Slave Quic 53 Start here New project Import project s iy Build all project amp g Clear Q3 Quick Settings Project and File wizards Import and Export amp Build and Settings Fig 9 Single perspective develop 21 2 gt m m 4 07 2 7 Quick Access ES X Develop Welcome 23 E file C nxp LPCXpresso 5 1 0 2048 Ipcxpresso pages registered htm v gt e powered by red LPCXpresso5 is fully activated Welcome to LPCXpresso 5 The software is now fully activated and can be used for production LPCXpresso can be used to generate and download applications containing up to 128KB of code into an LPC target Product Documentation Full product documentation is provided within your tor allation via the IDE menu Help gt Help Contents NXP Getting Started Guide The NXP LPCXpresso Getting Started Guide p instructions to build your first LPCXpresso project Red Trace Guide The Trace Guide provides information on using Instruction Trace within LPCXpresso LPCXpresso Resources Check the LPCXpresso Support page for new LPCXpresso software releases more example projects and announcements Visit www nxp com Ipcxpresso support LPCXpre
8. LP AA Develop nr Fig 3 Product development stages Users can envisage three stages from evaluation to product development During evaluation features and peripherals of the target MCU can be easily tested with the prototyping area and easily accessible connections on the target board Complementing the target board are also easy to use example projects and a handy Getting Started guide For rapid proof of concepts users can get an off the shelf base board from Embedded Artists and quickly explore the next level of applications And finally LPCXpresso users can seamlessly develop their final application by using the LPC Link s 10 pin JTAG connector to attach any JTAG capable custom board This way users can now enjoy the same user experience right from evaluation to product development LPOCXpresso Getting Started Guide All information provided in this document is subject to legal disclaimers NXP B V 2013 All rights reserved User guide Rev 12 17 April 2013 7 of 49 NXP Semiconductors LPCXpresso Getting started with NXP LPCXpresso 3 Installation 31 System requirements Operating System Microsoft Windows XP 32 bit SP2 or greater Microsoft Windows Vista 32 bit or 64 bit Microsoft Windows Windows 7 32 bit or 64 bit Microsoft Windows Windows 8 Mac OS X 10 7 5 Lion and 10 8 2 Mountain Lion Linux Ubuntu 9 trough 12Linux Fedora 14 and 17 System RAM 2 GB MB minimum 4 GB recomme
9. Tp messo LPCXpresso Getting started with NXP LPCXpresso Rev 12 17 April 2013 User guide Document information Info Content Keywords LPCXpresso LPC800 LPC1100 LPC1200 LPC1300 LPC1700 LPC1800 LPC2000 LPC2900 LPC3000 LPC3100 LPC3200 LPC4000 LPC4300 Abstract LPCXpresso is a low cost development platform available from NXP This document is a brief overview on how to get started with LPCXpresso NXP Semiconductors LPCXpresso Revision history Getting started with NXP LPCXpresso Rev Date Description Added LPC800 e Added schematics for LPC800 and LPC1104 LPCXpresso boards e Updated screenshots to match LPCXpresso version 5 e Updated supported LPC products list uc Een e Added system requirements for the Mac OS version e Updated supported LPC products list ni e Updated supported LPC products list Updates for LPCXpresso 4 new screen shots e Added 1 1 V4 new features section e Updated comprehensive supported parts list e Updated create new project process Added Fig 45 and Fig 46 Updated keywords and supported products throughout e Updated Section 6 1 e Updated Section 6 2 5 e Updated Section 6 6 2 e Removed Fig 20 e Added Fig 41 and Fig 42 8 e Updated Section 3 2 e Added Fig 38 Fig 39 Fig 40 Fig 48 Updated Section 3 1 Added 7 1 Schematics for LPCXpresso LP
10. ww fee LEE E NN maro PWMOUT1 PWMOUT2 PWMOUTS PWMOUT4 PWMOUTS osse1dx2d1 dXN peueis 9 ossa1Jdy SIOJONPUODIWIS XN 1 LOZ Idy ZL 21 S1euure osip s SIU 6t 25 peueis sU LOZ AA dXN From LPC LINK Side LPC1200 Target Side LPO1 XX 2190_QE2_PIO0_LOCOUARTO_NATS FICO EZH PlO1 LOCO UAPTD RADAS 2280 CAPI LOCOCTSzE MATO LoCO E PIOC ZEMA LC ART TXDIC SeB U LOCUCTS2E MATI LOCO z PIOO 3 ECH PIOS LOCO ARTO 20280 LOCUCT3I83 MAT LOCO PIOC 4 EZH Plo4 LCCDi JARTO 3280 CAP3 LOCCICTS282 MATS LoCO PIOD Pli95 OCC JARTO 5 PIOO S EZ __ _ C7281 CAP MATO LGCO 00 FIO LOCDAJAR TO 2281 CAP 1 LOGCOCT3281 MAT 1 LOCO SN FIOL FICE LOD ART1 RXDICTREBT LOCDCTS2 1 MATA LOCO PIQO0_QETH_PIO _ LCCOAIARTI TvDAZ722B1 CAP3 LOCUCT3281 MAT LOCO PIQO 10_ SCL T1 EZH PID 1 DRC 5 LOCUCTIGE MATO LOCK OAC FICO 129 amp 2 PIO12 LCOD CLIXOJ TI 1880 LOCOCTI amp B3 MAT Loca 88 HFESET FICO 13E2H 7013 LOCO 4 LO
11. After playing around with the LPCXpresso board especially when trying out new PLL settings reconfiguring the SWDIO SWDCLK pin functions disabling AHBCLKCTRL bits or trying power down modes the board may be disabled and no longer enter debug mode This is caused by code on the on board flash that incorrectly disables the system clocks or the debug port soon after reset before the debugger can connect to the core The easiest solution to this is to load a working project into LPCXpresso ground the ISP pin see the chip User s Manual for details and then try to enter debug mode Grounding the ISP pin during reset will put the target MCU into In System Programming ISP mode It will wait for a command through the serial port or the USB port This temporarily prevents the troublesome code in flash from starting Although ISP is designed to enable serial and USB updates while ISP is running the LPCXpresso toolchain is able to connect to the Cortex core and reprogram the flash After the flash is All information provided in this document is subject to legal disclaimers NXP B V 2013 All rights reserved User guide Rev 12 17 April 2013 22 of 49 NXP Semiconductors LPCXpresso Getting started with NXP LPCXpresso reprogrammed disconnect the ISP pin pull it high or allow it to float and stop debugging Now you should be able to debug code again 6 3 Datasheet browser The LPCXpresso IDE comes with an integrated web browse
12. NXP B V 2013 All rights reserved User guide Rev 12 17 April 2013 24 of 49 NXP Semiconductors LPCXpresso Getting started with NXP LPCXpresso 6 6 1 Create new Workspace From the File menu hover over Switch Workspace and then select Other from the bottom of the list You will then see the Workspace Launcher dialog shown below Enter or browse to the new path for your workspace We have called our new workspace NewWorkspace Workspace Launcher Select a workspace LPCXpresso stores your projects in a folder called a workspace Choose a workspace folder to use for this session Workspace C AnxpYANewWorkspace k Copy Settings Fig 29 Workspace launcher Then click on OK to re open LPCXpresso with this new workspace selected 6 6 2 Create the Skeleton project e f you are using a Cortex based part first import the CMSIS header files for the chip family you are planning to work with To do this click Import Project and navigate to the CMSIS lt version part gt zip The CMSIS header files are installed with LPCXpresso in C nxp lpcxpresso lpcxpresso examples nxp Once this project is added to your workspace click Build all projects Debug in the Quickstart Panel e Click on New project and select the NXP C project type for your architecture e Click Next and enter a project name In this case we will use MyProject then click Next
13. LPC specific enhancements It also features the latest version of the industry standard GNU tool chain with a proprietary optimized C library providing professional quality tools at low cost The LPCXpresso IDE can build an executable of any size with full code optimization and it supports a download limit of 128 kB after registration LPCXpresso supports the full embedded product design cycle by moving beyond chip evaluation boards and supporting development on external target boards LPOCXpresso Getting Started Guide All information provided in this document is subject to legal disclaimers NXP B V 2013 All rights reserved User guide Rev 12 17 April 2013 4 of 49 NXP Semiconductors LPCXpresso Getting started with NXP LPCXpresso Ele Edit Mavigate Search Project Run Windew Help cR CS EE ERO Oe Or E e DE Ms se Quick Access 25 iq Develop E Project Explorer Fenpherstse p d Welcome H ELT E o ile rep LPCXpresso_9 1 0_268 lpeapressospages regebered htm e E 25 Blinky a T gt 125 Boo 26 CORE LPCHsx E CM PRESSO n S powered by red p CRC gt e gpio LPCXpressob5 is fully activated gt 125 BC us drrver li Welcome te LPCXpresso 5 Tee soThwace m now fully activated and ci Be weed Tor producion LPCXpresso can
14. LPCXpresso_Getting_Started_Guide All information provided in this document is subject to legal disclaimers NXP B V 2013 All rights reserved User guide Rev 12 17 April 2013 25 of 49 NXP Semiconductors LPCXpresso Getting started with NXP LPCXpresso E Jm New project LPC8xx gt C Project Project name MyProject Use default location Location C nxp NewWorkspace MyProject Browse lt Back Fig 30 Enter project name e The next section of the dialog will ask you to specify which chip in the family you are USING New project Select the target MCU Target selection NXP LPC812 LPC13x LPC13x 12bit ADC LPC1700 LPC177x 8x LPC18xx LPC2000 LPC2900 LPC3000 LPC407x 8x LPC43 x 8 LPC810 LPC811 7 0 0 0 0 ETT Fig 31 Enter project name LPCXpresso_Getting_Started_Guide All information provided in this document is subject to legal disclaimers NXP B V 2013 All rights reserved User guide Rev 12 17 April 2013 26 of 49 NXP Semiconductors LPCXpresso Getting started with NXP LPCXpresso e f you are using a Cortex based part the next step in the wizard will ask which CMSIS project to use CMSIS stands for Cortex Microcontroller Software Interface Standard CMSIS defines a common way to access peripheral registers and to define interrupts Please select the project
15. NO CRP Ox TODO insert other include files here TODO insert other definitions and declarations here i OQ R W V 8 gE O TODO insert code here Force the counter to be placed into memory Start here volatile static int i 0 Enter infinite loop just incrementing a counter New project while 1 Import project s _ MES or Build all projects Debug return 0 Build MyProject Debug Console 23 f Problems Memory Instruction Trace 24 Red Trace Preview p E r D F Debug MyProject Debug No consoles to display at this time 08 Quick Settings Fig 33 Project creation complete All information provided in this document is subject to legal disclaimers NXP B V 2013 All rights reserved Rev 12 17 April 2013 28 of 49 LPCXpresso_Getting_Started_Guide User guide NXP Semiconductors LPCXpresso Getting started with NXP LPCXpresso 7 Appendix 7 1 LPCXpresso target side schematics LPCXpresso_Getting_Started_Guide All information provided in this document is subject to legal disclaimers NXP B V 2013 All rights reserved User guide Rev 12 17 April 2013 29 of 49 1 osseidXod1 ZL 21 sjeuurejosip joefqns s siu u 6t 05 epinc peuels pama
16. VU EOV USE out used not uaed IF not uaed AD Ethernet nol uaed AD Ethernet nat used TO Ethemety rol TO Ethiemet USB DM Nate wrang text D USB in Hole wrong ind Note wrong best 000880 USE in aikacreen 1 CAN RD PIOD I2 SDA LART3 TX f 2C2 SDA PIOQ 4 LART23 FIX I2c2 ScL PI B8 PAMO TO _10 PWMOUTA _11 PWMOUT2 Hola wrong text MOT 5 wrong text PWMOUTE in silkacneen _8 10 3 1 1 Design and layout compatible with LPC1343 version Therefore PIO2 4 5 and 4 5 swap LPC1114 does not have USB but LPC1343 does Therefore R37 38 LPC1114 does not have SWO but PIOO 9 is connected since LPC1343 has SWO there Recent versions of this board use a LPC1115 in place of the LPC1114 dXN 5 5 1 SIOJONPUODIWIS XN 1951 19 ZL 21 S1euure osip s SIU 6t JO VE ossaidxod apind peuels pan esa Iv LOZ AA dXN From LPC LINK Side no avax y TAG SWDIOX e gn 5 AS OR 2 i TAG TO
17. code window Che A Ey Swe lt Quick Access 3 Debug 5 15 Blinky axf 4 Thread 1 main Suspended Breakpoint main at main c 48 0x306 pal gdb x Fig 21 Debug toolbar LPOCXpresso Getting Started Guide All information provided in this document is subject to legal disclaimers NXP B V 2013 All rights reserved User guide Rev 12 17 April 2013 19 of 49 NXP Semiconductors LPCXpresso Getting started with NXP LPCXpresso You can now do the following with the buttons towards the top of the Debug view op Run the program Step Over C C line Step into a function stop the debugger ij Pause Execution of the running program Restart the debug session Fig 22 Debug buttons 5 3 Working with Instruction Trace Instruction trace provides the ability to record and review the sequence of instructions executed on a target LPCXpresso 5 introduces support for instruction trace via on board trace buffers Instruction trace makes use of the Embedded Trace Buffer ETB on Cortex M3 and M4 parts and the Micro Trace Buffer MTB on the Cortex M0 The instruction trace which is generated at high speed can be captured in real time and stored in these on chip buffers so that they can be downloaded at lower speeds without the need for additional debug hardware For information on how to configure LPCXpresso 5 to work
18. dXN LPC LINK side Expansion Connector superset of mbed pinning Dual row holes 2x27 100 mil spacing LPCXpresso eee J6 1 VIN 4 5 14V XT POWS J6 2 e 2 UART1 RX I2C1 SCL J6 10 sew _ wur cen memo ______ ces SPI2 SCL UART2 TX PIO J6 13 ___ 52 en ron xe ___ eis pw _____ w ___ AOUT PIO1_2 AD3 LN LE 6 18 eras l QOPAD9 QPAD13 QPAD2 QPAD6 QPAD10 QPAD14 5 PIO1_4 05 PIO J6 20 Lo EH Lu PAD4 PAD8 PAD12 PAD16 cas 999 E O es pooo cea mei e Fig 40 Schematic for the LPCXpresso LPC11C24 target side 2 of 2 PAD17 PAD21 QOPAD18 QOPAD19 QPAD20 QOPAD22 QPAD23 QPAD24 J6 28 J6 29 5 J6 30 J6 31 5 J6 32 J6 33 J6 34 J6 35 J6 36 J6 37 3 J6 38 J6 39 J6 40 J6 41 J6 42 J6 43 J6 44 J6 45 J6 46 J6 47 J6 48 J6 49 J6 50 J6 51 J6 52 J6 53 J6 54 NDX LPCXpresso mbed __ VOUT 3 3V out if self VOUT B V ou 3 3V out powered else 3 3V input not used VU 5 0V USB out ee not used not used RD Ethernet not used RD Ethernet Temme _ LL
19. or general damages the entire liability of NXP Semiconductors its affiliates and their suppliers and customer s exclusive remedy for all of the foregoing shall be limited to actual damages incurred by customer based on reasonable reliance up to the greater of the amount actually paid by customer for the product or five dollars US 5 00 The foregoing limitations exclusions and disclaimers shall apply to the maximum extent permitted by applicable law even if any remedy fails of its essential purpose 9 3 Trademarks Notice All referenced brands product names service names and trademarks are property of their respective owners NXP B V 2013 All rights reserved User guide Rev 12 17 April 2013 48 of 49 NXP Semiconductors LPCXpresso 10 Contents gt 5 3 6 1 6 2 6 2 1 6 2 2 6 2 3 6 2 4 6 2 5 6 3 6 4 6 4 1 6 4 2 6 5 6 6 6 6 1 6 6 2 7 7 1 7 2 1 3 8 gore 16 mes 3 LPCXpresso 5 new features 4 LPCXpresso IDE eere 4 LPCXpresso development board 5 LPC LINK JTAG SWD debugger 6 Integrated evaluation target 6 PCXpresso 6 Evaluate explore and develop 7 Installation e 8 System requirements 8 Inst
20. this document is subject to legal disclaimers NXP B V 2013 All rights reserved User guide Rev 12 17 April 2013 15 of 49 NXP Semiconductors LPCXpresso Getting started with NXP LPCXpresso 5 Working with example projects 51 Downloading NXP sample code from the web LPCXpresso_Getting_Started_Guide W 23 9 Varia Brea E Outli amp f Expr O Start here New project Build all projects Debug amp Build Blinky Debug amp Clean Blinky Debug Debug Blinky Debug Q3 Quick Settings Lir n Fig 14 Quickstart panel The LPCXpresso IDE includes several sample code bundles for various development boards To work with these projects select Import project s from the Quickstart panel in the lower left corner of the screen Import projects Import project s Select the examples archive file to import Projects are contained within archives zip or are unpacked within a directory Select your project archive or root directory and press lt Next gt the next page select those projects you wish to import and press lt Finish gt Project archive zip Archive Project directory unpacked Root directory a Browse for more examples Press Browse for more examples to view the latest examples and download to your local drive Fig 15 Import project s dialog All informat
21. 1 BpF L l x g x VIN 4 674 EXT FAD SPI1 MOSI PICO 4 MOSI n 10 LE x x 1 I2C1 SDA PIC 14 TED UARTI AX 7 I2C1 SCL 16 sas NEA meme jg Car PADS PADIS PADI PAD21 BPAD10 BPAD 4 BPAD1B 22 11 PADIS Pana PADIZ PADi amp BH PADD LPCXpresso IF ARD RD TOH TD X I2C2 SCL CAN RD CAN TD PICO 11 I2c SCL UART3 R PIC 8 map of used ol FIZ 10 fC Embedded Artists AB TITLE LPCXpressa LPL88G rev fi Date 2012 18 04 19 55 45 Sheet BR Fig 47 Schematic for the LPCXpresso LPC800 target side dXN 1 5 1 SIOJONPUODIWIS XN NXP Semiconductors LPCXpresso Getting started with NXP LPCXpresso 0 25 N d 0 04 dia a N 09 0 20 Fig 48 Dimensioned drawing of LPCXpresso LPCXpresso Getting Started Guide All information provided in this document is subject to legal disclaimers NXP B V 2013 All rights reserved User guid
22. 1RXD3 0 Palza C Embedded Artists AB TITLE LPCXpresso LPC1769 rev B Document Number Date 2010 10 19 14 13 36 Sheet 6 7 osse1dx2d1 dXN peueis 9 oss idx d SJOJONPUODIWIS XN 1 Bue ZL 21 sjeuurejosip joefqns s jueuinoop siu u 6t JO 25 epinc peuels penesei sU 610 AA dXN LPC LINK side Expansion Connector superset of mbed pinning _LPCXpresso Dual row holes 2x27 100 mil spacing LEUR sa VB battery supply _ VB battery supply m C J8 3 48 30 3 niim J 4 16 31 3 48 8 48 35 a UARTI TX IPC1 SDA POL M 8 36 SED UARTI AX 121 801 en J6 10 16 379 ee we es cen a mp ces 30 J6 19 48 9 Paja EE lt 3 20 J6 47 Fal ena 21 J6 48 493 23 Faji E X J6 24 6 aT 36 25 ranis Panis iz DFAS PADS 6 52 ms J6 26 DPADI4 PAD brave rans J6 53 22 Hi _ 1 Panis 0 PAD10 Pans SPAN J8 54 255 Polia A EE EEX Bru BIST Ei 1127 Fig 36 Schematic for the LPCXpresso LPC1769 targe
23. 700 LPC1800 LPC4000 LPC4300 series and specific members of the LPC2000 and LPC3000 families 1 5 Integrated evaluation target The target includes a small prototyping area and easily accessible connections for expansion The LPCXpresso board with target can be used e On its own for software development and benchmarking e Connected to an off the shelf baseboard for rapid proof of concepts e Connected to customer designed board for a full prototype 1 6 LPCXpresso partners LPOCXpresso Getting Started Guide NXP has partnered with Code Red Technologies and Embedded Artists for the PCXpresso platform For added flexibility and higher memory configurations the PCXpresso platform can easily be upgraded to include full blown suites from Code Red Technologies and more advanced hardware kits from Embedded Artists Please visit the LPCXpresso webpage for more information Embedded Artists red All information provided in this document is subject to legal disclaimers NXP B V 2013 All rights reserved User guide Rev 12 17 April 2013 6 of 49 NXP Semiconductors LPCXpresso Getting started with NXP LPCXpresso 2 Evaluate explore and develop ES BREE MEA MILA BE E EB E E Artuiu anh ee BER EB SRR RGR RRR RRR hee ee E Any Custom Board with a JT AG Connector E A LL LP Lini
24. 9 NXP Semiconductors LPCXpresso Getting started with NXP LPCXpresso Setup LPCXpresso Please read the following important information before continuing Please read the following License Agreement You must accept the terms of this agreement before continuing with the installation CODE RED TECHNOLOGIES LIMITED End User Licence Agreement for LPCXpresso Software Development Tools October 2012 THIS END USER LICENCE AGREEMENT LICENCE IS A LEGAL AGREEMENT BETWEEN YOU EITHER A SINGLE INDIVIDUAL OR SINGLE ENTITY AND CODE RED TECHNOLOGIFS LIMITED 7 Se ae I do not accept the agreement 5 1 0 2048 Fig 5 Setup wizard Read the license agreement then click next There are a number of other screens on the setup wizard but generally the default options can be accepted After the install an information file will be displayed Click Next Congratulations Your LPCXpresso installation is complete Setup LPCXpresso Installing Please wait while Setup installs LPCXpresso on your computer C nxp LPCXpresso_5 1 0_20482 Drivers LPC Link x86 WdfColnstaller0 1009 dll Fig 6 Setup wizard LPCXpresso_Getting_Started_Guide All information provided in this document is subject to legal disclaimers NXP B V 2013 All rights reserved User guide Rev 12 17 April 2013 9 of 49 NXP Semiconductors LPCXpresso 3 3 Activation Getting start
25. C1347 e PC1700 All part types supported OM13000 LPC1769 e PC1800 part types supported e LPC2000 LPC2109 LPC2109 01 LPC2134 LPC2142 LPC2362 LPC2929 e LPC3000 LPC3130 LPC3250 e PC4000 All part types supported All information provided in this document is subject to legal disclaimers NXP B V 2013 All rights reserved User guide Rev 12 17 April 2013 3 of 49 NXP Semiconductors LPCXpresso Getting started with NXP LPCXpresso LPCXpresso base board products e OM11083 Embedded Artists Base Board for LPCXpresso and mbed e OM13009 Embedded Artists Motor Control Kit for LPC Xpresso e OM13016 NGX mbed LPCXpresso baseboard 11 LPCXpresso 5 new features e Support for Instruction Trace for Cortex M3 M4 based MCUs implementing an Embedded Trace Buffer ETB e Support for Instruction trace for Cortex M0 based systems implementing a Micro Trace Buffer MTB e Based on Eclipse Juno and gcc 4 6 2 e New part support For more information on LPCXpresso 5 new features visit http support code red tech com CodeRedWiki NewInVersion5 PRESSO o Eclipse based IDE Development Board with LPC Link 1 2 LPCXpresso IDE LPCXpresso s IDE is a highly integrated software development environment for NXP s LPC Microcontrollers which includes all the tools necessary to develop high quality software solutions in a timely and cost effective fashion LPCXpresso is based on Eclipse with many
26. C1768 target side e Added 6 1 Installing Eclipse plugins 9 Added new products supported to Introduction section LPC2929 LPC3250 e Removed 6 1 6 Download performance e Updated 6 4 2 Optimization section dodi Updated Fig 49 e Updated Fig 37 e Added Fig 38 Updated Section 3 1 e Added Section 6 2 5 1 20100111 e Initial version Contact information For additional information please visit http www nxp com For sales office addresses please send an email to salesaddresses nxp com LPCXpresso_Getting_Started_Guide All information provided in this document is subject to legal disclaimers NXP B V 2013 All rights reserved User guide Rev 12 17 April 2013 2 of 49 NXP Semiconductors LPCXpresso Getting started with NXP LPCXpresso 1 Introduction LPCXpresso_Getting_Started_Guide LPCXpresso is a low cost development platform available from NXP The software consists of an enhanced Eclipse based IDE a GNU C compiler linker libraries and an enhanced GDB debugger The hardware consists of the LPCXpresso development board which has an LPC Link debug interface and an NXP LPC ARM based microcontroller target LPCXpresso is an end to end solution enabling embedded engineers to develop their applications from initial evaluation to final production The LPCXpresso IDE powered by Code Red Technologies tech com is based on the popular Eclips
27. CXpresso Ena VIN 4 5 5 VE battery supply used nA reset 0 RESET SPI1 MOS I MOSS Val SPit MISC 8 MISO SPit SCK FiO2 11 SLE m o UART1 RX 203 SCL RXD _7 ii PORT we mas m mu wo wu ma mmus i me Fig 37 Schematic for the LPCXpresso LPC1114 LPC1115 target side Expansion Connector superset of mbed pinning Dual row holes 2x27 100 mil spacing ENK J8 1 EXT POWY J8 3 PMD y e d FOS yr 18 5 Poa JAB POE 11 _ 2 t 18 8 PIF 16 5 fe ja 11 POs Or 6 12 P z 1 12 PB z 2 POO 11 18 15 Pifri 0 1 8 17 2 g ia J8 20 J8 21 FEMA 6 22 J8 23 PMID J amp 24 J8 25 6 28 03 2 e e a Mer 6 28 46 29 46 20 46 31 46 32 46 33 4 48 34 46 35 Ford g POE F00 Poga r 45 38 8100 6s 16 40 04 1 0128 542 Blt e 45 43 48 44 45 45 4 r 46 48 E035 J8 47 46 48 102 8 6 50 51 241 6 52 6 83 y J8 54 LPCXpresso mbed VOUT se ed else I VOUT 3 3 cut 8 eV if du t
28. Control Status Regist Pin interrupt and pattern Power Management Unit 4 040004000 Enabled Multi Rate Timer MRT State Confiaurable Timer 5 Fig 11 Display of peripheral view showing selection of MRT peripheral E Console amp Problems J Memey 2 instruccion Trace Red Trace Preview Monitors 4 MRT ET b New Renderings MRI Registe Addiers a F im INTVALO hel OM 040004010 os MI INTWAL2 640004020 os BE INTVALS 040004030 or eed 004004 MERL 0540004014 TIMER 400424 Tr r IE ies 3 Value xl Fig 12 Display of memory view showing detail of MRT peripheral registers All information provided in this document is subject to legal disclaimers NXP B V 2013 All rights reserved User guide Rev 12 17 April 2013 14 of 49 NXP Semiconductors LPCXpresso Getting started with NXP LPCXpresso 4 2 Connecting the target To begin development the LPCXpresso can be connected to a PC using a USB 2 0 A Mini B cable Fig 13 USB 2 0 A Mini B cable If you are debugging a prototype board a target containing a different MCU see the Appendix for a pin out to connect the debugger section of the LPCXpresso to an external target LPCXpresso_Getting_Started_Guide All information provided in
29. ED PION UAG LPGI xX 4 PIO2 PIOO LOCAT EBO IAPA p 29ICTTOBO M STO LOCZ PIO2 PlO1 LOCS CT 6B0 LOZ2ICTISBO LACT 2 SjEZH POZ LOC2 CT 6B CAPO LOZZICTIEB1 PIO2 S EZH PIOS LOC2JCT GB _ LO 2SJCTIOB1 LOCZ T n 0 rmal 5 rted L C an b e u se d fo r PI22 LOCOICTSCBO LOC2 CT32BO L OCZ Plo2_WEAH_PlOS_LOC2 CTS2B0_TAP 1_LOTAICTS2B0_MAT 1_LOoc2 current consum ption measurements on U8 PIO2_WEZH PI06_LOG2 TS2B0_ SAP 2 LJ TACTA MAT2_LOC2 HDX PIO2 WEH PIO LOC2 CTSSBO CAPS LOCO CTS2B0 LOZI 18393 Plo2 amp EZH Plo8 LOC2 CTS2B ZAPO LOZZAZTSzBI MATO LOCZ LOFCA PIO2_JEZH _P109_LOC2 TS2B _ LI 29CTS2B1_MAT1_LOC2 uf PO10 002 LOC2 CTS2B1 MAT2 LOCZ PIO2 1E7TH PO11 LOC2 CTs2B _ LOZZ ACTS BI MATS LOCZ 2_12 24 21012 LOC2 FlO13 LOTT PIO2 14EzH FlO14 0301 HOZ HUTI LOLAEAH IHC LAT LOU R34 2K LED REC 3 vCDMAIN VHEF MP 114345 LPIZIXXx LOFPO4 TAG TMSIPIO DiADCIMZ JIA AIRS PIO ARK _SWOPIO 2r pcINA PIET CUFT PIU 3 ADCIHE PlO1 S ADCINZIST 6B 2APO LO 2 _ MATO LOCI 01 amp CT 6D CAP1 LOZT CTTED1 spe J _ 61 NXP Semiconductors Document Number Sheet 5 6 Fig 41 Schematic fo
30. Expression Type Value Name mrt coum 4 if mrt counter 400 amp amp mrt counter 600 Details 6 mrt counter unt3 t 0 Default 0 GPIOSetBitValue 0 16 Add new expression Decimal Hex x 89 if mrt counter gt 600 amp amp mrt counter lt 800 Binary Octal 9 GPIOSetBitValue 16 1 92 c anni 00 se L 7 ANANA Console i Problems J Memory Instruction Trace 53 Red Trace Preview Fa B zm m gh HB d 8 Disassembly Info function filename NXP LPC812 Blinky Fig 10 Single perspective debug 1 Core Register View This shows all of the registers in the processor core Registers that have changed from step to step are highlighted in yellow 2 Debug View This shows you the stack trace In the stopped state you can click on any particular function and inspect its local variables in the Variables tab parallel to the Registers View Debug controls can be found on the global toolbar at the top of the screen 3 Editor In here you will see the code you are executing and can step from line to line By pressing the i icon at the top of the Debug view you can switch to stepping by assembly instruction Clicking in the left margin will set and delete breakpoints 4 Console View On the lower right is the Console View The Console View displays status information on compil
31. O FOX um Un R32 OR TAG LX EXI ___ GNDX UT LPC1343 aESET FIOO 1XCLKOLIT CT32BO FTOGGLE Figo 256Gb sao FICO auss vBUS FiOn ASCL FUOD VADA FUOD EUSB CONNECT ASCK Fido T CTS FO B MISCHCTTGEO FiOn mMOSHCTISEO SWOLK FIOO TO ScKACTTGBO MATS TOUPION_ T1 ADCO GT32BO MATS TMS Pt DADIATxE S CAPO TOPO _ 1 ADOACT32B1 MATO TRST PICH T2681 MATT SWOCOTPIO1 GUADUXCT32B1 MAT2 FICH E ADGCT32B1 MAT3SWAKELIP SATS CTSA PION G HREDICT32BO MATO TITXDNCT3ZBO Pood PCT CAPO PIDI WTIB MATO FICH TO ADCTTBBT MATT 11 ADI7 Pip 1 54 Li PiO 27000 e 2 81 es 5 Eis 5 Pos 7 Mar aoe FiOs 10 LiT qs ISCR E Pic 1 Ec 2 _3 45 alm impedance routing 90 ohm Ha iracka within 10 Times Iron width and sham angles 3 g Fig 38 Schematic for the LPCXpresso LPC1343 target side LPC1343 Target Side LIEN we UU e mx 7 ws mu m m mu mo ______ ai mw mu LPCXpresso Expansion Connector superset of mbed pinning Dual row holes 2x27 100 mil spacing nunx 18 1
32. RX CLK_CAP3 0 P024 ADO 1 2SRX WS CAP3 1 P025 002 125 26 ADO 3 RXD3 3 233 i D Xx R83 228 R84 OR 1 74LVC1G04GW vecs2 C50 LL XTALUCLKIN U GSB LPC 176X FNET TXDO P1 PIA ENET TX EN ENET CRS P1 9_ENET AXDO 1 10_ P1 14 ENET RX ER 21 15 ENET REF Cu 1 36 ENET MDC 1 17 CENET MONO P1 18_USB UP LED_PWM 1_CAP1 0 19 USR PPWRA N 1 1 20 2_SCKO P121 MCABORT 35510 P122_MC08_USB PWRD_MATIO P P1 22 MCF PWM14 MISOO P1 24 MCF 2 PWM1S MOSIO P125 MC1A MAT 1 P126 MC B PWM1 6 amp CAPO O P1 27 CLKOUT USB OVRCR N CAPQ 1 28 MC2A PCAP 0 P129 MC28 PCAP 1 MATO 1 P 39 VBUS ADO4 amp 1 31 SCK1 ADO 5 Fig 35 Schematic for the LPCXpresso LPC1769 target side 2 of 3 76 LPC176X P2 0_PWM1 1_TXD1 P2 1 2 RXDI P22 3 CTS TRACEDATA 3 P2 2_PWM1 4_DCD1_TRACEDATAI2 P2 4_PWM1 5_0SR1_TRACEDATAII P25 PWM1 6 DTR TRACEDATA O P26 PCAP 0 Fi TRACECLK P29 US8 CONNECT RXD2 P210 ENTO N 22 P2 11 EINT1 N J2STX CLK P212 ENT2 N J28TX WS P213 ENNT3 N 25 50 U7GS10 LPC176X P325 PWM 2 P3 26 STCLK MATO 3 070511 LPC176X I2C E2PROM 22025 P428 RX MCLK MAT20 TxD3 0 81 PASE
33. USSR IHG LOL 1 17 A 0 6 23 n P O3 13 E7H Plo15 SEELIC7 1881 LOCQICTI BT LOCDEZH TRC DAT LOC2 PIO0 1C EZH LOCI SSP MISO 27T5B1 CAPT LOCOCTIGET MAT1 LOCO FU EAH LUGTSSP Fee JTAG_TOGPIO0_1SEZH_FIG2_LOC I07S2B0_CAPI_LACVCT2387 101 200 19 EZH PIOS LOCIICMPC NON EB0_ LOGCTICT32E3 MATI LOCI POO DEZH LOC NIIS 3280 LOCVCT3z8 MATZ LOCI PP FNL FH PIOF 1 01 CAP I MATSCI OC 1 B gt D topo fy TAUN _324KH2 554 1004 FIOO 2204 __ INZ 5 2 7E apf JT 324HZ 20 EZH LOCICMP1 NOIC7SEB T CAP LOCVCTSZBI MATO 5 5500 24 EZH PINE LOC 1073281 CAPIT LOCTICT2281 MAT LOTT 25 E2H PIOS LOCTICMP 424273201 CAP LOCTICT32E1 MAT2 LGC1 19 PIU LOL EBT GAPS IBI MATS Luc 5120 27224 PlO11 LOC ICMFO CUT PIDO 2E EZH FIC12 LOCHICMF1 OJTA2718BO0 LOCTICTI6E3 MATO LaC1 PIOC_2SEZH_PIC IS UCTIROSCIC 1680 LOC UCT IB LOCI EE TAGS TG SFA PIO OwaiiINnEZH TRO Korn BS 21 EH PIO15 LOC 2 gt _5 5 XTALO IT S S i o OU L
34. ables LPC13xx 12bit ADC Discovery Options LPC1700 Environment LPC177x 8x Logging LPCIBoc MCU settings LPC2000 Settings LPC2900 Tool Chain Editor LPC3000 C C General LPC407x 8x Project References LPCAA Run Debug Settings LPC8x LPC810 LPC811 LPC812 Target architecture cortex m0 Memory details LPC812 Flash driver Memory Type Name Location Size Flash MFlash16 0x0 0x4000 RAM RamLoc4 0x10000000 0 1000 Edit 1 Restore Defaults Apply Fig 25 Selecting correct number Optimization issues When optimization is enabled it will reorder code What this means 15 that the code from multiple C lines will be intermingled In addition assignments and initializations might be pulled out of loops so they are only executed once Changes like these will make the code confusing to debug Some symptoms you might see are breakpoints that only work the first time through or seeing the debugger s current line indicator fail to advance or even move backwards when you click step It is best to always use O0 for debugging Since optimization can make such a big difference in code size and performance it is a good idea to test your project with optimization and plan for a final build that is optimized Exiting debug mode and stopping debugging To stop debug press the Stop button red square shown in the toolbar at the top of the debug view Recovery of board
35. allation process 8 hiver S 10 Getting familiar with the LPCXpresso IDE 11 Layout of the LPCXpresso desktop 11 Single perspective code development 12 Single perspective debug 13 Connecting the 15 Working with example projects 16 Downloading NXP sample code from the web 16 Debugging running blinky or another project on your LPCXpresso board 19 Working with Instruction Trace 20 LPCXpresso IDE tips and tricks 20 Installing Eclipse plugins 20 Debugging tips 20 Debug features not enabled 20 Error launching 21 Optimization ISSUES 22 Exiting debug mode and stopping debugging 22 Recovery of 22 Datasheet browser 23 COUP SIZE 23 23 Optimization sss 24 Showing hidden 5 24 Creating a skeleton project in a new Workspace DEMENS UNUS 24 Create a new Workspace
36. be used 10 x P genernie asd dew niihi nppicatinns nentaleing up te 12202 af eade inta an L target 25 LPCELZ Ach poem s def LPCEL Set Produci gt d LACE SCT pwm decode Lu Full produzi tdacumenintien is provided within your tei suin hain vig the DE menu i feb um pum a Hein gt Help Carters 3 iz x HEP Getting Started Guidi 1 iz 501 Master The Maried Guide provides seo melruciioes lo Bulk you Tis LPZX premisa poeci 5E Slave as Ried Trace Goide The Trace Guide rnlurmalin on using bslruciun Thras w ihi Va Bre i Enp n LIC Xpress Check the LPCXoressz Support gage Tor reme LPR pres releases more example pups and announcesenis LI Start here 7 Vind www nxp comlpexpresso support 1 Hew project LEC Xpress Farm prapectis The LACK presses Ferrum eemmunity B erties bulk fnr 1 usera and ia an reanurers fer geting help and E i advice on of The LPCX presso lool and boards Build all prajects So gal Goncabched and jan ite LPCXeraasd communes Tn view the ferum and in re grr na INAI ynu POST vig A PT P amp P n fanum Genera Mamans instruction Trace Bed Trace Pre mu x E Quick Sethings Console 13 P
37. code add gc sections to the project linker flags This causes the linker to remove unused functions from the compiled code gc sections is enabled by default in new projects created by the project wizard If you are working with an existing project you may need to manually add this option to your project gc sections is safe to use in both Release and Debug builds There are many optimization options available for GCC Visit http gcc gnu org onlinedocs gcc Optimize Options html to see all of them 6 5 Showing hidden views A view is an on screen representation of something in the IDE A view can be source code the project tree or a debug window If you accidentally close a view you can open it again by going to the Window menu and choosing Show View and Other It is a good idea to browse through the Show View window to see what is available Show View type filter text Breakpoints F Debug Disassembly 2 Executables Gd Expressions 0 Memory 0 Memory Browser Modules Peripherals Bl Red Trace Preview Registers Cancel Fig 28 Show view window This will present a dialog allowing you to pick a view and display it 6 6 Creating a skeleton project in a new Workspace LPOCXpresso Getting Started Guide PCXpresso includes several project Templates to help get started quickly All information provided in this document is subject to legal disclaimers
38. d Were eles 433v ir pat VL 5 UZB nI22 10 128 521 UZRT3RX I2C2 CL nI22 CT33BO0 DPY4MOU Z GND NXP Semiconductors TITLE Document Number LPCXpresso LPC1200 rev B Date not saved Sheet pamasa SU 5102 AA dXN 6t JO 85 SIOJONPUODIWIS XN osse1dx2d1 dXN 1 ossa1Jdy 19511 LOZ ZL 21 S1euure osip s JUSLUNDOP SIU y 6t 65 peuels pamasa SU 5102 AA dXN LPC11U14 Target Side From LPC LINK Side xx TMS SWOON I CLE TOOL Sr SET ur LPC11UTA LIGE DMX I PICH 39 DTR CT41BBO MATUTXD PIC MATTED PCH TRDCDACT1BBO MAT FIO TR RIICTIEBO CAPO E 2 2 5 mm Sem 45 ohm impedance routing G0 ohm diterenial Fig 43 Schematic for the LPCXpresso LPC11U14 target side 1 of 2 short to power LPCXpensso board fram target side USE VBUS SJ must ba open when LPCXprasso Ease baard i5 ued tC Embedded Artists AB TITLE LPCXpressoa 1 14 rev A Document Numbers Date 2012 88 21 09 37 59 dXN 5 5 1 SIOJONPUODIWIS XN 19511
39. d if you are currently editing a c file that is part of a library project Error launching debug filename axf EL reported by tag rT e Target reported erort Reason 05 Failed on chup setup 03 Failed on chip setup Ermak meter Ehed oe urilenieroen pal Fig 23 Error starting debug LPCXpresso checks the target chip ID against the currently selected chip ID for the project and will not start if there is not a match Make sure that the correct NXP LPC microcontroller part is selected in LPCXpresso The current part number is displayed in the status bar at the bottom of the LPCXpresso window It can be changed by holding down the Ctrl key and clicking A dialog will appear allowing selection of the correct part number NXP LPC812 Blinky Project Blinky MCU Vendor MCU LPC812 Workspace C Users nxp51 05 Desktop delete me Click Browse Ctrl Click Terminal window Fig 24 Current part number All information provided in this document is subject to legal disclaimers NXP B V 2013 All rights reserved User guide Rev 12 17 April 2013 21 of 49 NXP Semiconductors LPCXpresso 6 2 3 6 2 4 6 2 5 LPCXpresso_Getting_Started_Guide Getting started with NXP LPCXpresso Properties for Blinky A MCU settings uir Resource Builders 4 C C Build NXP LPC812 Build Vari
40. e Rev 12 17 April 2013 44 of 49 NXP Semiconductors LPCXpresso Getting started with NXP LPCXpresso 7 2 LPCXpresso PCB pinout and dimensions The schematics of the LPCXpresso Target and the LPC LINK debug connector appear in Fig 34 to Fig 47 The LPCXpresso board was designed to be pin compatible with NXP mbed LPCXpresso can be powered either through the debug mini USB port by 3 3 V applied to the board or by 5 V applied to the USB connector A cable for the 10 pin mini JTAG connector on the LPC LINK debugger portion of LPC Xpresso can be purchased from Digi Key part number FFSD 05 D 06 00 01 N Dimensions A dimensioned drawing of LPCXpresso can be found in Fig 48 The outer dimensions of LPCXpresso are 1 35x5 45 inches It contains two rows of holes 900 mil apart Each row has 27 connections and holes are drilled at a 100 mil pitch 1 2 JTAG TMS SWDIO o ui r 3 4 JTAG TCLK SWCLK d 3 i du ii 6 TDO SWO gt noe 9 10 RESET RTCK 5 Fig 49 LPCXpresso LPC LINK JTAG SWO pinout LPCXpresso_Getting_Started_Guide All information provided in this document is subject to legal disclaimers NXP B V 2013 All rights reserved User guide Rev 12 17 April 20133 45 of 49 NXP Semiconductors LPCXpresso Getting started with NXP LPCXpresso 7 3 Terminology LPCXpresso The Code Red Technologies IDE Integrated Development Environment based on Eclipse with o
41. e development platform and includes several LPC specific enhancements It is an industry standard GNU tool chain with an optimized C library that gives engineers all the tools necessary to develop high quality software solutions quickly and cost effectively The C programming environment includes professional level features There is syntax coloring source formatting function folding on and offline help and extensive project management automation The LPCXpresso target board jointly developed by NXP Code Red Technologies and Embedded Artists http www embeddedartists com products lpcxpresso includes an integrated JTAG debugger LPC Link so there s no need for a separate JTAG debug probe The target portion of the board can connect to expansion boards to provide a greater variety of interfaces and I O devices The on board LPC Link debugger provides a high speed USB to JTAG SWD interface to the IDE and it can be connected to other debug targets such as a customer prototype Users can also use the LPCXpresso IDE with the Red Probe JTAG adapter from Code Red Technologies Supported LPC products and board part numbers on the LPCXpresso platform e PC800 All part types supported OM13053 LPC812 e PC1100 part types supported 13014 LPC11U14 OM13012 LPC11C24 OM13035 LPC1115 OM13047 LPC1104 e PC1200 part types supported OM13008 LPC1227 e PC1300 part types supported OM13045 LP
42. ed with NXP LPCXpresso To activate your product from LPCXpresso choose Help gt Product activation gt Create serial number and Activate Once the wizard is open click Copy to clipboard to copy the LPCXpresso serial number into the clipboard This serial number is based on your machine s hardware and operating system configuration but contains no personally identifiable information Now click the button to open the registration activation page This should display a web form After completing the form you will receive an activation code via email within a few minutes Highlight the activation code in your email program and select Copy to place it into the Windows clipboard Now choose Help gt Product activation gt Enter Activation code from within LPCXpresso Paste the product activation code into the Product activation dialog by right clicking in the Activation code field and choosing Paste Then click the OK button You should receive a dialog confirming acceptance of the activation code It is also possible to complete LPC Xpresso activation on a PC that is offline as long as another PC has access to the Internet Refer to Fig 7 for the process Online PC 1 Register and download LPCXpresso from www code red tech com Ipexpresso to the offline PC log in and enter the LPCXpresso serial number from step 3 5 Once the activation code is received by email write it down Fig 7 _LPCXpresso activation wi
43. hts reserved User guide Rev 12 17 April 2013 12 of 49 NXP Semiconductors LPCXpresso Getting started with NXP LPCXpresso 4 1 2 Single perspective debug Develop Blinky src main c LPCXpres TEMP File Edit Source Refactor Navigate Search Project Run Window Help 1 amp SBT 25 SOG ped Frei SMFS 270 7 7 ON Y v x Quick Access ES o Develop lorer 55 Registers 23 Debug 53 i vn sts 1 Fe Blinky Debug C C MCU Application DSF Name Value Description 4 19 Blinky axf G Regist G IP Thread 1 main Suspended Breakpoint egiste eneral Purpose an nail 0101 0 B gdb r2 r3 0101 r4 Set port 16 to output aioi r5 GPIOSetDir 8 16 1 1010 0101 1010 r7 Set port 17 to output OxFFFFFFFF GPIOSetDir 17 1 OxFFFFFFFF init_mrt x80 4 4 while 1 Loop forever Hex x 0000400 Der Decimal 1024 I O configuration and LED setting pending f if mrt counter gt 0 amp amp mrt counter lt 200 78 1 Default exeeooo400 79 GPIOSetBitValue 0 7 0 4 ap Octal 00000002000 1 9590000000000000000000010000000000 if mrt counter gt 200 amp amp mrt counter lt 400 GPIOSetBitValue 0 7 1 KI EIFS
44. ing and debugging as well as program output 5 Quick Start View Below the Quick Start view has fast links to commonly used features LPCXpresso_Getting_Started_Guide All information provided in this document is subject to legal disclaimers NXP B V 2013 All rights reserved User guide Rev 12 17 April 2013 13 of 49 NXP Semiconductors LPCXpresso 4 1 2 1 LPCXpresso_Getting_Started_Guide Peripheral views Getting started with NXP LPCXpresso LPCXpresso includes full annotated and interactive debug views of all the peripherals Access to the views is found on the Peripherals View click the Peripherals tab behind the Project Explorer view Each peripheral can be selected and it is displayed in the Memory view which is located behind the Console view at the bottom of the LPCXpresso desktop Address 7 0x40024000 2 0x50000000 mZ DCR 000 FLASHCTRL 0540040000 GPIO PORT 0xa0000000 mF 0540050000 7 IOCON 0540044000 Z MRT 0x40004000 0xe000e000 PIN INT 0 0004000 8 PMU 0x40020000 SCT 0x50004000 Project Explorer Peripherals 23 Description Analog comparator Cyclic Redundancy Check Debug Core Registers v6M Flash controller n General Purpose I O port I2C bus interface configuration IOCON Multi Rate Timer MRT NVIC
45. ion provided in this document is subject to legal disclaimers NXP B V 2013 All rights reserved User guide Rev 12 17 April 2013 16 of 49 NXP Semiconductors LPCXpresso Getting started with NXP LPCXpresso Next select Browse from the Project archive zip section of the Import project s dialog The sample code bundles are located in the directory where the LPCXpresso IDE was installed under lpcxpresso Examples NXP Navigate to the sample code bundle that applies to your Target Device and select it Import project s eee o Import project s Select the examples archive file to import Projects are contained within archives zip or are unpacked within a directory Select your project archive or root directory and press lt Next gt On the next page select those projects you wish to import and press lt Finish gt Project archive zip Archive C nxp LPCXpresso_5 1 0_2048 pcxpresso Examples NXP LPC800 NXP_LPC8xx_SampleCodeBundle zip Project directory unpacked Root directory Browse for more examples Press Browse for more examples to view the latest examples and download to your local drive Then use press Browse above to import into your workspace Fig 16 Zip file from LPCXpresso Support web site selected for importing Now click the Next button and then choose which projects to import from the zip file LPCXpresso_Getting_Started_Guide All informati
46. layed Views can be saved and restored A specific configuration of Views is called a Perspective Typically LPCXpresso operates in a single perspective under which both the code development amp debug sessions operate as shown on the next page The single perspective greatly simplifies the Eclipse environment and enhances the entire LPCXpresso experience All Views in the Perspective can be moved around by dragging and dropping If a View is accidentally closed it can be restored by selecting it from the Show View dialog The Show View dialog can be opened from the Show View Other option in the Window menu New Window Mew Editor pen Perspective Include Browser Show View b IE i Project Explorer Other Preferences Ds ELEME Fig 8 Show view other menu LPOCXpresso Getting Started Guide All information provided in this document is subject to legal disclaimers NXP B V 2013 All rights reserved User guide Rev 12 17 April 2013 11 of 49 NXP Semiconductors LPCXpresso Getting started with NXP LPCXpresso 411 Single perspective code development n Develop Welcome page LPCXpresso File Edit Navigate Search Project Run Window Help DE HCE 3 ww v 05 Project Explorer 53 gt Blinky BOD CMSIS_CORE_LPC8xx t CMSIS DSPLIB comparator eS CRC 5 gpio
47. linky Debug Redlib semihost Include paths Blinky Debug Newlib none Library search paths Blinky Debug Newlib nohost Libraries Blinky Debug Newlib semihost Fig 27 Reconfigure library setting The printf implementation in Redlib is about half the size of the implementation in Newlib A smaller printf library can be used in Redlib if floating point formatting strings are not used To select this smaller library define the symbol INTEGER to the compiler i e DCR INTEGER PRINTF To save even more space avoid using printf or LPOCXpresso Getting Started Guide All information provided in this document is subject to legal disclaimers NXP B V 2013 All rights reserved User guide Rev 12 17 April 2013 23 of 49 NXP Semiconductors LPCXpresso Getting started with NXP LPCXpresso any C standard library functions and select Redlib none Depending on your printf settings and code this could free up 10K to 20K of flash memory 6 4 2 Optimization Optimization can do a lot to save flash memory It can be configured in the same dialog as the C standard library Choose Optimization under MCU C Compiler in the Tool Settings tab Higher levels of optimization will typically result in higher performance but may result in larger code size It is best to use O0 for debugging and higher levels for Release For best code size try Os mword relocations To further reduce
48. m PMU PMU Deselect All Copy projects into workspace Importing lib libCMSIS DSPLIB CMO0 a Q Back Next gt Fig 18 Import projects Progress indicator e Updates to the example code bundles can be found at http LPCWare com between releases of the LPCXpresso IDE LPCXpresso_Getting_Started_Guide All information provided in this document is subject to legal disclaimers NXP B V 2013 All rights reserved User guide Rev 12 17 April 2013 18 of 49 NXP Semiconductors LPCXpresso Getting started with NXP LPCXpresso 5 2 Debugging running blinky or another project on your LPCXpresso board In LPCXpresso when you start to debug your program will automatically download to the target and be programmed into flash memory To start debugging on your target simply highlight the project in the Project Explorer and then in the Quickstart Panel select Debug Projectname Debug 0 Q H GEV SB FEO EZ Start here 1 New project Import project s Build all projects Debug amp Build Blinky Debug Fig 19 Debug You may also enter debug mode by clicking the bug icon on the top LPCXpresso toolbar Cilia sO Sag e 95 0 3 Fig 20 Bug icon You are then presented with the debug view and toolbar and have run control over the code running on your target The debug toolbar will pop up above the
49. nded Hard Disk 500 MB of available space Screen Display Adaptor Adaptor 1024x768 minimum 1024x768 minimum recommended LLL Connection speed internet is recommended download and register the software Note LPCXpresso may install and run on other Linux distributions However only the distributions listed above have been tested Desktop virtualization tools supporting a Linux or Windows guest with USB support can be used to run LPCXpresso on other computing platforms 3 2 Installation process PCXpresso is installed into a single directory of your choice Multiple versions can be installed simultaneously without any issues The installation process is to double click the installer file after downloading Then click next on the setup wizard To install under Linux the downloaded file should be marked as executable first using chmod x Setup LPCXpresso Welcome to the LPCXpresso Setup Wizard This will install LPCXpresso 5 1 0 Build 2048 on your computer It is recommended that you close all other applications before continuing PRESSO Click Next to continue or Cancel to exit Setup powered by red COM esso Fig 4 Setup wizard LPOCXpresso Getting Started Guide All information provided in this document is subject to legal disclaimers NXP B V 2013 All rights reserved User guide Rev 12 17 April 2013 8 of 4
50. ny of these products are for illustrative purposes only NXP Semiconductors makes no representation or warranty that such applications will be suitable for the specified use without further testing or modification LPOCXpresso Getting Started Guide All information provided in this document is subject to legal disclaimers Getting started with NXP LPCXpresso Customers are responsible for the design and operation of their applications and products using NXP Semiconductors products and NXP Semiconductors accepts no liability for any assistance with applications or customer product design It is customer s sole responsibility to determine whether the NXP Semiconductors product is suitable and fit for the customer s applications and products planned as well as for the planned application and use of customer s third party customer s Customers should provide appropriate design and operating safeguards to minimize the risks associated with their applications and products NXP Semiconductors does not accept any liability related to any default damage costs or problem which is based on any weakness or default in the customer s applications or products or the application or use by customer s third party customer s Customer is responsible for doing all necessary testing for the customer s applications and products using NXP Semiconductors products in order to avoid a default of the applications and the products or of the application or use by cust
51. ocenter arm com help index jsp ARMv 6 M Architecture Reference Manual Cortex MO LPC1 1 http infocenter arm com help index jsp All information provided in this document is subject to legal disclaimers NXP B V 2013 All rights reserved User guide Rev 12 17 April 20133 47 of 49 NXP Semiconductors LPCXpresso 9 Legal information 9 1 Definitions Draft The document is a draft version only The content is still under internal review and subject to formal approval which may result in modifications or additions NXP Semiconductors does not give any representations or warranties as to the accuracy or completeness of information included herein and shall have no liability for the consequences of use of such information 9 2 Disclaimers Limited warranty and liability Information in this document is believed to be accurate and reliable However NXP Semiconductors does not give any representations or warranties expressed or implied as to the accuracy or completeness of such information and shall have no liability for the consequences of use of such information NXP Semiconductors takes no responsibility for the content in this document if provided by an information source outside of NXP Semiconductors In no event shall NXP Semiconductors be liable for any indirect incidental punitive special or consequential damages including without limitation lost profits lost savings business interruption cost
52. omer s third party customer s NXP does not accept any liability in this respect Export control This document as well as the item s described herein may be subject to export control regulations Export might require a prior authorization from competent authorities Evaluation products This product is provided on an as is and with all faults basis for evaluation purposes only NXP Semiconductors its affiliates and their suppliers expressly disclaim all warranties whether express implied or statutory including but not limited to the implied warranties of non infringement merchantability and fitness for a particular purpose The entire risk as to the quality or arising out of the use or performance of this product remains with customer In no event shall NXP Semiconductors its affiliates or their suppliers be liable to customer for any special indirect consequential punitive or incidental damages including without limitation damages for loss of business business interruption loss of use loss of data or information and the like arising out the use of or inability to use the product whether or not based on tort including negligence strict liability breach of contract breach of warranty or any other theory even if advised of the possibility of such damages Notwithstanding any damages that customer might incur for any reason whatsoever including without limitation all damages referenced above and all direct
53. on provided in this document is subject to legal disclaimers NXP B V 2013 All rights reserved User guide Rev 12 17 April 2013 17 of 49 NXP Semiconductors LPCXpresso Getting started with NXP LPCXpresso ih Import project s Select a directory to search for existing Eclipse projects Projects Blinky Blinky BOD BOD CMSIS_CORE_LPC8xx CMSIS_CORE_LPC8xx CMSIS DSPLIB CMO CMSIS DSPLIB CMO0 comparator comparator CRC CRC gpio gpio 2C Ipc800 driver lib Ipc800 driver lib LPC812 SCT 4ch pwm LPC812 SCT 4ch pwm LPC812 Sct Blinky LPC812 Sct Blinky LPC812 SCT pwm decode LPC812 SCT pwm decode LPC812 SCT um pwm LPC812 SCT um pwm PMU PMU 4 Copy projects into workspace 9 17 Import projects s Selecting which projects to import Often there will be references between projects in a zip file so it is best to import all of them Select a directory to search for existing Eclipse projects Projects Blinky Blinky Select All BOD BOD CMSIS CORE LPC amp xx CMSIS CORE LPC8xx CMSIS DSPLIB CMSIS_DSPLIB_CM0 Refresh comparator comparator gpio RC 20 Ipc800 driver lib Ipc800 driver lib LPC812 SCT 4ch pwm LPC812 SCT 4ch pwm LPC812 Sct Blinky LPC812 Sct Blinky LPC812 SCT pwm decode LPC812 SCT pwm decode LPC812 SCT um pwm LPC812 SCT um pw
54. r that will direct viewers to the datasheet of the device Just click on the part number in the lower right border of the LPCXpresso window to see the browser in action c Ipc amp xx gpio c 6 main c Welcome Technical support portal NXP Semiconductors 53 E P amp _ http www nxp com technical support portal tid 50809 sid 71790 bt tab datasheets p 1 rpp sc so Datasheets 1 User Manuals 1 Literature 3 Show all 5 Documents m Viewing 1 to 1 of 1 rows 25 rows File Name Title va Format Date Ya dj LPC81XM 32 bit ARM Cortex M0 microcontroller up to 16 kB flash and 4 SRAM Data sheet pdf 2013 01 28 RSS AN 1 4 M ime Miha A I t Fig 26 Integrated web browser 6 4 Code size 6 4 1 printf When optimizing a project for size if you are using printf make sure that Redlib is selected as the standard library in the Projects Properties dialog This option can be set using the Quick Settings dropdown box in the Quick Start panel U Quickstart Panel 22 6 Variables Breakpoints Outline Expressions New project Import project s lam Build all projects Debug amp Build Blinky Debug g Clean Blinky Debug Debug Blinky Debug Q3 QuickSettings 3 Set library type Redlib none Defined symbols Blinky Debug Redlib nohost Undefined symbols B
55. r the LPCXpresso LPC1200 target side 1 of 2 dXN 5 9 5 1 SIOJONPUODIWIS XN 1 ossaidxod epint peuels LOZ Idy ZL 21 S1euure osip s JUSLUNDOP SIU mbed ND PCXpresso GND VIN LAPA VIN 4 5 5 5 not used VR haters sr pal y rR 3 FESET POOF SPIHAVIRO Prine MISO PI2O 4 Sok PID 5 UART1 TX PRO TXD UARTI RY 1201 500 PRKO_ Ral CSI 7 PROS SPI2 32L UBRT2 x 5 TAD 1 UAn 21x RHXD1 AINA apo AN1 31 01 pene Phol 2 c O A 2C POE ENAZ Phou 2t 25 Pots su 5b Dual row holes 2x27 100 rril PHS Bj PSs 298 P 9 LPC LINK side Expansion Connector _ superset of mbed pinning EgO pon ep PRD 2533 Pie Pis Pg pg ERA 2425 Pts 525 235 ppr ET pga px qux Diu gt P D B E Fe Fig 42 Schematic for the LPCXpresso LPC1200 target side 2 of 2 P CO 12 Pon 4 11 P eo 10 0 4 nca 5 8 Pou 21 P CO 24 Poo 3 22 P CO 26 Poo 26 Po 2 NDX LPCXpresso mbe
56. robleme U Instructio ce Red Tr 5 Bm carsales ta display at this time E Preject and File wizarris E import arid Export E Build and Settings E Debug and Run we Fig 1 LPCXpresso IDE 1 3 LPCXpresso development board io pabaidd ie Embedded Artiste 4 Code LPC Link Target Fig 2 LPCXpresso development board LPCXpresso_Getting_Started_Guide All information provided in this document is subject to legal disclaimers NXP B V 2013 All rights reserved User guide Rev 12 17 April 2013 5 of 49 NXP Semiconductors LPCXpresso Getting started with NXP LPCXpresso 1 4 LPC LINK JTAG SWD debugger The LPCXpresso board contains JTAG SWD debugger called the LPC Link and a target MCU LPC Link is equipped with a 10 pin JTAG header highlighted on the above image and it seamlessly connects to the target via USB the USB interface and other debug features are provided by NXP s ARM9 based LPC3154 MCU Cutting the tracks between the LPC link and the target will make the LPC Link a stand alone JTAG debugger This enables the LPCXpresso platform to be connected to an external target and used to develop for a wide variety of NXP s Cortex MO Cortex M3 and ARM7 9 based applications Currently supported microcontroller products include LPC800 LPC1100 LPC1200 LPC1300 LPC1
57. s related to the removal or replacement of any products or rework charges whether or not such damages are based on tort including negligence warranty breach of contract or any other legal theory Notwithstanding any damages that customer might incur for any reason whatsoever NXP Semiconductors aggregate and cumulative liability towards customer for the products described herein shall be limited in accordance with the Terms and conditions of commercial sale of NXP Semiconductors Right to make changes NXP Semiconductors reserves the right to make changes to information published in this document including without limitation specifications and product descriptions at any time and without notice This document supersedes and replaces all information supplied prior to the publication hereof Suitability for use NXP Semiconductors products are not designed authorized or warranted to be suitable for use in life support life critical or safety critical systems or equipment nor in applications where failure or malfunction of an NXP Semiconductors product can reasonably be expected to result in personal injury death or severe property or environmental damage NXP Semiconductors and its suppliers accept no liability for inclusion and or use of NXP Semiconductors products in such equipment or applications and therefore such inclusion and or use is at the customer s own risk Applications Applications that are described herein for a
58. sa sU 610 AA dXN From LPC LINK Side 20 3van ux LPC176X Target Side AG IMS R36 0m MS SWDIO 1 TMS 4 TCK SWOCLK mTCK TDO SWO JP1 normally shorted Can be used for gt current consumption measurements on U7 ma 1266 Fig 34 Schematic for the LPCXpresso LPC1769 target side 1 of 3 07655 LPC176X RESET N RSTOUT_N LED aux LED2 RED GNOX C gt Embedded Artists AB TITLE LPCXpresso LPC1769 rev B Document Number Date 2010 10 19 14 13 36 Sheet 5 7 osse1dx23d1 dXN peueis ossa1Jdy SJOJONPUODIWIS XN 1 ZL 21 sjeuurejosip 0 s jueunoop siu u 6t JO 15 osseidXod1 peuels pamasa ELOZ dXN F i 07657 LPC1T6X RD TXD3 50A RXD3 SCL _ 7 RXDO ADOG ROG CAP20 PO 5_I25AX WS_TO _CAP2 1 P0 6 2SRX SDA SSEL MAT2 0 PQ 7 I25TX CLK SCK MAT2 POR GSTX WS MISO MAT2 2 0 9_123 50 3 10 TXD2 5DA2 11 RXD2 5012 MAT3 1 POTS_TXD1_SCKO_SCK 36 55 10 SSEL P017 CTS MISOO MISO P9 1 DCD MOSIO MOS P0 18 259 SDA P020 P0 21_RIT_RO P022 RTS1 TO P0 23_AD0 0_I2S
59. sso Forum The LPCXpresso Forum community is exclusively built for LPCXpresso users and is an invaluable resource for getting help and advice on use of the LPCXpresso tools and boards So get connected and join the LPCXpresso community x To view the forum and to register so that you can post visit www nxp com Ipcxpresso forum General Information x Visit the NXP LPCXpresso website Console X Problems Men No consoles to display at this time 1 Project Explorer View The Project Explorer gives you a view of all the projects in your current Workspace A Workspace is a collection of projects that are stored in a single Workspace Directory on your computer 2 Editor On the upper right is the editor which allows modification and saving of source code as well as setting breakpoints in debug mode 3 Console and Problems Views On the lower right are the Console and Problems Views The Console View displays status information on compiling and debugging as well as program output The Problem View available by changing tabs shows all compiler errors and will navigate the Editor View to the error location 4 Quick Start View Below the Quick Start view has fast links to commonly used features This is the best place to go to find options such as Build Debug and Import LPOCXpresso Getting Started Guide All information provided in this document is subject to legal disclaimers NXP B V 2013 All rig
60. t side 3 of 3 Diis AD Efarnat AD Ethernet E E pm PWMOLT 1 PWMOUTS PMMOLITA P2 2 PANT Ped 5 tC Embedded Artists AB TITLE LPCXpresso 1763 rev B Document Number Sheet 777 Date 2818 18 13 14 19 36 osse1dxX23d1 dXN peueis 9 ossa1Jdy SJOJONPUODIWIS XN 1951 LOZ ZL 21 6t JO 5 epino pamasa SU 5102 AA dXN From LPC LINK Side mo L MILIA LEA i d A DO svo TAG ___ POWX _____ Car 16pF ECCE CLE OUT T_T S SSELOMCTIBBO FiOO a MOSITHICT 1680 TO SCKIFCT 1680 TRESS PIO LVAD Tat TROP _ TS TRE TPI _ MAT STO MATZ PX A ADECTSPEM ERSTESCT3SBO0 PRJ _ MAT PICH EXCTTGBT SUCTIOH MATO fOMDETTISB MAT 11 ADIT 1 ZYDECDUMISCT _ POE 4 PIE Hote SWO does nol exist on LPCT114 R37 33H WA LPC1114 Target Side UN VIN 4 5 14V P
61. targets Redlib The optimized Code Red Technologies C runtime library non GNU LPCXpresso includes both Redlib and Newlib libraries LPOCXpresso Getting Started Guide All information provided in this document is subject to legal disclaimers NXP B V 2013 All rights reserved User guide Rev 12 17 April 20133 46 of 49 NXP Semiconductors LPCXpresso 8 References LPCXpresso_Getting_Started_Guide 1 2 3 4 5 6 7 8 9 10 11 12 13 Getting started with NXP LPCXpresso LPCXpresso http www nxp com lpcxpresso NXP LPCZone http www nxp com lIpczone NXP Microcontrollers http www nxp com microcontrollers Code Red Technologies Wiki http lpcxpresso code red tech com LPCXpresso softwareknowledgebase Code Red Technologies LPCXpresso page http lpcxpresso code red tech com Embedded Artists AB http www embeddedartists com Harbison S P amp Steele G L 2002 C A Reference Manual 5 Edition Prentice Hall Yiu J 2007 The Definitive Guide to the ARM Cortex M3 Oxford UK Newnes Yiu J 2011 The Definitive Guide to the ARM Cortex MO Oxford UK Newnes ARM Cortex M3 Technical Reference Manual Revision r2p0 ARM DDI 03376 http infocenter arm com help index jsp ARM Cortex MO Technical Reference Manual Revision r1p0 ARM 00104130 http infocenter arm com help index jsp ARMv7 M Architecture Reference Manual ARM DDI 0403 http inf
62. th offline PC 2 Transfer the LPC Apresso installer 4 Browse to Ipcxpresso code red tech com L PC Xpresso serialnumber Offline PC 3 Install LPCXpresso 4 Select Create Serial Number and Activate from the Help menu Write down serial number and click OK 6 Select Enter Activation Code from the Help Product Activation menu and type in the activation code from step 5 and click OK LPOCXpresso Getting Started Guide All information provided in this document is subject to legal disclaimers NXP B V 2013 All rights reserved User guide Rev 12 17 April 2013 10 of 49 NXP Semiconductors LPCXpresso Getting started with NXP LPCXpresso 4 Getting familiar with the LPCXpresso IDE LPCXpresso IDE is based on the Eclipse IDE framework and many of the core features are described well in generic Eclipse documentation and in the help files found in the help menu of the product Further documentation and pointers to useful documents are also available on the Code Red Technologies Wiki at http support code red tech com CodeRedWiki 41 Layout of the LPCXpresso desktop LPCXpresso s Desktop contains many windows Each window is called a View because it displays a particular view of data in the LPCXpresso environment This data could be source code hex dumps disassembly memory contents or more Views can be opened moved docked and closed and the layout of the currently disp
63. that you imported into the workspace earlier and click Finish New project Select options for this project Library projects Select standard library projects that you want your application to link with Any selected library project s must already exist in your workspace they can be imported from the Examples subdirectory of your IDE installation CMSIS peripheral header files initialization code and DSP library CMSIS Library to link project to CMSIS CORE LPCExx CMSIS DSP Library to link project to None Driver Library Library to link project to None Fig 32 CMSIS selection Congratulations You have created your first project LPOCXpresso Getting Started Guide All information provided in this document is subject to legal disclaimers NXP B V 2013 All rights reserved User guide Rev 12 17 April 2013 27 of 49 LPCXpresso Getting started with NXP LPCXpresso NXP Semiconductors gt docs ifdef _ USE_CMSIS gt inc include LPC8xx h 4 9 src endif 8 system_LPC8xx c history txt include cr section macros h liblinks xml include NXP crp h gt CMSIS DSPLIB CMO 189 Variable to store CRP value in Will be placed automatically gt Ipc800 driver lib 19 by the linker when Enable Code Read Protect selected 125 MyProject 20 See crp h header for more information gt j Includes 21 __ const unsigned int CRP_WORD CRP
64. ur own extensions for embedded development SWD Serial Wire Debugging Single Wire Debugging This is a debug connection technology available on the Cortex M3 that allows debug through just 2 wires unlike 5 for JTAG ELF Executable and Linking Format This is the object code file format used by our development tool chain and most microprocessor tool chains Workspace LPCXpresso organizes groups of projects into a Workspace A workspace is stored as a directory on your host PC and has subdirectories containing individual projects Project An LPCXpresso project A project contains all of the c and h files to build a single microcontroller flash image Perspective In LPCXpresso a perspective is a particular collection of Views that are grouped together to be suitable for a particular use For example the C C programming perspective and the Debug perspective View A View is a window in LPCXpresso that shows a particular file or activity A view could be of a C source code file or something live such as a disassembly window or register dump A Perspective is the layout of many Views Semi hosting The ability to use 10 on your debugger host system for your target embedded system For example a printf will appear in the console window of the debugger Debug Target The system being debugged LPCXpresso includes a target microcontroller on board but can also be connected to external
65. with Instruction Trace please refer to the Getting Started with Red Trace guide that is available for download from the Code Red support website http support code red tech com CodeRedWiki NewInVersion5 Please note that only the Instruction Trace part of the guide is applicable to the L PCXpresso IDE 6 LPCXpresso IDE tips and tricks 6 1 6 2 6 2 1 LPOCXpresso Getting Started Guide Installing Eclipse plugins The LPCXpresso IDE contains many of the features of the Eclipse open source IDE from http www eclipse org The browse and install plugin function is present in the help menu To access it choose Help Install New Software This will display the Eclipse Install Software dialog which will allow browsing and installing of Eclipse plugins Debugging tips Debug features not enabled All of the LPCXpresso features are context sensitive If features are disabled double check that you are navigated into a c file in an open project on the Project Explorer View or some menu items and toolbar buttons may be disabled If your workspace All information provided in this document is subject to legal disclaimers NXP B V 2013 All rights reserved User guide Rev 12 17 April 2013 20 of 49 NXP Semiconductors LPCXpresso 6 2 2 LPCXpresso_Getting_Started_Guide Getting started with NXP LPCXpresso contains projects that create libraries such as CMSIS please note that debug features will be disable

Download Pdf Manuals

image

Related Search

Related Contents

Worldwide Lighting W83025C24 Installation Guide  MANUAL DE INSTALACIÓN PARA BROCAL PLUVIAL  Samsung CLP-650N Brugervejledning  ZEUS-3D USER MANUAL  Toshiba 26HF84 CRT Television User Manual  KOHLER K-10257-A-BN Installation Guide  HAD mode d`emploi - Hôpital de Bois Guillaume - Croix  tutorial in the User Manual  DECT 8048 - Audioline  User manual  

Copyright © All rights reserved.
Failed to retrieve file