Home
PDF document - Eetasia.com
Contents
1. NXP B V 2013 All rights reserved For more information visit http www nxp com For sales office addresses please send an email to salesaddresses nxp com Date of release 13 June 2013 255013 Document identifier AN11308
2. cccccsseeeeeeeeeseeeeeeeeeeeeeeees 21 Importing the project ccccecceeeeeeeeeeeeeeeeeees 24 Architecture of the NXP reader library 27 Select the build configuration ccceeeeee 28 Selection Of MCU cccceeseeeeceeeeeesaeeeeeeeeees 29 Select the level of optimization 66 30 Open Current Launch Configuration 31 Disable the initial breakpoint 0 cee 32 Change the MCU Setting cccccccceeeeeeeeees 33 Change the MCU setting c cccseeeeeeeeees 34 Change Active Build configuration 34 Included and excluded fiels are mismatched in the project pane 2 0 ceccccceeecceceeeeeeaeeeeeeeeeees 35 NXP B V 2013 All rights reserved Application note COMPANY PUBLIC Rev 1 3 13 June 2013 255013 39 of 40 NXP Semiconductors AN11308 10 Contents 1 5 9 2 5 6 5 6 1 5 6 2 5 6 2 1 5 6 2 2 6 6 1 6 1 1 6 1 2 6 1 3 6 1 4 6 2 6 3 6 4 6 4 1 6 5 INTOUCH ON sasn 3 Hardware overview of the Demo Reader 3 PNEV512B demo DOald ccseeeeecseeeeeeeeeeeees 3 CE certification of the Blueboard 008 4 LPCXpresso LPC1115 development board 4 Alternative to the LPCXpresso LPC1115 5 Preparation of the hardware c cccseceseeeees 5 Interesting points of measurement 000 6 Preparing the Blueboard for the use with SPI
3. Application note COMPANY PUBLIC Rev 1 3 13 June 2013 22 of 40 255013 NXP Semiconductors AN1 1 308 PNEV512B Quick Startup Guide inside contactless card products as mapping models as well as the management of NFC forum device as a specific platform such as a NFC Forum Type 4 Tag are defined in 7 The following project shows an exemplary implementation of a Tag 4 Type Card on the PN512 Therefore one NDEF File and one capability container CC file with ISO file identifier ISO FID equal to E103h are presented to the reader The project just offers the methods to read a URL from the card emulation and can only be seen as one example as it is not fully validated 5 5 1 Adaptation of the NDEF message The exemplary implementation was added to the NXP Reader Library in the following way e Protocol Abstraction Layer Added phpall14443p4C for the implementation of the protocol layer for the card folder e Comps Added phceT4T for the implementation of the functions for Type 4 Tag The implementation does only implement short record of NDEF messages as described in 8 page 15 The table is connected to structures pNDEF_SHORT_text and ONDEF_SHORT_uri in the header file ndef_message h A second structure is NDEF_messages including e type of NDEF message type it can be a TEXT message NDEF_TYPE_TEXT see 9 page 4 or a Uniform Resource Identifiers message NDEF_TYP_URI see 10 page 5 e parameter of NDE
4. i No card Tag detected anpoit apt Ep No card Tag detected No card Tag detected No card or Tag detected MIFARE Classic detected MIFARE Classic detected PN512 Polling NXP LPC1115 303 Fig 28 Run the project After the software upload the execution of the project starts immediately All information provided in this document is subject to legal disclaimers NXP B V 2013 All rights reserved Application note COMPANY PUBLIC Rev 1 3 13 June 2013 255013 20 of 40 NXP Semiconductors AN1 1 308 PNEV512B Quick Startup Guide E Console 22 E Problems Memory Red TracePreview Mt S REEF AEn PN512 Polling Debug C C MCU Application C Users nxp workspces test PN512 Polling Debug PN512 Polling axf 02 11 12 14 06 No card or Tag detected gt No card or Tag detected No card or Tag detected No card or Tag detected No card or Tag detected No card or Tag detected MIFARE Classic detected MIFARE Classic detected lanj PN512 Polling NXP LPC1115 303 Fig 29 Run the project In the console window at the bottom one will see the debug output of the execution ro X S wch Run Project Window Help d Sev A i i boo E A PHA E E X Develop a E PN512 Polling Debug C C MCU Application 4 MCU GDB Debugger 02 11 12 14 06 p Thread 1 Running po arm none eabi gdb 02 11 12 14 05 eS ae te A ee ee ees Pe
5. be able to obtain an W Quick 22 gt All RedC 69 Varia E Start here New project 1 Help gt Product activation gt Create Serial number and Activate Your products serial number will be displayed Import project s Write down the serial number or copy it into the clipboard B Build all projects i 2 Press OK and a web browser will be opened on the Activations page If you are already logged in to the website the serial number will be completed for you If you are not logged in you will need to login navigate to the My Registrations page and enter the products seria r mimber 4 ae lene E console SUN E Problems p Memory Hl Red Trace Preview 4Eerpi 7o 38 Quick Settings v No consoles to display at this time E Project and File wizards E Import and Export Bilild anrd Gettinac B p workspace Fig 18 LPCXpresso IDE Directly after the first start of the Eclipse IDE one will see an info dialog that this is only an unregistered copy of LPCXpresso IDE Just confirm the dialog and follow the AN11308 All information provided in this document is subject to legal disclaimers NXP B V 2013 All rights reserved Application note Rev 1 3 13 June 2013 14 of 40 COMPANY PUBLIC 255013 NXP Semiconductors AN1 1 308 PNEV512B Quick Startup Guide instructions on the Welcome Screen to get a registered version without the debug
6. both USB ports to the computer If the USB port of the Blueboard is not connected to a USB port it won t work because of the missing power AN11308 All information provided in this document is subject to legal disclaimers NXP B V 2013 All rights reserved Application note Rev 1 3 13 June 2013 10 of 40 COMPANY PUBLIC 255013 NXP Semiconductors AN1 1 308 PNEV512B Quick Startup Guide File i Action View Help 9 m Clb a EENE gt lis Monitors b EP Network adapters gt 13 Ports COM amp LPT b T Processors b TE smart card readers T q Sound video and game controllers gt Storage controllers i System devices l rE a Universal Serial Bus controllers uo Generic USB Hub a Generic USB Hub Generic USB Hub Generic USB Hub Generic USB Hub Intel R 6 Series C200 Series Chipset Family USB Enhanced Host Controller 1026 Intel R 6 Series C200 Series Chipset Family USB Enhanced Host Controller 1C2D USB Composite Device SE Composite Device Fig 12 Enumeration of the LPCXpresso Board in Device Manager Window 4 Managing the Demo Reader project with LPCXpresso IDE 4 1 The demo reader project is delivered in a zip package It can be extracted edited compiled and linked with LPCXpresso IDE LPCXpresso is a new low cost development platform available at NXP It supports NXP s ARM based LPC microcontrollers The platform comprises a simplified Eclipse ba
7. limit of 8k The registration is free and is needed to navigate to the website of Code Red The Link is shown in the menu Help gt Product activation gt Create Serial number and Activate enn i g Ei P Help Contents Bs Ss Te a Bir En p P Search SS Dynamic Help Key Assist Ctrl Shitt L Tips and Tricks Product activation Support Install New Software About LPCApresso Upgrade your product Fig 19 Product activation Create Serial number and Activate Select OK to visit the registration website where you can register your product and recerve an Activation Code Serial number AOIX EZGW PTDX IVA2 E1 G3 P2P2 COIR DWK2 N5I5 ALIT Copy Serial Number to clipboard Fig 20 Product activation If one doesn t already have an account at Code Red please sign up to get an activation code The code will be sent to the provided e mail address AN11308 All information provided in this document is subject to legal disclaimers NXP B V 2013 All rights reserved Application note Rev 1 3 13 June 2013 15 of 40 COMPANY PUBLIC 255013 NXP Semiconductors AN1 1 308 PNEV512B Quick Startup Guide C Window re ii 7 Help Contents re en a eS Gl Q TP Search a a eea eM Dynamic Help Key Assist Ctrl Shitt L Tips and Tricks Product activation t Display license type Support t Create Serial numb
8. or BS asec agen tase casa E E EE 7 Optional interfaces and power supply 8 Configuring the additional interfaces 8 Configuring the power SUPDIY ceeeeeeeees 9 Installation of the LPCXpresso Board 10 Managing the Demo Reader project with LPCXpresso IDE cccssssseecccnnsseeceennnseeeees 11 Installation of LPCXpresso IDE 0008 11 Extraction of the demo reader project 16 Start the DFO CCK awcisstsaceniiesnionausincaniocaisworeedacsvennesieds 19 RUN the PrOject cccccccsssseeeeeeeeeeeeeseeeeeeeeeees 19 Associated Projects ccccccssssecssssesseesseeeneees 22 Communication with MIFARE Ultralight 22 Communication with MIFARE Classic 22 Communication with MIFARE DEGSFire 22 Fe OMI eesis T 22 Exemplary Tag 4 Type Card Emulation 22 Adaptation of the NDEF message 065 23 Sending the NDEF messag 0ssseeeee 23 Peer to Peer functionality ccccccceeeeeeeeeees 23 HS FANG g E E E 24 SNEP client Project cccccceeeeececeeeeeeseeeeeees 24 What is going on inside cee ceeeeeeeeeeeeeeeeeeees 25 Choosing the NDEF messagQ sccceseeees 25 Supplementary Notes cccscecssssseeeeeeeneees 26 Software architecture cccccesecceeeeeseeeeeeeeees 26 Bus abstraction layer ccccccesseeseeeeeeeeee
9. overview of the hardware for working with the PN512 contactless reader IC we use the LPCXpresso LPC 1115 303 and the Blueboard Chapter 2 the installation procedures of the Development Environment Chapter 4 1 and the handling of the reader projects using the NXP Reader Library Chapter 4 2 The projects used in this documentation are e Communication with MIFARE Ultralight gt Chapter 5 1 e Communication with MIFARE Classic gt Chapter 5 2 e Communication with MIFARE DESFire gt Chapter 5 3 e Polling for Tags in the RF field gt Chapter 5 4 e Using the PN512 in Card Emulation mode gt Chapter 5 5 e Exemplary Peer to Peer functionality gt Chapter 5 6 Each project can also run on the LPCXpresso LPC1227 board Chapter 6 9 2 Hardware overview of the Demo Reader The demo reader is made up of 2 separate boards e A PNEV512B demo board provided by NXP 12NC 9352 981 99699 This board has connectors which are designed to exactly fit the ones of the companion LPCXpresso LPC 1115 303 development board e Acommercial LPCXpresso LPC 1115 303 development board 12NC 935297664598 Type OM13035 598 which can be provided by NXP or bought directly on the market See 1 Once the two boards are put together via the connectors the demo reader is ready for use 2 1 PNEV512B demo board Fig 1 Picture of PNEV512B demo board The PNEV512B demo board embeds the contactless communication transceiver IC PN512 with all it
10. product information and data sheet http www nxp com products interface_and_ connectivity nfc_devices series PN512 html 3 LPC11XX family User Manual www nxp com redirect ics nxp com support documents microcontrollers pdf locxpresso getting started 4 Multipoint Connectors we used Grid Dimension 2 54mm at least 27 pins www nxp com redirect bkl electronic de index ohp catalog product view id 9644 s 10120182 category 72 and www nxp com redirect bkl electronic de index php catalog product view id 9688 s 10120802 category 73 or www nxp com redirect conrad at ce de product 741119 S TIF TLEISTE 1 X 36 POLIG VERGOL RM 254 and www nxp com redirect conrad at ce de product 736427 BUCHSENLEISTE EINREIHIG 36 POLIG RM254 5 Direct link to the NXP Reader Library http www nxp com documents software 200310 zip 6 Using the PNEV512B in Card Emulation mode http www nxp com demoboard PNEV512B html 7 TYPE 4 TAG NFC Forum Type 4 Tag Operation Specification Version 1 0 March 13 2007 www nxp com redirect nfc forum org specs 8 _NDEF NFC Data Exchange Format NDEF Technical Specification NFC Forum Revision 1 0 July 24 2006 www nxp com redirect nfc forum org specs 9 TEXT RTD Text Record Type Definition Technical Specification NFC Forum RTD Text 1 0 July 24 2006 www nxp com redirect nfc forum org specs 10 URI RTD URI Record Type Definition Technical Specification NFC Forum RTD URI 1 0 July 2
11. to legal disclaimers NXP B V 2013 All rights reserved Application note Rev 1 3 13 June 2013 23 of 40 COMPANY PUBLIC 255013 NXP Semiconductors AN1 1 308 5 6 1 5 6 2 AN11308 PNEV512B Quick Startup Guide Because the P2P implementation is still in alpha phase one will find very rudimentary support for the protocol At the moment the project supports the communication via the SPI protocol and runs on the LPCXpresso LPC1227 development board which provides sufficient 128kB of flash memory Installation After downloading and unpacking the zip file please run the installer The installer just copies the LPCXpresso project files to the file system After the installation has finished please run the included batch file located in the installation directory NxpRdLibP2PExtensions x X X NxpRdLib_P2PExtensions ex Pn512_Lpc12xx_P2P_Demo After the batch file has been executed successfully please start the LPCXpresso IDE and import the project Browse to the root of the installation directory E inpon projects O O O OOO OOOO OOl 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 Next gt On the next page select those projects you wish to import and press lt Finish gt Project archive zip Archive Project dineetary Roof directory C Program Files
12. which is divided into 4 layers e BAL Bus Abstraction Layer e HAL Hardware Abstraction Layer e PAL Protocol Abstraction Layer e AL Abstraction Layer All information provided in this document is subject to legal disclaimers NXP B V 2013 All rights reserved Application note COMPANY PUBLIC Rev 1 3 13 June 2013 26 of 40 255013 NXP Semiconductors AN1 1 308 6 1 1 6 1 2 AN11308 PNEV512B Quick Startup Guide Virtual Card MIFARE Architecture DESFire Hardware independent Platform independent Es aaee A EAE gt AVZX Sam AV2 Rd70x USB Fig 33 Architecture of the NXP reader library For a detailed description of the NXP Reader Library please refer to the user manual UM10663 Quick Start Up Guide PNEV512B Board It can be downloaded web site of the PNEV512B demo board 12 Although it refers on examples to the CLRC663 reader IC it still covers the NXP Reader Library for all other supported reader ICs Bus abstraction layer This layer offers functions to abstract the hardware parts of the LPC11XX microcontroller These functions use the specific libraries available for the LPC11XX family microcontroller Based on these stacks the communication routines for the relevant physical media I2C SPI can be easily designed These drivers are specific for the LPC11XX family and therefore cannot be ported to other microcontrollers Hardware abstraction layer This layer of
13. x86 NXP Semiconductors NxpRdLibP2PExtensions 2 0 3 Cancel Fig 32 Importing the project After the import there are two new projects in the workspace one for the use with the RC663 Blueboard and one for the use with the PN512 Board Basically these two projects provide the same functionality SNEP client project In this project the LPC1227 with PNEV512B board attached behaves like SNEP client with performing the Put request functionality only 14 On the other side there must be a device peer capable of NFC communication and providing the SNEP server service These conditions are fulfilled by a mobile device with Android platform 4 0 or later Here is a short instruction list how to use the SNEP client software 1 Run the SNEP client project as described in section 4 3 1 with respect to LPC1227 microcontroller configuration in section 6 9 2 Hold your NFC device smartphone approximately 5 centimeters above antenna of the PNEV512B Blueboard 3 Once the NFC detected in the RF field of the transmission of the NDEF message is started You may be notified by a sound or vibration of your device The All information provided in this document is subject to legal disclaimers NXP B V 2013 All rights reserved Application note COMPANY PUBLIC Rev 1 3 13 June 2013 24 of 40 255013 NXP Semiconductors AN1 1 308 5 6 2 1 5 6 2 2 AN11308 PNEV512B Quick Startup Guide transmission may t
14. 0886598 Type OM11049 598 without the need of any adaptation in the code By doing two subtle modification in project configuration in LPCXpresso IDE all the projects can run with the LPCXpresso LPC1227 12NC 935294603598 Type OM13008 598 development board For more information please see chapter 6 9 Preparation of the hardware The first step after unpacking the Blue Board and the LPCXpresso is soldering the connectors onto the boards to get them together In our example we use a multipoint connector as one can see on the pictures below All information provided in this document is subject to legal disclaimers NXP B V 2013 All rights reserved Application note COMPANY PUBLIC Rev 1 3 13 June 2013 5 of 40 255013 NXP Semiconductors AN1 1 308 PNEV512B Quick Startup Guide Fig 4 Multipoint Connectors we used One may buy these connectors at any electronic store Here are some examples 4 After soldering the connectors join the boards as shown on the following figure Fig 5 LPCXpresso with the Multipoint Connectors Now the hardware is ready for use Please connect the LPCXpresso board with the Blueboard We ETT ME EADIE oa iddbbveaddbnnss pes Fig 6 Connect the two boards 2 6 Interesting points of measurement On the PNEV512B demo board one can find test pads for measurement purposes AN11308 All information provided in this document is subject to le
15. 227 a 6 Ipclils gt cmsis t driver t fe linker n a gt driver_config h b b hw_config h to e ph_HwBus c ph_HwBus h t E gt Releasel 22 a gt Ipcl2 b gt cmsis gt driver t G linker aja WAY driver_config h mil hw config h le ph_HwEus c GAT ph_HwBus h Polling Leet 1115 launch PN512 Polling Debugl227 Jaunch PN512 Polling Releasel115 Jaunch PN512 Polling Releasel227 launch Readme tt E PN512 Ultralight Fig 42 Included and excluded fiels are mismatched in the project pane LPCXpresso 4 Is Welcome to LPCXpresso 4 1 generate and download appl betting Started Please read the getting starte LPCXpresso Getting Sta The Red State Guide pr LPCXpresso Resources Check the LPCXpresso Supp s Visit wiw nxp comilpe LPCX presso Forum The LPCXpresso Forum com advice on use of the LPCXpr 50 get connected and join tF To view the forum and to General Information Visit the NAP LPC Xpres For information on upgrad Visit the Embedded Arti AN11308 All information provided in this document is subject to legal disclaimers NXP B V 2013 All rights reserved Application note Rev 1 3 13 June 2013 35 of 40 COMPANY PUBLIC 255013 NXP Semiconductors AN1 1 308 PNEV512B Quick Startup Guide 7 References 1 LPCXpresso website www nxp com redirect Ipcxpresso code red tech com LPCXpresso 2 PN512
16. 227 301 LPC12D27 301 4 ie DE a ras be Target architecture cortex m Fig 40 Change the MCU setting Set either Build Configuration either Debug or Release e Click on the project PN512 in the project window of the LPCXpresso IDE e Right click of the mouse Select Build Configuration e Set active Debug1227 build or Release1227 build for LPC 1227 b tS PN512 Desfire 5 7 4 25 PN512 Pollinal___ gt ie Binarie New gt gt Include Go Into PRESSO gt GS sre powere b E Debug Open in New Window Debug i i eng GB Copy crc PCXpresso4 is fully activated gt E Ipcl115 2 gt amp Release Paste Ctrl V Welcome to LPCXpresso 4 The software is now fully activated and can be used for productio gt Release Delete Delete generate and download applications containing up to 128KB of code into an LPC target gt amp lpc1227 Move ing Started B PN512 Rename F2 Please read the getting started guide for step by step instructions to build your first LPCXpress PN512 LPCXpresso Getting Started Guide E PN512 gy Import B PN5124 4 Export B Readm gt ES PN512 Ultr Build Project Clean Project The Red State Guide provides information on using Red State state machine generator wil Xpresso Resources Check the LPCXpresso Support page for new LPCXpresso software releases more example p Vist www nxp com Ipexpresso support Refresh F5 C
17. 255013 NXP Semiconductors AN1 1 308 PNEV512B Quick Startup Guide 3 In Table 5 in the same row as the chosen file look up two identifiers corresponding to the chosen file 4 Inthe array nmess uncomment the line with the couple of identifiers corresponding to the type of the chosen file Comment all the other lines 5 Save the changes and recompile the project NDEF_messages n_mess type parameter string i NDEF_ TYPE IMAGE NDEF_IMAGE JPEG c_table sizeof c_table NDEF_ TYPE _IMAGE NDEF_IMAGE PNG c_table sizeof c_table iy NDEF_ TYPE _IMAGE NDEF_IMAGE TIFF c_table sizeof c_table T LANG_NO textl sizeof textl ial T LANG_EN c_table sizeof c_table T LANG_EN textl sizeof text1 Table 5 Table of files prepared for NDEF message transmission Identifiers from the last two columns are necessary for choosing the right line from n_mess Content Header Name pense eee PNG image c_tablepng h NDEF_TYPE_IMAGE NDEF_IMAGE_PNG QR code of NXP c_tableQR h NDEF_TYPE_IMAGE NDEF_IMAGE_PNG Image of NXP logo c_tablenxp h NDEF_TYPE_IMAGE NDEF_IMAGE_JPEG Long text message c_tabletxt t i LANG_EN 6 Supplementary Notes AN11308 6 1 Software architecture The software of the reference reader is based on the NXP reader library 5 It intends to be simple modular easily readable and quickly portable by all the customers This philosophy is reflected in its architecture
18. 4 2006 www nxp com redirect nfc forum org specs 11 CLEV663B demo board site http www nxp com demoboard CLEV663B html 12 PNEV512B demo board site http www nxp com demoboard PNEV512B html 13 NXP Reader Library P2P user manual UM10721_NXP_Reader_Library_P2P AN11308 All information provided in this document is subject to legal disclaimers NXP B V 2013 All rights reserved Application note Rev 1 3 13 June 2013 36 of 40 COMPANY PUBLIC 255013 NXP Semiconductors AN1 1 308 PNEV512B Quick Startup Guide 14 Technical Specification Simple NDEF Exchange Protocol NFCForum TS SNEP_1 0 available on www nxp com redirect nfc forum org specs spec license 15 Technical Specification Logical Link Control Protocol NFCForum TS LLCP_1 1 available on www nxp com redirect nfc forum org specs spec license AN11308 All information provided in this document is subject to legal disclaimers NXP B V 2013 All rights reserved Application note Rev 1 3 13 June 2013 37 of 40 COMPANY PUBLIC 255013 NXP Semiconductors AN11308 8 Legal information 8 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 conseque
19. AN11308 Quick Start Up Guide PNEV512B Board Rev 1 3 13 June 2013 Application note 255013 COMPANY PUBLIC Document information Info Content Keywords PNEV512B PN512 LPCXpresso MCU Code Red eclipse LPC1115 LPC1227 reader library Abstract This application note is related to the installation procedures of the PNEV512B Board It describes the actions to be done to become acquainted with the demo reader NXP Semiconductors AN1 1 308 PNEV512B Quick Startup Guide Revision history Rev Date Description 1 3 20130613 Added description about the P2P Snep Client 1 2 20130221 Added description of the P2P project Added information about the use of the projects in conjunction with the LPC1227 MCU Added information about the documentation of the NXP Reader Library Added information about the exemplary project of code size optimization of the NXP Reader Library 1 1 20130108 Red circles of some figures corrected 1 0 20121217 First release Contact information For more information please visit http www nxp com For sales office addresses please send an email to salesaddresses nxp com AN11308 All information provided in this document is subject to legal disclaimers NXP B V 2013 All rights reserved Application note Rev 1 3 13 June 2013 2 of 40 COMPANY PUBLIC 255013 NXP Semiconductors AN1 1 308 PNEV512B Quick Startup Guide 1 Introduction This application note gives a detailed
20. F message param it can be the index of the language for text message or the start of the URI such as http or http www or phone number e Pointer to payload string str see also next paragraph n_mess If the characters of the string shall be modified the string in the file ndef_message c can be adapted These strings are connected to the array n_mess This array is connected to the structure NDEF_messages 5 5 2 Sending the NDEF message The NDEF message is sent using the function phceT4T_Listen from module phceT4T c The main parameters are pointer to Capability Container file CC cet 4t and pointer to the body of NDEF message ndefTagData It is necessary to call this function in a loop as long as no error occurs The CC file is created through the function phceT4T_SetCCFile from module phcel4T c The NDEF message is either filled by the function Ndef_Prepare_Uri if the message type is URI see 10 or by the function Ndef_Prepare_Text if the message type is TEXT see 9 It is also possible to send an index of predefined messages from the table n_mess The function Ndef_Decide shall then be called with an array of NDEF_messages structures 5 6 Peer to Peer functionality Based on the example performing the SNEP client Put request this project shows an implementation of Peer to Peer P2P functionality AN11308 All information provided in this document is subject
21. LPC1115 with the LPCXpresso LPC1114 Solder the multipoint connector onto the LPCXpresso LPC1114 in the same way as shown in Chapter 0 At this point there is no difference between the LPC1114 and the LPC1115 In the IDE please do the following changes 1 2 3 AN11308 In the menu of the LPCXpresso IDE choose Project gt Properties Choose C C Build gt MCU settings In the list choose the entry LPC 1114 8301 or LPC1114 302 according to the used board and click OK All information provided in this document is subject to legal disclaimers NXP B V 2013 All rights reserved Application note COMPANY PUBLIC Rev 1 3 13 June 2013 32 of 40 255013 NXP Semiconductors AN11308 6 9 AN11308 PNEV512B Quick Startup Guide _ Properties for PN512 Polling type filter text MCU settings Resource i lt i Euilde C C Build a Build Variables Discovery Options Target NAP LPC1114 301 LPC1113 301 LPC1113 302 LPC1113 303 LPC1114 201 LPC1114 202 Environment Legging settings Tool Chain Editor C C General Project References Run Debug Settings LPC1114 303 LPC1114 323 LPC1114 533 LPC1114FD 102 Target architecture cortex md Memory details Flash driver SIZE Ox8000 Ox2000 Name Location MFlash32 Ox RamLoc Or O0O0000 Memory Ty Flash RAM Cancel qr Fig 39 Change the MCU se
22. P message As soon as the entire SNEP message has been transmitted the SNEP client shall receive the SNEP Success response from the mobile device and the transmitted picture should be immediately displayed on the mobile s screen The SNEP client software is deeply described in 13 in chapter 4 Sample code Choosing the NDEF message By default the software sends image of the NXP logo as NDEF message There are more NDEF messages prepared in dedicated header files see Table 5 Only a single header can be compiled with the SNEP client application To choose another content of the NDEF message for transmission just follow the instructions below In case of URI or text message just skip from step 1 to step 4 steps 2 and 3 are for selection of an image Concurrently with instructions there are parts of source code to demonstrate choosing of hardcoded PNG image file for transmission 1 Open for editing the source file ndef_message c located in folder src 2 Uncomment the line with content a header file to be transmitted Let all the other lines commented select the required type of transported data include lt c_tabletxt h gt include lt c_tablepng h gt include lt c_tablepng_NXP_QR h gt include lt c_tablejpg_NXP_logo h gt All information provided in this document is subject to legal disclaimers NXP B V 2013 All rights reserved Application note COMPANY PUBLIC Rev 1 3 13 June 2013 25 of 40
23. Polling Fig 25 Run the project Choose the desired project and click the Debug Button on the left hand side as shown in the example picture Console so Hi Problems 0 Memory Hl Red Trace Preview ub 4 El T A Ej a A D m o C Build PN512 Polling make no print directory post build Performing post build steps arm none eabi size PN512 Polling axf arm none eabi objcopy 0 binary PN512 Folling axf PNsl2 Polling bin checksum p LPC1115_303 d PN512 FPolling bin arm none eabi objcopy 0 ihex FN512 FPolling axf PNS12 Polling hex Text data hex filename 41424 a378 PNS12 Polling axt Created checksum Ox39d6ffei T PNS12 Polling bin at offset Oxic Launching PN512 Polling Debug 29 m PN512 Polling NXP LPC1115 303 Fig 26 Run the project AN11308 All information provided in this document is subject to legal disclaimers NXP B V 2013 All rights reserved Application note Rev 1 3 13 June 2013 19 of 40 COMPANY PUBLIC 255013 NXP Semiconductors AN11308 AN11308 PNEV512B Quick Startup Guide After the build process one can see the size of the image in the console window 4ou PHStatus LC Status 160 void pHal LPC Link HID Fig 27 Run the project The initialization of the LPC Link can take a few seconds File Edit Source Refactor Navigate Search Run Project Window Help A Heela HOFS Ew iE EIQ agi PS a gt R Proj 53 gt att Core Z Per
24. ake several seconds depending on the size of the NDEF message Hold your NFC device in range of the PNEV512B board s field during entire transmission 4 After transmission completed there should be the transmitted image displayed in the device s screen What is going on inside The SNEP client sends a hardcoded NDEF message encapsulated in a SNEP message to the NFC device Thanks to the SNEP client project implements the P2P Reader Library Extension compliance with the LLCP and ISO18092 protocols on the PNEV512 Board s side are ensured implicitly a correct SNEP client server communication Execution of the SNEP client software can be summarized in following steps 1 Hardware initialization 2 Detecting the RF field for an NFC peer of the tag type F The software checks the RF field whether there is tag type F capable of performing the P2P communication 3 Once such device is found the LLC link is activated in compliance with the procedure defined by the NFC forumError Reference source not found 4 LLCP socket creation and establishing connection with other peer SNEP server 5 Transmission of a given image file to the SNEP server The SNEP client sends an initial fragment 128 bytes long Then it waits fora response from the server Because in SNEP header it is declared longer SNEP message than one fragment the server should response with the Continue response The SNEP client can go on with sending the rest of the SNE
25. ands product names service names and trademarks are property of their respective owners MIFARE is a trademark of NXP B V DESFire is a trademark of NXP B V MIFARE Ultralight is a trademark of NXP B V MIFARE Plus is a trademark of NXP B V NXP B V 2013 All rights reserved Application note COMPANY PUBLIC Rev 1 3 13 June 2013 255013 38 of 40 NXP Semiconductors AN11308 9 List of figures Fig 1 Fig 2 Fig 3 Fig 4 Fig 5 Fig 6 Fig 7 Fig 8 Fig 9 Fig 10 Fig 11 Fig 12 Fig 13 Fig 14 Fig 15 Fig 16 Fig 17 Fig 18 Fig 19 Fig 20 AN11308 Picture of PNEV512B demo board 05 3 Picture of solder bridges in default COMMOUN ANON ccasestersevesentsaveeceseeivesedceteeceonoriedatee 4 Picture of LPCXpresso LPC1115 development 213 2 6 Eee ea ee a E een Teen ce E 5 Multipoint Connectors We USEC ccceceeeeeees 6 LPCXpresso with the Multipoint Connectors 6 Connect the two boards sescceeeeeeeeeeeeees 6 Interesting points of measurement 006 T Blueboard in SPI configuration cc 8 Additional interfaces cccccssccecsseeeeeseeeeaees 8 Solder jumpers for additional interface configuration cscs cece cebdcctepdancctarceadnwssacedseebenupoox 9 Solder jumper for VCC power supply configuration sencvicsiecsceccansecunestasveccdosetenetasencedsieses 10 Enumeration of the LPCXpresso Board i
26. ard Communication with MIFARE DESFire Based on examples this project shows how read access can be achieved on this type of card Polling Based on examples this project shows how to initiate a basic communication with the following cards e MIFARE Ultralight e MIFARE Classic e MIFARE Plus e MIFARE DESFire e FeliCa compliant cards e ISO IEC 14443 B cards This example project also looks for cards in range of the RF field in a continuous loop and returns the type of the detected card or tag to the console window Exemplary Tag 4 Type Card Emulation The PN512 supports 4 different operating modes e Reader Writer mode supporting ISO IEC 14443A MIFARE and FeliCa compliant scheme e Reader Writer mode supporting ISO IEC 14443B e Card Operation mode supporting ISO IEC 14443A MIFARE and FeliCa compliant scheme e NFCIP 1 mode The card operation mode is passive mode in which the PN512 does not generate an RF field but acts as a card that modulates the field for communication with the reader The IC only supports part of the ISO IEC 14443 A protocol the ISO 14443 4 A as well as the ISO 7816 4 commands need to be provided by the Microcontroller A specification to store data for any kind of service and application is specified in the NFC Forum and it is called NFC Data Exchange Format Storing NDEF formatted data All information provided in this document is subject to legal disclaimers NXP B V 2013 All rights reserved
27. e the project is debugged and mature it might be interesting to use the release configuration to use the hardware stand alone No debug messages are displayed in the console window Note that only in Release Configuration one can flash the software onto the Blueboard and start it automatically once power has been attached to the board The build configuration can be selected as follows e Click on the project PN512 in the project window of the LPCXpresso IDE e Right click of the mouse gt Select Build Configuration e Set active Debug1227 build or Release1227 build for LPC 1115 je D S ih Includes Go Into NO 4 3 src Nxpk Open in New Window main a a JE Copy Ctrl C LPCXpresso4 is fully activa ebug A E Debuglz Paste Cite Welcome to LPCXpresso 4 The software is now fully gt amp Ipcl115 4 Delete Delete generate and download applications containing up to 1 i E Releasel Move Getting Started amp PHE Rename F2 Please read the getting started guide for step by step gt Ip B PN512 F g Import LPCXpresso Getting Started Guide j PN512 F a Export The Red State Guide provides information on usir PN512 F Sap LPCXpresso Resources z uild Project l Po Check the LPCXpresso Support page for new LPCXpri Readme Clean Project ES PN512 Ultra Si Refresh F5 Vist www nxp comilpexpresso support Close Project LPCXpresso Forum 4 i m Close Unrelat
28. ebug Settings LPC11 14 301 LPC11C22 301 LPC11C24 301 LPC11D14 301 Target architecture cortex m Memory details Flash driver Memory Type Name Location Size Flash MFlasho4 Ox Ox1L0000 RamLoc OxLO000000 Ox2000 Restore Defaults Apply e Fig 35 Selection of MCU 6 4 Level of compiler optimization When the code size at the current compiler level overloads the FLASH size of the target board 64K for the ARM based microcontroller LPC 1115 a higher compiler optimization level can be selected to reduce the code size of the project The following steps can be followed to select a level of compiler optimization e Click on the project PN512 in the project window of the LPCXpresso IDE e Right click of the mouse gt Select properties gt Select C C build e Select Settings gt Optimization e Choose the desired level in the combo box AN11308 All information provided in this document is subject to legal disclaimers NXP B V 2013 All rights reserved Application note Rev 1 3 13 June 2013 29 of 40 COMPANY PUBLIC 255013 NXP Semiconductors AN1 1 308 6 4 1 6 5 6 6 PNEV512B Quick Startup Guide L Properties for PN512 Polling 7 stitial ES a _ type filter text Settings aT EN Resource a Cobtiguestice Debugliis Active x Manage Configurations Build Variables Discovery Options m Environment Tool Set
29. ed Projects The LPCXpresso Forum reer ace is nope built inspan or S 0 tools and boards i i h Quickstart Panel Build Configurations gt iv jb Make Targets gt Manage buq build PC exp ml Index 2 Z 3 Releasell115 Release build for LPCexpressol115 Build All p Citta Clean All prias Release build for LPCexpresso1227 For information on upgrades etc vist the Code Re A L g epi sii Visit the Embedded Artists LPCXpresso websi Debug As Fig 34 Select the build configuration AN11308 All information provided in this document is subject to legal disclaimers NXP B V 2013 All rights reserved Application note Rev 1 3 13 June 2013 28 of 40 COMPANY PUBLIC 255013 NXP Semiconductors AN1 1 308 PNEV512B Quick Startup Guide 6 3 Setting MCU There are many LPC microcontrollers supported by the LPCXpresso IDE build in compiler Before compiling a project the correct MCU need to be set e Right click the project gt choose properties at the bottom e C C build gt MCU settings gt expand LPC11xx MCU group gt click LPC1115 303 gt click OK L Properties for PN512 Polling type filter text MCU settings Resource Builde Target MXP LPC1115 303 Build Variables LPC1114 301 Discovery Options LPC1114 302 Environment LPC1114 303 LPC1114 323 LPC1114 333 LPC1114FD 102 Tool Chain Editor LPCII14FN 102 Cfl General Project References LPC11C12 201 Run D
30. eeeees 27 Hardware abstraction layer cccsecccesseeeeees 27 Protocol abstraction layer cccccccccsseeeeeeeeees 27 Application lAyelr ccccseeececseeeeeceeeeeeseeeeesaaeees 28 Build CONFIQUIATION ccseeeeeeeeeeeeeeeeeeeseeeeeees 28 Setting MCU ccsedansncsaenietdeeiaaanshestestsaddencsnarnasals 29 Level of compiler optimization 0c000 29 Optimization ISSUES cccceeeeceeeeeseeeeeeeeeeees 30 Optimizing the code size of the NXP Reader KIO I Ape eee ne ee een nee ce eee 30 PNEV512B Quick Startup Guide 6 6 Preparing the projects for the use of the Blueboard in I C configuration ccccceeeeee 30 6 7 Removing the initial breakpoint on debug SUN 2 A E E A T E 31 6 8 Replacing the LPCXpresso LPC1115 with the LPCXpresso LPC1114 cceeeeeeeeeeeeeeees 32 6 9 Replacing the LPCXpresso LPC1114 LPC1115 with the LPCXpresso LPC1227 cc00ccee 33 6 10 Included and excluded files mismatch in IDE 34 PROTON CICS ccona a 36 8 Legal information ccccsesseesseseeseeneeseeeseeseenees 38 8 1 ES TMMONS raran aa TNE 38 8 2 DISCANT srne rE 38 8 3 LICENO S sediaan ie en e r 38 8 4 Trademarks stivecncnacasnosssiedinnsesmunancesctdonscaveranonsecele 38 9 ASU OF QUI CS oic 39 10 CONTEMNI S soiis ieaiaia 40 Please be aware that important notices concerning this document and the product s described herein have been included in the section Legal information
31. er and Activate Install New Software ql Enter Activation code NS About LPCApresso W Upgrade your product Fig 21 Product activation Once the activation code arrives please open the activation window by pointing to Help gt Product activation gt Enter Activation code and enter the code The success of the product activation will be confirmed by an info dialog 4 2 Extraction of the demo reader project Once the LPCXpresso IDE has been installed on a computer the sequence of installing the reference reader project is indicated e Start the LPCXpresso IDE e Select the option Import project s see picture below e Browse the Zip archive e LPCXpresso IDE unzips the software package e The software package is ready for use AN11308 All information provided in this document is subject to legal disclaimers NXP B V 2013 All rights reserved Application note Rev 1 3 13 June 2013 16 of 40 COMPANY PUBLIC 255013 NXP Semiconductors AN11308 PNEV512B Quick Startup Guide af W Qu 2N E Re Va Br E A i Build Impor projects Q Build g Clean Il F Debug Quick Settings v E raire E Import and Export y Import archived projects zip Ci Import exisiting projects g Fig 22 Importing a project into the LPCXpresso IDE At the Quick Panel on the left hand side choose Imp
32. ers NXP B V 2013 All rights reserved Application note COMPANY PUBLIC Rev 1 3 13 June 2013 255013 31 of 40 NXP Semiconductors AN11308 PNEV512B Quick Startup Guide Choose the Debug configuration Choose the tab Debugger Uncheck the box near Stop on startup at ke Click onto Apply and then Close Debug Configurations Create manage and run configurations ote z ERS Name PN512 Polling Debugl115 ype ite tx Me Denne Source E Common fe C C Application en fe C C MCU Application fe PN512 Classic Debugl115 E PN512 Classic Debug1227 Target configuration Main Debugger Options fc C C Attach to Application l ahead cT arf nop hacparts D ati main Advanced PN512 Desfire ERDERA Debugger options NXP LPC1115 303 cortex m0 NXP LPClixx pru fe PN512 Polling Debug1115 ee Script values fe PN512 Polling Releasel115 F Show all Fig 38 Disable the initial breakpoint n fe PN512 Polling Releasel 227 Configuration Option Value fe PN512 Ultralight Debugl115 abf Crystal XTAL frequency and PLL value fe PN512 Ultralight Debugl227 Vector catch false E C C Postmortem Debugger Enable Red Trace true Launch Group Semihosting support Auto Maximum wire speed abl Additional options 6 8 Replacing the LPCXpresso
33. eters OW a Ys Ea a ees Ol SP Ys Bn se W a Sa E Oe Oe W Ya jms 4 Ra E KT gt m 4 Fig 30 Stop the project After the execution has reached the end of the main function please click the Terminate button to stop the execution Otherwise one won t be able to rerun the project One can now do the following with the buttons near the top of the Debug view le Run the program x Step over C C line O Stop the debugger 00 Pause execution of the running m orogram j Instruction stepping mode disassembl Fig 31 Debug Buttons l Step into a function AN11308 All information provided in this document is subject to legal disclaimers NXP B V 2013 All rights reserved Application note Rev 1 3 13 June 2013 21 of 40 COMPANY PUBLIC 255013 NXP Semiconductors AN1 1 308 PNEV512B Quick Startup Guide 5 Associated Projects AN11308 5 1 9 2 5 3 5 4 5 5 Communication with MIFARE Ultralight Based on examples the MIFARE Ultralight project shows how read write access can be achieved on this type of card If one use a card which is not write protected or secured the example program writes a valid NDEF message into the card One can read this message with any NFC enabled mobile phone which can read NDEF messages Communication with MIFARE Classic Based on examples this project shows how read write access can be achieved on this type of c
34. fers functions to abstract the hardware parts of the transceiver PN512 Protocol abstraction layer Every PAL function is a low level function realizing a single functionality It is encapsulated in a module which is independent from the others The user can easily design his application by doing a drag and drop of the relevant module The following PAL modules are available in this software package e ISO IEC 14443 3A e ISO IEC 14443 3B e ISO IEC 14443 4A B e MIFARE e ISO IEC15693 e FeliCa All information provided in this document is subject to legal disclaimers NXP B V 2013 All rights reserved Application note COMPANY PUBLIC Rev 1 3 13 June 2013 27 of 40 255013 NXP Semiconductors AN1 1 308 PNEV512B Quick Startup Guide e NEC Initiator 6 1 4 Application layer Lying on the previous software layers the application layer is on top of the reader software package It combines elements of the previous three parts into high level functionalities 6 2 Build configuration All the projects mentioned in Chapter 5 are available in the debug configuration Additionally the Polling and SNEP client project comprises the release configuration e Debug configuration This configuration is mainly used when the target board is attached to the PC with the JTAG debugger It allows the display of debug messages in the console window which is useful in the early stage of the project e Release configuration Onc
35. gal disclaimers NXP B V 2013 All rights reserved Application note Rev 1 3 13 June 2013 6 of 40 COMPANY PUBLIC 255013 NXP Semiconductors AN1 1 308 PNEV512B Quick Startup Guide e VCC e D7 e SIGIN e GND e ALE e SIGOUT e D5 e AUXI e IRQ e D6 e AUX2 e VMID Fig 7 Interesting points of measurement 2 7 Preparing the Blueboard for the use with SPI or I C The Blueboard is generally delivered in SPI configuration To change the interface to 1 C the four appropriate ORO resistors in the interface config section need to be resoldered to the 1 C side of the solder jumpers Also the two ORO resistors at AO and A1 need to be changed Table 1 AO and A1 interface configuration Appropriate solder jumpers ORO resistors for interface configuration Signal Interface type SPI 12C UART optional AO R28 R29 R29 Al R32 R31 R32 AN11308 All information provided in this document is subject to legal disclaimers NXP B V 2013 All rights reserved Application note Rev 1 3 13 June 2013 7 of 40 COMPANY PUBLIC 255013 NXP Semiconductors AN1 1 308 PNEV512B Quick Startup Guide INTERFACE gt I2C CONFIG CONFIG Fig 8 Blueboard in SPI configuration To use the Blueboard in I C configuration with the provided software projects one has to carry out two minor adaptations in the code which are described in section 6 6 The C address can be configured either by software o
36. i pgs Debug 3 E Fija E PN512 Polling Debug C C MCU Application E PN512 Polling P 4 amp MCU GDB Debugger 02 11 12 14 06 HP Binaries p Thread 1 Running A includes pol arm none eabi gdb 02 11 12 14 05 src lt NxpRdLib_PublicRelease mainc 23 phSubBal H 153 unsigned int volatile i ic main c 154 uint8 t reg data g startup wint t bufti64 config GE linker GS cmsis GS driver L me AL V Quic 53 N 69 Varia Brea l F in t ki H for i 081000 i gt 0g i gt phStatus t status void pHal uint s t volatile card or tag detected p H O in in in in OwJ p H H ann N e on w BFL Basic Function Library data parameter storage PhhalHw_Rc523 DataParams t halReader E Start here ej New project Import project s 166 9 167 Initialize GPIO sets up clock for Build all projects Debug nee GPIOInit R Build PN512 Polling Debug 163 FRP of Clean PN512 Polling Debug 4 70 gtrouer Tush Debug PN512 Polling Debug e n M i b a x AEF Arrn L_ Console 23 E Problems 0 Memory Red Trace Preview PNS512 Polling Debug C C MCU Application C Users nxp workspces test PN512 Polling Debug PN512 Polling axf 02 11 12 14 06 Quick Settings v m No card or Tag detected Project and File wizards No cara Tag detected
37. itive 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 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 8 3 Licenses Purchase of NXP ICs with ISO IEC 14443 type B functionality E This NXP Semiconductors IC is ISO IEC 14443 Type B software enabled and is licensed under Innovatron s F Contactless Card patents license for ISO IEC 14443 B The license includes the right to use the IC in systems and or end user equipment RATP Innovatron Technology 8 4 Trademarks Notice All referenced br
38. lose Project Xpresso Forum The LPCXpresso Forum community is exclusively built for LPCXpresso users and is an invaluab Close Unrelated Projects k advice on use of the LPCXpresso tools and boards Build Configurations b Make Targets b Manage EREE TE Clean All 4 Releasel227 Release build for LPCexpressol2244 Run A r Build Sel d tc vist the Code Red Technologies LPCXpresso website Tea Lerini a LPCXpresso website Debug As b Fig 41 Change Active Build configuration 6 10 Included and excluded files mismatch in IDE There is a misunderstood in LPCXpresso v4 2 3 regarding to displaying of included and excluded files Despite setting Debug1227 Release1227 Build Configuration active on AN11308 All information provided in this document is subject to legal disclaimers NXP B V 2013 All rights reserved Application note Rev 1 3 13 June 2013 34 of 40 COMPANY PUBLIC 255013 AN11308 PNEV512B Quick Startup Guide NXP Semiconductors project pane in the loc1227 directory there are scource and linker files displayed strikethrough like the were not used in compilation One might be confused whether correct files are used for compilation Build Configuration Just follow the instructions from the Chapter 6 9 which ensures correct source files shall be compiled and linker scripts used a 52 PN512 Polling gt a Binaries b jm Includes b H sre b Debugl115 gt E Debugl
39. n src main c in the project Before one can run the project the demo board with the PN512 needs to be connected to the computer Wait until the according drivers have been installed All information provided in this document is subject to legal disclaimers NXP B V 2013 All rights reserved AN11308 Application note Rev 1 3 13 June 2013 18 of 40 COMPANY PUBLIC 255013 NXP Semiconductors AN1 1 308 PNEV512B Quick Startup Guide 4 3 Start the project 4 3 1 One can quickly start the reader project by editing the main function in the module main c This function first performs the hardware initializations of the LPC1115 and the RF transceiver PN512 Detailed descriptions of the code in the form of comments have been provided in the main c file This should provide a detailed overview of how to initialize certain components and get data out of and onto the card in the RF field Run the project Before running the project please ensure that the LPCXpresso with the PNEV512B demo board is connected to the computer Start here i New project Import project s np Build all projects Debug Build PN512 Polling Debug wo Clean PN512 Polling Debug mF Debug PN512 Polling Debug Quick Settings G Project and File wizards aye EX Import and Export Build and Settings x EL Debug and Run Lias ie ES PN512
40. n Device Manager WINdOW sccceseeeeeeeeees 11 LPCXpresso installation setup wizard 1 12 LPCXpresso installation setup wizard 2 12 LPCXpresso installation setup wizard 3 13 Windows Security Gidlog ccceeeeeeeseeeeees 13 LPCXpresso installation setup wizard 4 14 LPCXpresso DE iio cate sairasietelonse daeucncnvemesumencwiaes 14 Product activation cccccecccseeeeeeeeeeeeeeeeeeeees 15 Product activation ccccecccceeeeeeeeeeeeeeeeeeeees 15 All information provided in this document is subject to legal disclaimers Fig 21 Fig 22 Fig 23 Fig 24 Fig 25 Fig 26 Fig 27 Fig 28 Fig 29 Fig 30 Fig 31 Fig 32 Fig 33 Fig 34 Fig 35 Fig 36 Fig 37 Fig 38 Fig 39 Fig 40 Fig 41 Fig 42 PNEV512B Quick Startup Guide Product ACtIVATION ccccseeeeeseeeeeeeeeeeeseeeeeens 16 Importing a project into the LPCXpresso IDE 17 Importing a project into the LPCXpresso IDE 18 Importing a project into the LPCXpresso IDE 18 RUN the PrOoject cccccccsssseeeeseeseeeeeeseeeeeeeeees 19 RUN the PrOoject ccccccssseseeeeseeeeeeseeeeeeeeeeees 19 RUN the PrOoject ccccccccssseeeeeeeeeeeeeeeseeeeeeeeees 20 RUN the PrOject ccccccssseeeeeeeeseeeeeeeeeeeeeeeees 20 RUN the PrOoject ceccccccsseeeeeeeeeeeeeeeeseeeeeeeeas 21 Stop the Project ccccccssssssseeeeeeeseseeeseeeeeees 21 Debug Buttons
41. nces of use of such information 8 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 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 costs 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
42. ng the code size of the NXP Reader Library A detailed description on how to optimize the code size of the NXP Reader Library for the use with one specially defined reader IC and card type please refer to the attached documents on the product page of the CLEV663B 11 On that page one can also find an exemplary project for the use of the MIFARE Classic card in conjunction with the CLRC668 reader IC Preparing the projects for the use of the Blueboard in I C configuration To use the projects in I C configuration one has to do some small adaptations in the file ph_NxpBuild h located in src NxpRdLib_PublicRelease types AN11308 All information provided in this document is subject to legal disclaimers NXP B V 2013 All rights reserved Application note Rev 1 3 13 June 2013 COMPANY PUBLIC 255013 30 of 40 NXP Semiconductors AN11308 Open the file ph_NxpBuild h and a ensure that define NXPBUILD__PHBAL REG STUB uncommented PNEV512B Quick Startup Guide b uncomment the line define NXPBUILD PHHAL HW BUS 12C c comment the line define NXPBUILD PHHAL HW BUS SPI d comment the line define NXPBUILD PHHAL HW BUS _UART Open the file driver_config h located in lpc1115 and a ensure that the line define CONFIG ENABLE DRIVER _I2C 1 uncommented 6 7 Removing the initial breakpoint on debug startup When the debugger starts it automatically sets a breakpoint at the first statement in the main func
43. 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 accepts 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 any 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 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 liabilit
44. o use the USB connector as an additional USB connector of the LPCXpresso Board For using the USB interface in UART mode the following solder jumper configuration is needed Table 3 Solder Jumpers for USB connector configuration Connection type Resistors LPCXpresso USB R4 R5 R6 UART USB R12 R13 R14 Configuring the power supply When using the PNEV512 demo board without the LPCXpresso Board an additional 5VDC power supply is needed The onboard voltage regulator provides the 3 3VDC supply voltage VCC Table 4 VCC power supply configuration Power supply Resistors LPCXpresso Board R3 External 5VDC R11 All information provided in this document is subject to legal disclaimers Application note COMPANY PUBLIC NXP B V 2013 All rights reserved Rev 1 3 13 June 2013 9 of 40 255013 NXP Semiconductors AN1 1 308 PNEV512B Quick Startup Guide Fig 11 Solder jumper for VCC power supply configuration 3 Installation of the LPCXpresso Board The guidelines for installing the reader are as follows e Connect the LPCXpresso Board to a real USB2 0 port of the PC for speed reasons using the mini USB connector The PC detects and installs the Board automatically e Once the Board has been installed open the Device Manager of the PC to check that the installation was successful The item USB Device with DFU Capabilities is being displayed Please be sure to always connect
45. ojects one will also need an LPCXpresso LPC development board Such a board is not included in the Blueboard hardware package The LPC1115 development board integrates an NXP ARM Cortex M0 microcontroller LPC1115 with 64 Kbytes of Flash memory and 8 Kbytes of RAM It integrates a lot of hardware parts e 1 Serial UART interface e 1 SPI controller AN11308 All information provided in this document is subject to legal disclaimers NXP B V 2013 All rights reserved Application note Rev 1 3 13 June 2013 4 of 40 COMPANY PUBLIC 255013 NXP Semiconductors AN1 1 308 PNEV512B Quick Startup Guide e 1 2C controller e Serial Wire test debug interface For detailed information see LPC11xx User Manual 8 The LPCXpresso board contains a JTAG SWD debugger called the LPC Link and a target MCU The LPC Link is equipped with a 10 pin JTAG header and it seamlessly connects the target via USB the USB interface and other debug features are provided by NXP s ARM9 based LPC3154 MCU Designed by 2 TOR s ca TP iv cE 7 cide LPC Link x 3 f ri TP RST ap na C26 3 3C 7 i a b Smg j zi b A 2 f 2 r N 426 NG casi R EEE ei nC caas Embedded Artist NXP Code Red Fig 3 Picture of LPCXpresso LPC1115 development board 2 4 Alternative to the LPCXpresso LPC1115 2 5 AN11308 All the projects also run with the development board LPCXpresso LPC1114 12NC 93529
46. ort projects s AN11308 All information provided in this document is subject to legal disclaimers NXP B V 2013 All rights reserved Application note Rev 1 3 13 June 2013 COMPANY PUBLIC 255013 17 of 40 NXP Semiconductors AN11308 PNEV512B Quick Startup Guide Import project s 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 PN512 Polling 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 ey ae ae Then use press Browse above to import into your workspace PERSE SOE ROS SEE Fig 23 Importing a project into the LPCXpresso IDE Browse the desired project and click Next Import project s Select a directory to search for existing Eclipse projects Projects PN512 Polling PM512 Polling Select All Deselect All Refresh 7 Copy projects into workspace Fig 24 Importing a project into the LPCXpresso IDE When the import process has finished one can start browsing the code Most interesting might be the main c which is located i
47. ou trust How can 1 decide which device software is safe to install Fig 16 Windows Security dialog After the setup wizard has finished one can launch the newly installed IDE AN11308 All information provided in this document is subject to legal disclaimers NXP B V 2013 All rights reserved Application note Rev 1 3 13 June 2013 13 of 40 COMPANY PUBLIC 255013 AN11308 PNEV512B Quick Startup Guide NXP Semiconductors Completing the LPCXpresso Setup Wizard Setup has finished installing LPCXpresso on your computer The application may be launched by selecting the installed icons PRESSO krihet Setup Launch LPCXpresso v4 1 Powered by Wicode red Fig 17 LPCXpresso installation setup wizard 4 Develop Welcome page LPCXpresso fs Jie ss File Edit Navigate Search Project Run Window Help ri 2 ager gt 8 fey ii gy L FEY LX Develop amp v R Y a e ae Y e w N v t T Project Ex 2 gt int Core Regi Z Periphera O e gt E a powered by icode_red License type UNREGISTERED Code 1 fa Debug limit 8k ed Activation code not available To request an activation code or to activate a license please select Pe yonr prati St TeRnOVE TVS ese On Help gt Product Activation License Restriction An UNREGISTERED copy of LPCXpresso may only be used for evaluation purposes paper Sire aeiae hart SEASON LPCXpresso website to
48. r by hardware To set the C address by hardware the solder jumpers in the C config section See picture above have to be connected appropriately R7 R15 and R24 are logically LOW and R8 R16 and R22 logically HIGH 2 8 Optional interfaces and power supply 2 8 1 AN11308 The PNEV512B demo board is normally controlled by the LPCXpresso Board With the optional interfaces and power supply the demo board can be controlled directly by a PC without the LPCXpresso Board Fig 9 Additional interfaces To use the additional interfaces the interface selection signals AO and A1 have to be configured to UART mode see section 2 6 table 1 Configuring the additional interfaces With the appropriate solder jumpers two different serial interfaces can be selected Table 2 Solder Jumpers for selecting the additional interfaces Interface type Resistors All information provided in this document is subject to legal disclaimers NXP B V 2013 All rights reserved Application note COMPANY PUBLIC Rev 1 3 13 June 2013 8 of 40 255013 NXP Semiconductors AN1 1 308 2 8 2 AN11308 PNEV512B Quick Startup Guide Interface type Resistors USB R38 R39 RS232 R40 R41 R42 Fig 10 Solder jumpers for additional interface configuration In delivery default configuration the USB connector of the PNEV512B demo board is directly routed to the USB pins of the LPCXpresso Board uC in order t
49. s elements needed for transmission EMC filter matching network and the antenna The PN512 supports different kind of contactless communication methods and protocols at 13 56 MHz e Reader Writer mode supporting ISO IEC 14443A MIFARE and FeliCa scheme e Reader Writer mode supporting ISO IEC 14443B e Card Operation mode supporting ISO IEC 14443A MIFARE and FeliCa scheme AN11308 All information provided in this document is subject to legal disclaimers NXP B V 2013 All rights reserved Application note Rev 1 3 13 June 2013 3 of 40 COMPANY PUBLIC 255013 NXP Semiconductors AN1 1 308 PNEV512B Quick Startup Guide e NFCIP 1 mode e Refer to the data sheets of this IC 2 for more details Thanks to the relevant solder bridges the host link of the PNEV512B demo board can be configured for e C e SPI e UART optional see 2 7 INTERFACE I2C CONFIG Ds Fig 2 Picture of solder bridges in default configuration The default interface configuration of the PNEV512B demo board is SPI The detailed interface configuration is described in section 2 6 Additional interface and power supply options are described in section 2 7 2 2 CE certification of the Blueboard The current version of the demo board v 1 4 is not CE European Conformity compliant Small adaptations in the schematics may be needed to fully pass RTTE EMC testing 2 3 LPCXpresso LPC1115 development board To work with the provided pr
50. sed IDE and low cost target boards which include an attached JTAG debugger At least use the LPCXpresso version 5 0 or higher to benefit from a bug free IDE and the up to date features This tool can freely be downloaded from the LPCXpresso website 1 Before one can download the software it is necessary to create an account Creating an account is absolutely free Installation of LPCXpresso IDE The IDE is installed into a single directory of one s choice Multiple versions can be installed simultaneously without any issues The installation starts after double clicking the installer file Then click next on the setup wizard AN11308 All information provided in this document is subject to legal disclaimers NXP B V 2013 All rights reserved Application note Rev 1 3 13 June 2013 11 of 40 COMPANY PUBLIC 255013 NXP Semiconductors AN1 1 308 PNEV512B Quick Startup Guide Welcome to the LPCXpresso Setup Wizard This will install LPCXpresso 4 1 0 Build 190 on your computer Itis recommended that you close all other applications before Click Next to continue or Cancel to exit Setup Powered by cod e red Fig 13 LPCXpresso installation setup wizard 1 Read the license agreement then click next License Agreement Please read the following important information before continuing Please read the following License Agreement You must accept the terms of this agreement before continuing
51. tings Build Steps JD Build Artifact la Binary Parsers Error Parsers Logging z MCU settings MCU C Compiler Optimization Level ORE 00 OT 3 Preprocessor oof Chain Editor 3 Symbols C C General E Project References Run Debug Settings None 00 Optimize O1 Optimize more O2 Optimize most O3 Optimize for size Os Other optimization flag D Warnings Miscellaneous Target MCU Assembler 3 General Target MCU Linker General 33 Libraries 8 Miscellaneous 3 Shared Library Settings Target Restore Defaults Apply eee Fig 36 Select the level of optimization Optimization issues When optimization is enabled it will reorder code What this means is 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 one might see are breakpoints that only work the first time through or seeing the debuggers current line indicator fail to advance or even move backwards when clicking 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 one s project with optimization and plan for a final build that is optimized Optimizi
52. tion One can remove this breakpoint as follows 1 Right click on the project and choose Launch Configurations gt Open Current Launch Configuration gt N Include t BB sre 2 Debugl gt Debugl gt lpc1115 Releas eS PN512 Uler 1 Quickstart Panel Gi Start here ict New project Import project lav Build all projec S Build PN512 P g Clean PN512 F Debug PN512 ee Quick Setting Project and Fi T Build and Sett Mew Go Into Open in New Window Copy Paste oO Delete Move fi Rename Import ea H gg Export Build Project Clean Project Refresh Close Proyect Close Unrelated Projects Build Configurations Make Targets Index Convert To Run As Debug As Profile As Team Compare With Restore from Local History Launch Configurations Smart update Utilities Properties Ctrl C Ctrl V Delete Fz F5 Alt Enter Open Current Launch Configuration pu N LPC Vu ge Getting P X 3 LPCXp Cl pa LPCAp e Breakpoints Ey Search Se Call Hierarchy PN512 Polling Debugl115 C C MCU Applicati ae pra Open Current Launch Configuration Fr Delete Launch Configurations Create Launch Configurations AN11308 All information provided in this document is subject to legal disclaim
53. tting Now one can start working with the LPCXpresso LPC1114 There is no need to change anything in the code Replacing the LPCXpresso LPC1114 LPC1115 with the LPCXpresso LPC1227 Solder the multipoint connector onto the LPCXpresso LPC1227 in the same way as shown in Chapter 2 5 At this point there is no difference between the LPC1114 LPC1115 and the LPC 1227 The projects for the LPC1114 LPC1115 are fully compatible with the LPCXpresso LPC1227 board by easily changing IDE configuration One has to do only two subtle changes in IDE build configuration Change MCU in LPCXpresso IDE 1 Inthe menu of the LPCXpresso IDE choose Project gt Properties 2 Choose C C Build gt MCU settings 3 Inthe list choose the entry LPC1227 301 and click OK All information provided in this document is subject to legal disclaimers NXP B V 2013 All rights reserved Application note COMPANY PUBLIC Rev 1 3 13 June 2013 33 of 40 255013 NXP Semiconductors AN1 1 308 PNEV512B Quick Startup Guide T Properties for PN512 Polling type filter text _ MCU settings Resource Builders PEETS C C Build NXP LPC1227 301 z Puild variables t LPCAA Discovery Options t LPCLI Box Environment b LPC Uw Longing b LPCIa d Mei seitings a LPC1200 LPC1224 201 Tool Chain Editor LPC1224 271 C C General LPC1225 301 Project References Pcl 295 321 Run Debug Settings D 6 30 C 1Pci227 301 gt LPC1
54. with the installation CODE RED TECHNOLOGIES LIMITED End User Licence Agreement for LPCXpresso Software Development Tools November 7009 THIS END USER LICENCE AGREEMENT LICENCE IS A LEGAL AGREEMENT BETWEEN YOU EITHER A SINGLE INDIVIDUAL OR SINGLE TEGAT ENTITY AND CODE RED TECHNOLOGIFS LIMITED E I do not accept the agreement 41 0190 Fig 14 LPCXpresso installation setup wizard 2 There are numbers of other screens on the setup wizard but generally the default options can be accepted After the installation an information file will be displayed Click Next to accomplish the installation AN11308 All information provided in this document is subject to legal disclaimers NXP B V 2013 All rights reserved Application note Rev 1 3 13 June 2013 12 of 40 COMPANY PUBLIC 255013 AN11308 PNEV512B Quick Startup Guide NXP Semiconductors Extracting files Ce Wpexpresso Tools Yibexec gcc arm none eabi 4 5 1 cclexe Ue tstialis Fig 15 LPCXpresso installation setup wizard 3 After this installation step the user will be asked if he wants to install some required drivers The installation of these drivers should be accepted Would you like to install this device software Name Code Red Technologies Publisher Code Red Technologies Ltd E Always trust software from Code Red Technologies Ltd F You should only install driver software from publishers y
55. y 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 AN11308 All information provided in this document is subject to legal disclaimers PNEV512B Quick Startup Guide 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 customer 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 pun
Download Pdf Manuals
Related Search
Related Contents
Artwizz MirrorFilm Back PCHA Laboratory Guide to Services manual da habitação 601A - HUMISTOP ANTI-HUMIDITE Sony SVT14124CXS Marketing Specifications Copyright © All rights reserved.
Failed to retrieve file