Home

UM10493 POS Reference Design - Firmware description

image

Contents

1. 0ee 7 LPCXpresso Choose workspace 8 Import project link ooooooncccnnnociconancccnanoncnnnano 9 Browse for POSRD2 zip package cccooccccnccco 9 Select POSRD2 Project 10 LPCXpresso Project POSRD2 imported 10 First compilation console output 11 FlashMagic configuration oooccinoccccnnnccncnnannnss 12 LPCXpresso Configure FlashMagic 13 Unable to communicate ooococccnoncccnnnoncnonananon 15 Failed to autobaud ccoooocccononcccnononcncnanancnonannnos 15 Firmware stack OVeIVieW oooooocccnccnnnococccccnccccnns 17 Files directory Structure ooooocccccccnccococccccnconanns 17 LCD type Compiler option 18 LCD PCB date ce cceseeeseeeeeeeeeseeeseeeetees 18 Demonstration application tasks 20 Tasks communication Scheme 21 Application state machine oooonocnoncccnnnonnccnnnos 22 All information provided in this document is subject to legal disclaimers NXP B V 2012 All rights reserved User manual COMPANY PUBLIC Rev 1 1 21 March 2012 211411 24 of 25 NXP Semiconductors UM10493 8 Contents POS Reference Design Firmware description 1 2 3 3 1 3 2 3 2 1 3 2 2 3 3 3 3 1 3 4 3 4 1 3 4 2 3 4 3 3 4 3 1 3 4 3 2 4 4 1 4 1 1 4 1 2 4 2 4 3 4 3 1 4 3 2 4 3 3 4 3 4 4 3 5 4 3 6 4 3 7 4 3 8 4 3 9 5 5 1 5 2 6 6 1 6 2 6 3 6 4 7 8 INTFOCUCHON aisocciicc
2. Filter matched 2 of 2 items Apply Revert oome Fig 11 LPCXpresso Configure FlashMagic The configuration data are the following for copy paste UM10493 All information provided in this document is subject to legal disclaimers NXP B V 2012 All rights reserved User manual Rev 1 1 21 March 2012 13 of 25 COMPANY PUBLIC 211411 NXP Semiconductors U M1 0493 POS Reference Design Firmware description C Program Files Flash Magic FM EXE S workspace_loc POSRD2 DebugTest COM 1 115200 DEVICE LPC1768 12 000000 HARDWARE BOOTEXEC 50 100 ERASE DEVICE PROTECTISP HEXFILE workspace_loc POSRD2 DebugTest POSRD2 hex NOCHECKSUMS NOFILL PROTECTISP Of course the configuration must be adapted to the environment different names different COM port The COM Port number is the first parameter of COM 1 115200 here it is COM1 After this external tool has been configured choose run The FW is automatically built and loaded UM10493 All information provided in this document is subject to legal disclaimers NXP B V 2012 All rights reserved User manual Rev 1 1 21 March 2012 14 of 25 COMPANY PUBLIC 211411 NXP Semiconductors U M1 0493 POS Reference Design Firmware description 3 4 3 Common errors during the hex load During the load using FlashMagic either direct or e
3. 12 _ Erase blocks used by Hex File ase block 1 0 Erase block 2 0 Erase block 3 0x003000 Erase block 4 0x004000 Hex File C TravaiWorkspace POSRD ADebugl est POSRD2 hex Modified vendredi octobre 22 2010 15 11 08 more info Step 4 Options Step 5 Start Verify after programming Start FF Fill unused Flash F Gen block checksums F Execute Get IAP Flash source code for NXP microcontrollers with Flash memory www esacademy com fag progs flash E Fig 10 FlashMagic configuration If the board is correctly supplied and connected to the right serial port to be configured differently in FlashMagic if different than COM1 click on the Start button and the load starts FlashMagic handles the RESET and ISP pins of the microcontroller to force a restart in ISP mode In Serial Programming Then there is no required action from the user to load the firmware To have RESET and ISP work the 2 jumpers close to the main board serial port connector must be in place called J6 and J7 in the schematics UM10493 All information provided in this document is subject to legal disclaimers NXP B V 2012 All rights reserved User manual Rev 1 1 21 March 2012 12 of 25 COMPANY PUBLIC 211411 NXP Semiconductors UM10493 POS Reference Design Firmware description After the end of the FW load with FlashMagic the microcontroller restarts automatically and t
4. e The Keypad task forwards to the Foreground task information entered by the user on the keypad Demonstration application Foregroung task Cmd queue Evt queue Background task Card Detection task Keypad task C gt ce O Fig 19 Tasks communication scheme 5 2 Application state machine The state machine is handled by m s TUIForgroundProcess function mls TUIMan c file Each state is linked to e A Draw function misTUlState_Draw which updates the LCD screen according the current state and launch the execution of the related action e An Execute function misTUlState_Execute which set the next state according to the current event received UM10493 All information provided in this document is subject to legal disclaimers NXP B V 2012 All rights reserved User manual Rev 1 1 21 March 2012 21 of 25 COMPANY PUBLIC 211411 9NaInd ANVdINOD jenuew ssn LLbLLz ZLOZ YEW Le LL A9y GZ JO 2 S o oO ao START qc E Any key gt Y gt MAIN D Y y Key 2 Key hey Any Key number y y l AT PRAT Key PAYMENT INFORMATION Key Key HIDDENMENU y a 33 gt a a 2 Key NextState Debit gt Key 2 NextState GetInfoy ________
5. El POSRD2 EE Includes E DebugTest H E script E sre Quickstart Pan EZ 63 Variables a Breakpoints E L Start here z mie 3 Problems Memory ill Red Trace Preview ME a Ej New project v 4 Import Example project s lop Build all projects DebugTest amp Build POSRD2 DebugTest of Clean POSRD2 DebugTest 5 Debug POSRD2 DebugTest 3 Quick Settings Project and File wizards Import and Export E Fig 8 LPCXpresso Project POSRD2 imported All information provided in this document is subject to legal disclaimers NXP B V 2012 All rights reserved COMPANY PUBLIC Rev 1 1 21 March 2012 10 of 25 211411 NXP Semiconductors U M1 0493 POS Reference Design Firmware description 3 3 Compiler Code Sourcery Before being able to compile the source code the compiler must be installed Code Sourcery G Lite has been used for this FW Sourcery G Lite edition for ARM embeds a GNU tool chain for ARM microcontrollers www nxp com redirect codesourcery com sgpp lite edition It can be downloaded from the CodeSourcery download webpage www nxp com redirect codesourcery com sgpp lite arm portal release1592 The IA32 Windows installer is the right file to install the compiler The version that have been used for this POSRD2 FW release is version 2010 09 51 Once the package is downloaded it can be installed by lau
6. Bey Nextolate lt F2pbie 3 Key 3 NextState ResetCard Key 3 NextState P2pLoopback 2 pa y 3 3 Key POSPOLL o 2 Key 1 lt y Card present Key 1 ka 2 i cla Key 5 5 P2P i NextState ResetCard z y Y Y Y Y gt d h g a N d gt 5 oN g ri N pS Key H P2P PROCESSINFO RESETCARD ABOUTPOS pol EMVPOLLING pKeyit EMVCONTACT Key P2PPOLLING Key _ RESETTINGS Key 8 poo lt gt AA AA aes 2 En y e ES o i CERAS SS E or gt E 3 i i i A Action complete 2 Acllon complete Action complete Action complete Any Key Action complete Card present Action complete Card present Card present P a Error t i NextSt Getinfc a oy x gt i o lextState GetInfo f E 2 A mara cy EMVCTLOOPBACK NextState P2pLoopback NextState P2pDta S e Y lt E Pocero DEBIT y a d 3 x y N d P2PLOOPBACK Key Key _ P2PDTA o Ma lt gt ka Action complete 2 Action complete E Action complete Action complete 8 ee a D a gt 3 CARDINFORMATION MESSAGE E 2 ul E Any key Any key f Fig 20 Application state machine S10 9NpuodIW S dXN pamasa syu Ily ZLOZ A dXN uondnos p 9IEMUNIH UBIS9IG 89Ud19J9y SOd E6DbOLINN NXP Semiconductors UM10493 6 Legal information POS Reference Design Firmware description 6 1 Definitions Draft The document is a draft version only The content is
7. Welcome page LPCXpresso 10 l xi File Edit Navigate Search Project Run Window Help ee Anse OD s eh i e AO A la lags E n de Al AA 9 welcome 2 ER e cries E Pou File C nxp Ipexpresso_3 6 pages unregistered htm gt gt a GU RSHIES powered by Mcode red Fe ES Please note Your product is not activated jik ji an unactivated product may only be used for Evaluation purposes Register and activate your product to remove this restriction Restart Activating your product Ey Import la of Baa Exports E console 3 i Problems B Memory Al Red Trace Preview MENA Properties Alt Enter No consoles to display at this time 1 Welcome Welcome page Exit Build Y Clean Debug 2 Quick Settings Project and File wizards y P 115 Ditems selected POSRDZ NAP LPCI343 Fig 3 LPCXpresso Switch workspace Then choose a workspace e g C Workspace If the folder does not exist it will be created UM10493 All information provided in this document is subject to legal disclaimers NXP B V 2012 All rights reserved User manual Rev 1 1 21 March 2012 7 of 25 COMPANY PUBLIC 211411 NXP Semiconductors U M1 0493 POS Reference Design Firmware description Select a workspace LPCXpresso stores your projects in a Folder called a workspace Choose a workspace folder to use for this session duct to remove this restriction JE New project Import E
8. e The Foreground task which create other tasks is responsible for managing the LCD but above all it handles the application state machine e The Background task is responsible for executing actions contact or contactless according the current state e The Card Detection task is responsible for contact and or contactless card discovery as well as for running the OVR HAL process when P2P communication over LLCP protocol is initiated e The Keypad task is responsible for detecting when a key is pressed Demonstration application boot f Main task create Foregroung task ho aA 3 y e ai g d A 4 b g gt Background Card Detection task task pS W i d Y A Y y J Fig 18 Demonstration application tasks Tasks communicate together using message mechanism e The Foreground task indicates to the Background task which action needs to be performed according the current application state e The Background task indicates to the Foreground task when the action completes e The Card Detection task indicates to the Foreground task when a card has been discovered and if data has to be displayed to the LCD in P2P specific case UM10493 All information provided in this document is subject to legal disclaimers NXP B V 2012 All rights reserved User manual Rev 1 1 21 March 2012 20 of 25 COMPANY PUBLIC 211411 NXP Semiconductors U M1 0493 POS Reference Design Firmware description
9. 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 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 6 3 Licenses Purchase of NXP ICs with ISO IEC 14443 type B functionality This NXP Semiconductors IC is ISO IEC 14443 Type B software enabled and
10. MinGW can be used To do so the mingw32 make exe file must be renamed to make exe This file is located in C MinGW bin UM10493 All information provided in this document is subject to legal disclaimers NXP B V 2012 All rights reserved User manual Rev 1 1 21 March 2012 6 of 25 COMPANY PUBLIC 211411 NXP Semiconductors U M1 0493 POS Reference Design Firmware description 3 2 Development environment LPCXpresso 3 2 1 Install LPCXpresso LPCXpresso is a development environment developed by NXP together with CodeRed to develop software for NXP s LPC microcontrollers See LPCXpresso web page http www nxp com lpcxpresso The first step to use LPCXpresso is to go on the download page and download the installer www nxp com redirect Ipcxpresso code red tech com LPCXpresso The registration is necessary for downloading the tool but the tool is then free to download Once the installer has been downloaded launch the executable file and install LPCXpresso with default parameters After the installation is complete launch LPCXpresso The first thing to do after the IDE has started is to choose a workspace For compilation reason it is recommended to use a path for this workspace without space in the absolute path To switch the workspace after the IDE has started choose File gt Switch Workspace gt Other see below develop
11. a pre loaded firmware so that the board is ready to be used for demonstration The LPC1768 embeds all the low level software to drive these interfaces Here is an overview of the default embedded firmware LPC1768 FreeRTOS P2P Demo LLCP Closed Loop Payment DESFire SAM PN512 HAL TDA8026 HAL aaa 000292 Fig 2 POS Reference Design Software block diagram All information provided in this document is subject to legal disclaimers NXP B V 2012 All rights reserved User manual COMPANY PUBLIC Rev 1 1 21 March 2012 5 of 25 211411 NXP Semiconductors U M1 0493 POS Reference Design Firmware description 3 Firmware tools The firmware has been developed using the following tolls LPCXpresso version 3 6 1 as editor file manager CodeSourcery version 4 5 1 as compiler MinGW as Linker and make tool 3 1 MinGW MinGW is used as a linker and to provide a make tool in case it is not available under the used computer MinGW is free for download from the website www nxp com redirect mingw org The download link will guide you to the SourceForge webpage to find the direct DL link www nxp com redirect sourceforge net projects mingw files To use MinGW in this project download the installer file from the web and install it under C MinGW should be the default path In case a make tool is not available under the development OS environment the tool from
12. arm none eabi size POSRD2 elf text data bss dec hex filename Debug POSRD2 DebugTest 180936 1040 16316 198292 30694 POSRD2 elf Quick Settings pe arm none eabi objcopy O ihex POSRD2 elf POSRD2 hex arm none eabi objcopy 0 binary POSRD2 elf POSRD2 bin Project and File wizards y Build complete for project POSRD2 amp import end bx Y po p consumed 30375 ms z Workspace Fig 9 First compilation console output UM10493 All information provided in this document is subject to legal disclaimers NXP B V 2012 All rights reserved User manual Rev 1 1 21 March 2012 11 of 25 COMPANY PUBLIC 211411 NXP Semiconductors U M1 0493 POS Reference Design Firmware description 3 4 FlashMagic 3 4 1 After the compilation ran correctly the project created a HEX file that can be loaded to the POS Ref Design board using the serial port To use FlashMagic it must first be downloaded from the main FlashMagic webpage and installed The download page is www nxp com redirect flashmagictool com FlashMagic direct use After installation run Flash Magic and configure it as follows Flash Magic NON PRODUCTION USE ONLY iol xf File ISP Options Tools Help EA alia A TS Step 1 Communications Step 2 Select Device ftrcr 768 COM Port com 1 y Baud Rate 115200 7 0 Interface None ISP Erase block 5 0x005000 0 005F FF x JV Erase all Flash Code Rd Prot Oscillator MHz
13. 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 Purchase of NXP ICs with NFC technology Purchase of an NXP Semiconductors IC that complies with one of the Near Field Communication NFC standards ISO IEC 18092 and ISO IEC 21481 does not convey an implied license under any patent right infringed by implementation of any of those standards A license for the patents portfolio of NXP B V for the NFC standards needs to be obtained at Via Licensing the pool agent of the NFC Patent Pool e mail info vialicensing com 6 4 Trademarks Notice All referenced brands 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 NXP B V 2012 All rights reserved User manual COMPANY PUBLIC Rev 1 1 21 March 2012 211411 23 of 25 NXP Semiconductors UM10493 7 List of figures POS Reference Design Firmware description 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 UM10493 POS Reference Design Hardware block diaguitas acti 4 POS Reference Design Software block AQF AIM incas 5 LPCXpresso Switch workspace
14. UM10493 POS Reference Design Firmware description Rev 1 1 21 March 2012 User manual 211411 COMPANY PUBLIC Document information Info Content Keywords PN512 TDA8026 LPC1768 Point of sales terminal Reference Design Abstract This user manual presents the NXP POS_RD evaluation board This reference design is used to demonstrate and evaluate the implementation of NXP s devices in a Point Of Sales terminal This documentation describes the Firmware embedded in the LPC1768 How to modify compile and load it NXP Semiconductors U M1 0493 POS Reference Design Firmware description Revision history Rev Date Description 1 1 20120321 Release for FW version 1 1b Section 4 Firmware description and Section 5 Demonstration application updated 1 0 20110726 First release Contact information For additional information please visit http www nxp com For sales office addresses please send an email to salesaddresses nxp com UM10493 All information provided in this document is subject to legal disclaimers NXP B V 2012 All rights reserved User manual Rev 1 1 21 March 2012 2 of 25 COMPANY PUBLIC 211411 NXP Semiconductors U M1 0493 POS Reference Design Firmware description 1 Introduction The UNXPOS board is a reference design made by NXP to demonstrate and evaluate a simple implementation of NXP devices in a Point Of Sales Terminal With this design Contact and Contactles
15. ci nnosiaoninarancannanarancanaorani nccnnai n 3 Firmware OVerVieW sssssusssnnnnenunnnnnunnnnnnnnnnnnnnnnn 5 Firmware t00lS assssssssunesnnnnnnnnnnennnnnnnnnnnnnnnnnnnnnn nnn 6 MIG Wisstaiarasnn los dr 6 Development environment LPCXpresso 7 Install LPOXpresSO oooonccccoccccocccnonnconcccnnnnananinnno 7 Import POSRD2 PrOjBCticococncccncicinccconcnncnccnnnoss 9 Compiler Code Sourcery coocococcccccccconiconnccnnnos 11 Build Source code ooooconcccioccccncccnoncconnconancnnnnnono 11 FIASAMAQIC caccccecctsesteceeteacecenesteenestaseesesannensseiess 12 FlashMagic direct USC eeen 12 Run FlashMagic from LPCXpresso 06 13 Common errors during the hex load 15 Unable to communicate s e 15 Failed to autobaud cccooooccccnnoccnononcccnnnoncnonanonons 15 Firmware description ooommccccnnnnnninnccnnanacnnnnanas 16 Version descriptiON ooooonncinnininnnnnnccnoccnnncccnnns 16 O A tae 16 A 16 Stack OVEIrVICW oooooconcccconoconncnconcnonnnncananonnnncnnos 17 Component list eeeeeeeeeeeeeneeseneeeeneeseneereaes 17 A aiden cals 17 CSP A tvanaees 18 MmiSADP aiii 18 co 18 misOs l Goal aanis 19 101514 19 0710 lAPPPPOPOPRO 5 O0 0 OO P ernai es 19 MlSUartLPC1 XX coccoccccoccccnnncnancconnnanancnnnncanancnos 19 TOASO2G EEA E ht stun AAT TATT 19 Ult a anal E E 19 Demonstration application 20 Tasks description seenen 20 Application state machine oooocooncccnnnocccc
16. ct with the same name already exists in the workspace it cannot be imported From the archive Select those you wish to import and press Finish Project archive C POSRefDesign POSRD2 zip i i Browse the web For more examples Press Browse the web to view the latest examples and download to your local drive Then use press Browse above to import into your workspace Browse the web D lt Back Next gt Finish Cancel Fig 6 Browse for POSRD2 zip package UM10493 All information provided in this document is subject to legal disclaimers NXP B V 2012 All rights reserved User manual Rev 1 1 21 March 2012 9 of 25 COMPANY PUBLIC 211411 NXP Semiconductors UM10493 UM10493 User manual POS Reference Design Firmware description Click Next then select the POSRD2 project checkbox and click Finish import Example project s Import Example project s Select a directory to search for existing Eclipse projects ro Projects POSRD2 POSRD2 m Gopy arojects inte Warspece Fig 7 Select POSRD2 Project The project is now imported into your LPCXpresso environment The files can now be browsed from the top left pan EE tox File Edit Navigate Search Project Run Window Help rive la ev S et SIS loo eo e lee Ej X Develop EEES ICE A ta gt Project Expl 23 WI Core Regist Peripherals om 20 Fh ie
17. ectory structure 4 3 1 bfl_4 6 The BFL Basic function library provides low level control of the PN512 as well as contactless 15014443 15018092 MIFARE protocols support UM10493 All information provided in this document is subject to legal disclaimers NXP B V 2012 All rights reserved User manual Rev 1 1 21 March 2012 17 of 25 COMPANY PUBLIC 211411 NXP Semiconductors U M1 0493 POS Reference Design Firmware description 4 3 2 csp This component provides low level control of the LPC1768 Core peripherals timer 12C SPI 4 3 3 mlsApp This component is the demonstration application 4 3 4 mlsGLCD This component provides low level control of the LCD display Two different LCD types can be used with this Reference design kit They differ in the way to access them The file GLCD c provides the two drivers with a compilation option define LCD _RM68050 0 For LCD PCB before 2011 05 23 define LCD_HX8347D 1 For LCD PCB After 2011 05 23 define LCD CONTROL LCD_HX8347D Fig 16 LCD type Compiler option The LCD Type can be known with the build date which is written below the LCD PCB eee ee woo MAA ile Fig 17 LCD PCB date If the date is 2011 05 23 LCD BOARD 230511 or earlier the value LCD_CONTROL must be defined equal to LCD_HX8347D If the date is before 2011 05 23 LCD_CONTROL must be equal to LCD_RM68050 UM10493 All info
18. he new firmware runs Depending on the serial port management from the computer the host PC may keep the LPC in reset mode when the serial port is connected In this case it is required either to remove the RESET jumper J7 to unplug the serial cable or to simply open the com port from the computer 3 4 2 Run FlashMagic from LPCXpresso FlashMagic does not need to be started manually to load the firmware LPCXpresso can do it for you at the end of the build To configure it under LPCXpresso go to Menu gt Run gt External tools gt External tools Configuration Here click on the New button and configure the tool as follows gt External Tools Configurations o Eos xj Create manage and run configurations Run a program type filter text Elman Refresh sio Build A Environment L Common Name FlashMagicLoader El O Program O FlashMagicLoader piiat C Program Files Flash Magic FM EXE Browse Workspace Browse File System Variables Working Directory workspace_loc POSRD2 DebugTest Browse Workspace Browse File System Variables Arguments COM 1 115200 DEVICE LPC1768 12 000000 HARDWARE BOOTEXEC 50 100 ERASE DEVICE PROTECTISP Note Enclose an argument containing spaces using double quotes HEXFILE workspace_loc POSRD2 DebugTest POSRD2 hex NOCHECKSUMS NOFILL PROTECTISP
19. mbedded in LPCXpresso the following errors can occur 3 4 3 1 Unable to communicate EEE i x A Unable to communicate in use Ensure no other applications are using the COM Port Try raising or lowering the baud rate Fig 12 Unable to communicate This means that the tool cannot open the COM port lt is either unavailable maybe the wrong COM port has been defined in the tool configuration or already open by another application Check again your COM port number and close all applications that may use it 3 4 3 2 Failed to autobaud Flash Magic x A Operation Failed Failed to autobaud step 1 See http www flashmagictool comfautobaud her Fig 13 Failed to autobaud This error means that the COM port has been opened but the access to the CPU in ISP mode cannot be done It can happen for several reasons Bad connection between the host computer and the POS board The connection must be done using a straight cable with at least RX TX DTR RTS and GND Jumpers missing on the board to connect DTR and RTS to ISP and RST Connect two jumpers on J6 and J7 close to the RS232 connectors RST not connected on the board On some boards first release the resistor R11 between the RS232 connector and the RST jumper is missing Then the RST cannot be controlled by FlashMagic To resolve it connect a O ohm resistor or a solder bridge on the R11 pads UM10493 All information pr
20. nannnos 21 Legal information ooonmcconnnnnccnnnnacnnanananonanacanananas 23 DefiNtON Skarstad eneee ari 23 DisclalMerS ooooccccnnnnccccccnnnnnccnnoncccnnncnnnnnrnccnnnnn 23 LICENSES aordrenas e eena ree E ERNER 23 Trademarks icons ne nine 23 List of TIQUIOS cinccoconicacconianiniancaninonranaconsrneniaicn as 24 e AAA An A 25 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 2012 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 21 March 2012 211411 Document identifier UM10493
21. nching the installer It must be installed in the default location with default configuration so that the LPCXpresso project can find the binaries with no change 3 3 1 Build Source code After Code Sourcery has installed successfully LPCXpresso is ready to build Press CTRL B or choose Menu gt Project gt Build All to start the compilation The full files must be compiled and the console should finally display the same information as below olx file Edit Navigate Search Project Run Window Help NETA lali Eres Floor jm 2 135 E X Develop e ACA lt L5 Project Expl M Core Regist Peripherals qm ENS Y El ye POSRD2 EE Ri Includes H E DebugTest EE script sre 4 Quickstart Pan ES _ amp Variables a Breakpoints m E3 0 2 Problems Memory ill Red Trace Preview 3 ou lt b s leith a 2 E console 23 gt 1 Problems O y E Be 5 C Build POSRD2 Ej New project A A ee E El R src Hall comps phHalNfc sre comps phJalJoiner src phJalJoineraAux o al Import Example project s src Hal comps phHalNfc srei comps phJalJoiner sre phJaldoiner o ss Build all projects DebugTest src Hal comps phHalNfc src comps phJalJoiner src phJalConnectionFunctions o src Hal comps phHalNfc srce comps phDalNfc sre x86_nt phDalNfc o amp Build POSRD2 DebugTest lDriversLPC1 xxgnu X of Clean POSRD2 DebugTest
22. nned 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 customer s third party customer s NXP does not accept any liability in this respect UM10493 All information provided in this document is subject to legal disclaimers 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
23. ovided in this document is subject to legal disclaimers NXP B V 2012 All rights reserved User manual Rev 1 1 21 March 2012 15 of 25 COMPANY PUBLIC 211411 NXP Semiconductors U M1 0493 POS Reference Design Firmware description 4 Firmware description 4 1 4 1 1 4 1 2 UM10493 Version description 1 0 First released FW version EMVCo digital tests passed debug session report from FIME provided 1 1b Updated application P2P at 106 kbps added for easier connection to some mobile phones Update application state machine go back in main menu instead of hidden menu after mobile phone data exchange Remove unused folders and files Not tested for EMVCo certifications All information provided in this document is subject to legal disclaimers NXP B V 2012 All rights reserved User manual Rev 1 1 21 March 2012 16 of 25 COMPANY PUBLIC 211411 NXP Semiconductors U M1 0493 POS Reference Design Firmware description 4 2 Stack overview The following figure shows the different components of the POSRD firmware PN512 HAL TDA8026 HAL Fig 14 Firmware stack overview 4 3 Component list Below figures show the directory structure view of the firmware components 4 E src gt E bfI4 6 gt csp gt gt include gt E mlsApp gt 3 mlsGLCD gt amp mlsOsal gt 5 mlsPinpad gt E misUartLPC17xx gt amp tda8026 gt amp utils Fig 15 Files dir
24. rmation provided in this document is subject to legal disclaimers NXP B V 2012 All rights reserved User manual Rev 1 1 21 March 2012 18 of 25 COMPANY PUBLIC 211411 NXP Semiconductors U M1 0493 4 3 5 4 3 6 4 3 7 4 3 8 4 3 9 POS Reference Design Firmware description misOsal This component is made of an OS FreeRTOS for the LPC1768 an OS abstraction layer and a memory management module misPinpad This component provides low level control of the keypad mlsUartLPC17xx This component provides low level control of the LPC1768 UART tda8026 This component provides low level control of IS07816 UART emulated using LPC1768 GPIO pins and timer as well as SO7816 protocol support utils This folder includes the APIs for the application to use the HW Automatic Device Discovery Contact and Contactless polling Data exchange LLCP protocol for NFC P2P protocol UM10493 All information provided in this document is subject to legal disclaimers NXP B V 2012 All rights reserved User manual Rev 1 1 21 March 2012 19 of 25 COMPANY PUBLIC 211411 NXP Semiconductors U M1 0493 POS Reference Design Firmware description 5 Demonstration application 5 1 Tasks description The Demonstration software part is made on several tasks running in parallel in the microcontroller e The main task is only dedicated to the boot execution and then the creation of the Foreground task
25. s applications can be evaluated as the design embeds all the needed Hardware and software for the following interfaces Contactless user card with PN512 power amplifier Contact user card with the TDA8026 main slot Up to 4 Secure Access Modules with TDA8026 slots 2 to 5 The user interface is composed of an LCD screen and a Keyboard The following figure gives an overview of the reference design hardware UM10493 All information provided in this document is subject to legal disclaimers NXP B V 2012 All rights reserved User manual Rev 1 1 21 March 2012 3 of 25 COMPANY PUBLIC 211411 NXP Semiconductors UM10493 POS Reference Design Firmware description c5 C1 C6 c2 C7 c3 c8 C4 C1 Card connector C5 C1 C6 C2 C7 c3 c8 C4 SAM2 m j olor LCD Display Card connector C5 C1 JTAG C6 C2 c7 c3 cg C4 SAM3 SW SPI lO Juart LEAL 816 Card connector TDA8026 ey 791 c5 Ci 2c C6 C2 C7 c3 ca C4 SAM4 Card connector Pin PAD entry cs c1 il C6 C2 C7 c3 c8 C SAM5 Card connector aaa 000291 Fig 1 POS Reference Design Hardware block diagram UM10493 All information provided in this document is subject to legal disclaimers NXP B V 2012 All rights reserved User manual Rev 1 1 21 March 2012 4 of 25 COMPANY PUBLIC 211411 NXP Semiconductors UM10493 POS Reference Design Firmware description 2 Firmware overview UM10493 The board is delivered with
26. 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 6 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 p
27. ublished 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 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 pla
28. xample project s ls Build all projects Bula 1 Y cean deta TI Fig 4 _LPCXpresso Choose workspace Then click on OK After this action LPCXpresso automatically restarts with the new workspace path UM10493 All information provided in this document is subject to legal disclaimers NXP B V 2012 All rights reserved User manual Rev 1 1 21 March 2012 8 of 25 COMPANY PUBLIC 211411 NXP Semiconductors U M1 0493 3 2 2 POS Reference Design Firmware description Import POSRD2 Project To start working on the POS Reference Design Firmware it must be imported into LPCXpresso To do so choose the link Import Example Project in the Quickstart pan bottom left Quickstart Pan 8 0 Variables e Breakpoints O Start here 2 CY Import Example project s 3 Quick Settings si Build all projects A Build o Clean Debug Project and File wizards Import and Export Build and Settings Fig 5 Import project link Browse to find the POSRD2 zip package supplied with the Reference design data import Example project s y iol xj Import Example project s Select the examples archive file to import PF a Projects are supplied in project archive Format zip Multiple projects can be contained within each archive After selecting your archive press Next If a proje

Download Pdf Manuals

image

Related Search

Related Contents

Selecção de Sistemas de Segurança para Prensas Mecânicas Não  User`s Manual    Samsung SGH-X430 คู่มือการใช้งาน    T26 DC/AC T32 DC/AC  SBE 17plus V2 Manual - Sea  Philips SHL3160WT  Hypertec Z9828ZHY User's Manual  Table of Contents目錄  

Copyright © All rights reserved.
Failed to retrieve file