NXP Austria CLEV6630B Customer Evaluation Board CLEV6630B User Manual AN11211Quick Start Up Guide RC663 Blueboard
NXP Austria GmbH Customer Evaluation Board CLEV6630B AN11211Quick Start Up Guide RC663 Blueboard
Contents
- 1. HW manual
- 2. Integration Manual
HW manual



![NXP Semiconductors AN11211 Blueboard Quick Startup Guide AN11211 All information provided in this document is subject to legal disclaimers. © NXP Semiconductors N.V. 2017. All rights reserved. Application note COMPANY PUBLIC Rev. 2.6 — 5 January 2017 226226 4 of 39 2. Hardware overview of the Demo Board Customer Evaluation Board CLEV6630B demo board is the primary platform for the RC663 reader chip and the current version is Blueboard v2.0. (see Fig 1). 2.1 CLEV6630B demo board (Blueboard) Fig 1. Picture of RC663 demo board The CLRC663B V2.0 demo board embeds the contactless communication transceiver IC CLRC66303 with all its elements needed for transmission: EMC filter, matching network and the antenna and LPC1769 MCU with SWD/JTAG interface. The RC66303 supports different kind of contactless communication methods and protocols at 13.56 MHz: • Reader/Writer mode supporting ISO/IEC14443A/MIFARE, • Reader/Writer mode supporting ISO/IEC14443B, • Reader/Writer mode supporting FeliCa scheme, • Passive initiator mode according to NFCIP-1 • Reader/writer supporting ISO/IEC 15693, • Reader/writer supporting ISO/IEC 18000-3 Mode 3, • Refer to the data sheet of this IC [2] for more details](https://usermanual.wiki/NXP-Austria/CLEV6630B.HW-manual/User-Guide-3321720-Page-4.png)

![NXP Semiconductors AN11211 Blueboard Quick Startup Guide AN11211 All information provided in this document is subject to legal disclaimers. © NXP Semiconductors N.V. 2017. All rights reserved. Application note COMPANY PUBLIC Rev. 2.6 — 5 January 2017 226226 6 of 39 3. Managing the Demo Reader project with LPCXpresso IDE The example reader projects are 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 from NXP. It supports NXP's ARM-based LPC microcontrollers. The platform is comprised of a simplified Eclipse-based IDE and low-cost target boards which include an attached JTAG debugger. This tool can freely be downloaded from the LPCXpresso website [1]. 3.1 Development environment To use CLEV6630B prepared software package all components listed in the Table 2 are required. Table 2. Development Environment Item Version Description CLEV663B 2.0 Customer Evaluation board (hardware) LPC-Link 2 1.0 Standalone debug adaptor (hardware) LPCXpresso IDE 8.1.4 or higher Development IDE (PC software) 3.2 Installation of LPCXpresso IDE The IDE is installed into a single directory of one’s choice. Multiple versions can be installed simultaneously without side effects. Be sure to download LPCXpresso IDE version 8.1.4 or higher. The installation starts after double-clicking the installer file. Fig 3. LPCXpresso installation NXP Debug drivers Make sure, the checkboxes for installing the NXP Debug drivers are activated.](https://usermanual.wiki/NXP-Austria/CLEV6630B.HW-manual/User-Guide-3321720-Page-6.png)








![NXP Semiconductors AN11211 Blueboard Quick Startup Guide AN11211 All information provided in this document is subject to legal disclaimers. © NXP Semiconductors N.V. 2017. All rights reserved. Application note COMPANY PUBLIC Rev. 2.6 — 5 January 2017 226226 15 of 39 Pause execution of the running program. Instruction stepping mode (disassembly). Fig 18. Debug Buttons In the console window at the bottom one will see the debug output of the execution. After the execution has reached the end of the main function 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: Run the program. Step over C/C++ line. Step into a function. Stop the debugger. Pause execution of the running program. Instruction stepping mode (disassembly). Fig 19. Debug Buttons 4. Managing the CL663 SW projects with Linux and KDS IDE Detailed description and guideline, how to import and manage NFC NXP Reader Library projects in Linux and Kinetis Design Studio (KDS) environment, check: - AN11802 - NFC Reader Library for Linux Installation Guidelines - AN11908 - NFC Reader Library for KDS Installation Guidelines 5. Associated Projects All example projects are available for download at the product page [3] in the documents section and are being distributed in one single file. All projects are packaged into a single installer file. After downloading the zip file extract it and run the installer. The installer make a copy of all documents and SW on the hard disk.](https://usermanual.wiki/NXP-Austria/CLEV6630B.HW-manual/User-Guide-3321720-Page-15.png)



![NXP Semiconductors AN11211 Blueboard Quick Startup Guide AN11211 All information provided in this document is subject to legal disclaimers. © NXP Semiconductors N.V. 2017. All rights reserved. Application note COMPANY PUBLIC Rev. 2.6 — 5 January 2017 226226 19 of 39 For more details about the NTAG-I2C and its functionalities please consult the product page of the same [13]. 5.7 Example 10 – MIFARE DESFire The MIFARE DESFire example demonstrates how to use MIFARE DESFire EV1 cards. Once MIFARE DESFire card is resolved and activated, it displays MIFARE DESFire applications created by this example previously and it displays 32bit signed integer which is incremented after each successful detection of tag. In case no application is present on the tag, new application will be created with two new files to hold NXPNFCRDLIB version used to create this application and another file to hold 32bit signed integer. Note: This example including the required modules of the NFC Reader Library is only available via NXP Docstore. 5.8 Example 11 – ISO10373 PCD This example is used to perform ISO 10373-6 PCD compliance validation. This example has to be executed in the DUT which has an ISO 14443 based PCD implementation. The ISO 10373-6 test methods verifies the compliance to the ISO 14443 protocols. An external tool like Micropross MP300 implements the test methods for the ISO 10373-6 and is used as the counterpart for this testing. 5.9 SimplifiedAPI EMVCo This example is similar to the “EMVCo Loopback” example, as it can be used to perform EMVCo 2.5 level 1 digital compliance validation. The different between both examples is in NFCReaderLibrary initialization, where this example is using simplified reader library initialization process. Simplified approach, after library initialization, is using only three commands: - phNfcLib_Activate() - phNfcLib_Transmit() - phNfcLib_Receive() 5.10 SimplifiedAPI ISO This example is a reference application to demonstrate the usage of Simplified API with ISO profile. Application contains example of Type A Layer 4, Type B Layer 4, MIFARE DESFire, MIFARE Ultralight, MIFARE Classic, ISO5693 and ISO18000p3m3. Example demonstrates how to use simplified API, which require, after successful library initialization, only three commands: - phNfcLib_Activate() - phNfcLib_Transmit() - phNfcLib_Receive()](https://usermanual.wiki/NXP-Austria/CLEV6630B.HW-manual/User-Guide-3321720-Page-19.png)
![NXP Semiconductors AN11211 Blueboard Quick Startup Guide AN11211 All information provided in this document is subject to legal disclaimers. © NXP Semiconductors N.V. 2017. All rights reserved. Application note COMPANY PUBLIC Rev. 2.6 — 5 January 2017 226226 20 of 39 5.11 ICODE Demo Project The ICODE Demo package is a simple embedded software that shows how to perform basic operations with ICODE ILT, ICODE SLI, SLIX and SLIX2 tags. The application interacts with a user through user interface (UI) hosted in the console window of the LPCXpresso IDE. It is designed to get prompts from the user, giving him a possibility to customize the order of execution of commands. It can be downloaded from the documents section of the RC663 demo board page [12]. The package further includes: • Special version of the NFC Reader Library with content reduced to those modules which are necessary for support of ILT and SLI tags and library dependencies necessary for LPC1769-RC663 platform. The reduced version of the NFC Reader Library is closer described in the chapter 6.2. • LPC1769 with necessary sources for support of LPC1769 MCU. The LPC1769 MCU has sufficient amount of RAM (64kB) to host the ICODE Demo Project. The ICODE Demo Project is distributed in a standalone zip file. After downloading and installing, it needs to be imported as a new project into a separate workspace than the previous software packages (MIFARE, P2P) because it is not possible to have two different projects with the same name (NFC Reader Library) inside one workspace. To make the ICODE Demo Project package running follow these steps: 1. Create a new workspace 2. Import the project package zip file into the new created workspace. To do this, follow the instructions from the chapter 3.3 • Running the project Launch Debug configuration of the software (see section 3.4), then it by pressing the resume button. Click with mouse pointer anywhere inside the console window and follow the instructions. • How to control menu To choose a menu item, press the corresponding key on the keyboard and confirm with ENTER key. • How to customize the build configuration of the project In the configuration file icode_common.h are three configuration options providing the possibility to build the ICODE Demo project in different configurations to only handle certain type of tags – ILT, SLI without SLIX2, SLI and SLIX2. Build configuration defines: o NXPBUILD_SLI_TAG enable SLI tag handling o NXPBUILD_SLIX_2_TAG enable SLIX2 tag handling o NXPBUILD_ILT_TAG enable ILT tag handling Note: SLI is necessary prerequisite for SLIX2 – project cannot be configured only for SLIX2.](https://usermanual.wiki/NXP-Austria/CLEV6630B.HW-manual/User-Guide-3321720-Page-20.png)

![NXP Semiconductors AN11211 Blueboard Quick Startup Guide AN11211 All information provided in this document is subject to legal disclaimers. © NXP Semiconductors N.V. 2017. All rights reserved. Application note COMPANY PUBLIC Rev. 2.6 — 5 January 2017 226226 22 of 39 access password stored in the tag and the secure operations on the tag are not allowed. • Lock Application locks and unlocks the user memory (BANK 11) for writing. Write is possible only if the locked tag is in “secured state”. Transition of the tag from “open state” to “secured state” need to be accomplished by using the Access command. Note 1: All commands of the tag (read, write, lock … etc.) are performed like commands sequence to transition the tag’s state from Ready, Arbitrate or Reply state to Open or Secured state (see the specification [8]). Within this sequence it is conditional calling the Access command. The condition if command is called or not is possible to set via the Access Password menu or via the Configuration setting. Note 2: In case verification of memory lock is needed, you can perform the following command sequence: “set Access Password” - 0x12345678, “Set Password” - 0x12345678, “Set Password” - set the usage the an access password to ON state, “Lock” - lock the user memory for writing, “Write” – something from menu - writing is possible, “Lock” - un-lock the user memory for writing, “Write” – something from menu -> write is not possible, because memory is locked without access. Note 3: Parameter of Access command calling is set by default to state OFF. • Inventory Application performs the inventory of all ILT tags which are placed in the RF field. After the inventory process the list of all found tags is printed out in the console window in the LPCXpresso IDE. The listed table consists of the stored CRC and whole PC/XC data packet. The PC/XC consists the UII (Fig 22) The maximum number of detected tags is limited by the power of the RF field of the RC663 Blueboard. Part of the inventory functionality is choosing a certain tag for further operations. Note: Choosing the tag feature: - The user is asked to choose the tag he wants to choose for further operations by typing the number which is written next to the tags UII in the listing after inventory. Entering ‘0’ means no tag chosen and the program goes back to the menu. Any non-number character is interpreted as zero. Only first 3 characters are taken as input. If just one tag is detected by Inventory, the tag is automatically chosen by the software. In case no tag is detected it is necessary to repeat the inventory. All later operations are performed with the chosen tag in masked mode. The whole UII is taken for mask usage. Fig 22. ILT Inventory](https://usermanual.wiki/NXP-Austria/CLEV6630B.HW-manual/User-Guide-3321720-Page-22.png)





![NXP Semiconductors AN11211 Blueboard Quick Startup Guide AN11211 All information provided in this document is subject to legal disclaimers. © NXP Semiconductors N.V. 2017. All rights reserved. Application note COMPANY PUBLIC Rev. 2.6 — 5 January 2017 226226 28 of 39 6. Supplementary Notes Fore detailed API description of the NFC Reader Library please refer to the chm help file located at NFC_Reader_Library\docs\14_user_doc\NXP NFC Reader Library.chm. 6.1 General Software Architecture The software of the reference reader is based on the NFC Reader Library [4]. It intends to be simple, modular, easily readable and quickly portable by all the customers. This philosophy is reflected in its architecture which is divided into 4 layers: • BAL (Bus Abstraction Layer), • HAL (Hardware Abstraction Layer) • PAL (Protocol Abstraction Layer) • AL (Abstraction Layer) Fig 25. Architecture of the NFC Reader Library For a detailed description of the NFC Reader Library please refer to the user manual UM10721 - NXP NFC Reader Library User Manual. Documentation of the API can be found in the document UM10802 - NXP NFC Reader Library API. Both can be downloaded at the web site of the CLEV663B demo board [3]. 6.1.1 Bus abstraction layer This layer offers functions to abstract the hardware parts of the microcontroller. These functions connect to the specific peripheral drivers of the microcontroller. Based on these stacks, the communication routines for the relevant physical media I2C/SPI can be easily designed. These drivers used in this examples are specific for the LPC1XXX family and therefore cannot be ported to other microcontrollers. If one want’s to change the microcontroller, he would have to adapt this layer.](https://usermanual.wiki/NXP-Austria/CLEV6630B.HW-manual/User-Guide-3321720-Page-28.png)


![NXP Semiconductors AN11211 Blueboard Quick Startup Guide AN11211 All information provided in this document is subject to legal disclaimers. © NXP Semiconductors N.V. 2017. All rights reserved. Application note COMPANY PUBLIC Rev. 2.6 — 5 January 2017 226226 31 of 39 Fig 27. ICODE - Architecture of the NFC Reader Library 6.2.1 Bus abstraction layer BAL is the bottommost layer of the NFC Reader Library. It provides communication with connected RC663 reader. The Stub module defines the interface while executive code of the Stub is placed in the MCU LPC1769 project. This second part implements dedicated LPC1769 drivers to handle the SPI and I2C peripherals of the microcontroller. Software runs reliably with SPI bitrate set to 5MHz. Testing has shown, I2C is too slow for reliable functionality of ILT part of the ICODE Demo project. 6.2.2 Hardware abstraction layer See 6.1.2. 6.2.3 Protocol abstraction layer The PAL layer of the ICODE Demo Project is the logical layer which represents rules specified by ISO15693. It contains only two modules from the original NFC Reader Library: • ISO/IEC 15693 • ISO/IEC 18000 3m3 6.2.4 Application layer The AL lies on top of the PAL and is on top of the NFC Reader Library. It combines elements of the previous three parts into high level functionalities. In the modules of this layer the particular ILT/SLI(X)/SLIX2 commands are provided in a very close way as defined in specifications [8] [9] [10]. • SLI – SLIX 2 commands • 15693 – SLI and extended commands](https://usermanual.wiki/NXP-Austria/CLEV6630B.HW-manual/User-Guide-3321720-Page-31.png)




![NXP Semiconductors AN11211 Blueboard Quick Startup Guide AN11211 All information provided in this document is subject to legal disclaimers. © NXP Semiconductors N.V. 2017. All rights reserved. Application note COMPANY PUBLIC Rev. 2.6 — 5 January 2017 226226 36 of 39 7. References [1] LPCXpresso website http://www.lpcware.com/lpcxpresso/download [2] RC663 data sheet http://www.nxp.com/documents/data_sheet/CLRC663.pdf [3] CLEV6630B demo board site http://www.nxp.com/demoboard/CLEV663B.html [4] NXP NFC Reader Library User Manual http://www.nxp.com/documents/user_manual/UM10721.pdf [5] Technical Specification – Simple NDEF Exchange Protocol, NFCForum-TS-SNEP_1.0 http://www.nfc-forum.org/specs/spec_license [6] EMV – The table of card types and their matching AIDs are available on http://www.en.wikipedia.org/wiki/EMV [7] EXPLORE-NFC product page http://www.nxp.com/demoboard/PNEV512R.html#documentation [8] ISO/IEC 18000-3:2010(E) Information technology — Radio frequency identification for item management Part 3: Parameters for air interface communications at 13,56 MHz Third Edition 2010-11-15 [9] ISO/IEC 15693-3 Identification cards — Contactless integrated circuit cards — Vicinity cards Part 3: Anticollision and transmission protocol Second Edition 2009-04-15 [10] SLIX2 – datasheet with custom commands specification http://www.nxp.com/documents/data_sheet/SL2S2602.pdf [11] CLRC663 Antenna Design Guide http://www.nxp.com/documents/application_note/AN11019.pdf [12] CLEV663B software and documents download http://www.nxp.com/board/CLEV663B.html#documentation [13] NTAG-I2C http://www.nxp.com/products/identification_and_security/nfc_and_reader_ics/connected_tag_solutions/series/NT3H1101_NT3H1201.html](https://usermanual.wiki/NXP-Austria/CLEV6630B.HW-manual/User-Guide-3321720-Page-36.png)


