Home

AN11664 QN9020 Quick Start Guide

image

Contents

1. gt Virtual COM Port Drivers i This page contains the VCP drivers currently available for FTDI devices For D2XX Direct drivers please click here Installation guides are available from the Installation Guides page of the Documents section of i gt VCP Drivers Virtual COM port VCP drivers cause the USB device to appear as an additional COM port ave access a standard COM port Sales Network Web Shop Newsletter This software is provided by Future Technology Devices International Limited as is and any Corporate merchantability and fitness for a particular purpose are disclaimed in no event shall future tech Contact Us exemplary or consequential damages including but not limited to procurement of substitute g any theory of liability whether in contract strict lability or tort including negligence or otherwis 88a 018404 Fig 5 Driver location for BLE dongle Installed drivers can be verified by checking the device manager in Windows OS see Figure 6 Two COM ports are added to the list One is the USB Serial Port COM4 indicating the BLE Dongle The other is a Link CDC UART Port COMB5 for the JLink OB on Mini DK board The COM port number can be different for each computer Therefore it is always a good practice to check the ports with regards to the hardware connected Note Ensue that the correct COM port number is used when downloading code and during evaluation using QTool COM port assignments c
2. am AN11664 Bus QN9020 Quick Start Guide Rev 1 5 June 2015 Application note Document information Info Content Keywords Mini DK SDK installation working mode download NVDS configuration connect GPIO configuration Abstract This application note discusses the use of the QN9020 mini development kit Mini DK for evaluating and developing Bluetooth Low Energy BLE solutions based on QN902X NXP Semiconductors AN11664 Revision history QN9020 Quick Start Guide Rev Date Description v 1 20150605 Initial release Contact information For more information please visit http www nxp com For sales office addresses please send an email to salesaddresses nxp com AN11664 All information provided in this document is subject to legal disclaimers NXP Semiconductors N V 2015 All rights reserved Application note Rev 1 5 June 2015 2 of 32 NXP Semiconductors AN1 1 664 QN9020 Quick Start Guide 1 Introduction 1 1 Overview The QN9020 Mini Development Kit Mini DK is designed for evaluating and developing Bluetooth Low Energy BLE solutions based on QN902X The purpose of this document is to give an overview of the hardware and software included in the QN9020 Mini DK For more detailed information on BLE technology and software platform for QN9020 refer to QN9020 Software Developers Guid
3. 000055 6 Driver for BLE Dongle 6 Working mode 00 eene 8 Wireless SoC mode 00055 8 Network processor mode 9 Components of GBlue SDK 10 SDK folder structure 05 10 Bina eae dee E xd eed ala nG 11 Documents elles 11 Projects uas eh Rer E 11 TOO S cei tee aaa ane MM 11 Software components 11 TOOlS sn exor Rech Gee ae ce kha 12 Documents sels sns 12 PioJ6Gt cd esee E ER are ee pe NER 12 SUPPON na nn AG aang PANGKAT eyed y kona 12 Quick start with Demo 12 Download file anaana 13 Steps to download file with QBluelSPStudio 13 Step 1 napana IE IE Yd PX rid 13 lp C alone bene ud Batan eens woe 13 bo 0S ae a boe Le RS a ee ee 13 o AA 14 Step Dia esie qa o Oe a AN KA hy su b ac 14 Download file in Keil 15 Configure BLE device 16 Steps to configure BLE device 17 Step 15 ise thai nana pet aede 17 SIeD 2 silua tear DAGAT REG beer p 18 Step Odisea eI eeu Pants 19 5 2 1 4 5 2 1 5 5 3 5 3 1 5 3 1 1 5 3 1 2 5 3 1 3 5 3 1 4 5 3 1 5 5 3 1 6 5 4 5 4 1 5 4 1 1 5 4 1 2 5 4 1 3 5 4 1 4 5 4 2 5 4 3 6 1 6 2 10 10 1 10 2 10 3 11 12 13 o AA 20 Step Bi asear aaa AA KA AA MEE 21 Connection 21 Steps to set up the connection between the Mini DK board and BLE dongle 21 Step T issus se ew gr R
4. 206 T ms 20000 90mm Local Device Traces E IEstabish Lek oega soo el TCA TR SST EY rx A 65535 5 IPE E Gat iaman Eleng 2 Maman CE lang 65535 aaa 016426 Fig 27 Connection in QTool The role of BLE Dongle changes to master and the Mini DK board acts as slave The state of both devices is connected as shown in Figure 28 All information provided in this document is subject to legal disclaimers NXP Semiconductors N V 2015 All rights reserved Application note Rev 1 5 June 2015 23 of 32 NXP Semiconductors AN11664 QN9020 Quick Start Guide Hie Device Help cH Devices Fig 28 Devices connected Settngs Address Name Address Type State Role Cornecson to peer Poer ATT Securty Chore 4 087cbe018826 Quintic BLE Public Cemmeeten Sette O87cbeO45B0f test Public Med Sigup Mn Consecton IMervall 200 24 pases oons 087cbea00008 Pedometer Public Advertising UNGEN Max Coenecoon intervel 200 40 gt 125e4 Some Stave Latency 0 499 e 8 Supervision Tmweout 10 3200 2000 10ms 20000 00ms T D Updata Local Device Traces Estebksh Uni Ternate Lini c Whee Ust Comecon Hande 00000 aden Zequest Lemons a Desconeect oc RE CMD SMPC CHK BD ADOR REQ ESF HA Coneecton dex 000 5 Status Found or Mat 5 Link Securtty Stt 000 3 Address Type O00 3 Random Acdress O87cbe04secr nx RUE EVT GAP_PARAM_UPOATE RIQ NO 5 Comecon Handle 9000 Rem
5. 5 Qn9020DevDBforlDE This tool is used to add device database for QN9020 series chip into IDE including ARM Keil MDK ARM and IAR Refer to QN9020DevDBforIDE User Manual Documents Software Doc in the documents area leads directly to a software document folder described in Section 4 1 2 Project Projects area consists of three parts namely BLE example linked to the BLE folder under the Projects folder see Section 4 1 3 Driver example linked to the Driver folder under the Projects folder see Section 4 1 3 Example bin files linked to the BinFiles folder see Section 4 1 1 Support It consists of links to website support pages to get support Homepage http www nxp com products microcontrollers product series e Contact NXP support http www nxp com support html 5 Quick start with Demo AN11664 The QN9020 Mini DK board can be shipped with some pre loaded profile A proximity profile is used here as an example to demonstrate how to start with QBlue quickly The proximity demo enables an interactive connection with BLE Dongle acting as a BLE master and Mini DK board as a slave Note All Mini DK boards are in a deep sleep mode when powered up It means that the debug ports do not respond To debug or start advertising and eventually connect press Button1 on the Mini DK All information provided in this document is subject to legal disclaimers NXP Semiconductors N V 2015 All rights reserved
6. TagID Label Data Type Value 1 Bluetooth device ad BD Addr 08 7C BE 00 00 00 i2 Je aring 3 Clock Drift Number 0x64 4 External wake up time Number 0x384 5 Oscillator wake up t Number 0x384 11 TKTYPE Bool False IA TK String 111111 13 IRK Array H 01 5F E8 B4 56 07 8E 22 18 A6 7C E1 E4 BA 99 A5 14 CSRK Array H 02 45 30 DA 3A FC 81 48 F1 OD AD 2E 91 9D 57 7B 15 LTK Array H BF 01 FB 9D 4E F3 BC 36 D8 74 F5 39 41 38 68 4C 16 XCSEL Number Ox11 17 Temperature Offset Number 0xFFFFFF38 18 ADC Scale Number X Ox3E8 19 ADC VCM Number OxiF4 Reset Tag Reset All Bun Disconnected aaa 018420 Fig 21 NVDS configurator main window The values can be changed according to specific requirement However the default value is recommended Table 1 Important items Items Description Bluetooth device address 48 bit bluetooth device address Device name name of the BLE device to differentiate from other Bluetooth devices Clock Drift while using 32 768 kHz crystal oscillator set it according to the specification of crystal used recommended value is 100 ppm to have margin for load variation and temperature change while using 32 kHz RC oscillator set it to 500 ppm External wake up time 900 us 0x384 is recommended by default while using 32 K Oscillator wake up time low power mode it should be set as 3000 us 0xBB8 XCSEL cap load of 16 MHz crystal
7. 2015 22 of 32 NXP Semiconductors AN1 1 664 QN9020 Quick Start Guide Serg Address Name Address Type State Role Authentication Encryption Version foma Coene Made lohar Whte ust Server 087cbeQ187 amp Qumtic BLE Publ ide Undefeed 490979864 IGAD Decor Mode Lj Dever Found O Lc Dever Traces aaa 018425 Fig 26 QTool opened 5 3 1 4 Step 4 5 3 1 5 5 3 1 6 AN11664 Select the item in Devices It shows the Settings area Step 5 To switch it to advertising mode press BUTTON on Mini DK board and press scan button shown in Figure 26 The discovered devices are now shown in Devices area Step 6 To initiate a connection select the Mini DK from the scan result and click the Connect button in Settings block see Figure 27 Hoso Tt GENE RM CC a 7C Ceu File Dewoe Help B Dewces sanag Acres Name Address Type Stace Role Awthenkation Encryption Version Comectontopeer rar Seonty et D8 cbe206980 longyys BLE UAA Public Agwerbsing Undefined Dwabie Disable Comecon Samnga O81084 Public Advertsing Undefined Disable Dratee Min Connection bervei 1200 26 S 125mm mm OB Tce Bc Public Advertising Undefined Disable Dranse a eru E imusin 067 cbe206904 ibegsys BLE UAA Public Advertising Undefined Disable Disable 504a1c352e48 Random Advertising Undefined Disable Disable Stove uanga s D87cbe000000 BLE lan Pubbe Advertising Undefined Disable Disable apenemes Temeo l0 130
8. Application note Rev 1 5 June 2015 12 of 32 NXP Semiconductors AN1 1 664 QN9020 Quick Start Guide 5 1 Download file 5 1 1 Steps to download file with QBluelSPStudio 5 1 1 1 Step 1 Start QBlue 5 1 1 2 Step 2 Click QBluelSPStudio on QBlue start page see menu in Figure 12 amp QBlue ISP Studio TEM x Help Parameters Device Crystal Interface COM Port Baudrate App Location Options V Download Application File Download Configuration File Download Data File M Verify Flash Lock OTA Flash Clk 8000000 v Data Addr Ox1E000 Device is not connection aaa 018411 Fig 12 Setting ISP studio 5 1 1 3 Step 3 Select UART interface and the correct COM port Use the COM Port for JLink CDC UART port AN11664 All information provided in this document is subject to legal disclaimers NXP Semiconductors N V 2015 All rights reserved Application note Rev 1 5 June 2015 13 of 32 NXP Semiconductors AN1 1 664 QN9020 Quick Start Guide 5 1 1 4 Step 4 Click Open file under Application to locate the bin file and choose proxr bin The demo bin files provided in QBlue SDK are located in C QBlue QBlue 1 3 6 BinFiles Organize Open New folder X Favorites Name Date modified Wi Desktop proxr bin 2015 3 11 13 23 l Downloads Recent Places aaa 018412 Fig 13 Proximity bin file 5 1 1 5 S
9. Burn button and write parameters back to QN9020 see Figure 23 E asue 10s congue TR alis coi File Operate Help TagID Label Data Type Value 1 Bluetooth device ad BD Addr 08 7C BE 00 00 00 2 Device name String Quintic BLE lan 3 Clock Drift Number 0x64 4 External wake up time Number 0x384 5 Oscillator wake up t Number 0x384 11 TK TYPE Bool False 12 TK String 111111 13 IRK Array H 01 5F EB B4 56 07 BE 22 18 A6 7C E1 E4 BA 99 AS 14 CSRK Array H 02 45 30 DA 3A FC 81 48 F1 OD AD 2E 91 9D 57 78 15 LTK Array H BF 01 FB 9D 4E F3 BC 36 D8 74 F5 39 41 38 68 4C 16 XCSEL Number 0x11 17 Temperature Offset Number OxFFFFFF38 18 ADC Scale Number Qx3E8 Number Ox1F4 ADC VCM a Tag Reset All Cr Connected Dump configuration data from target success aaa 018422 Fig 23 Burn configuration 5 3 Connection 5 3 1 5 3 1 1 AN11664 When the Mini DK board is powered on or reset it is in deep sleep mode In this mode LED2 is ON The following are the LED indications e LED1 ON It indicates that the application is connected If it is flickering it means that it is advertising LED2 ON It indicates that QN9020 is in the deep sleep state Steps to set up the connection between the Mini DK board and BLE dongle Step 1 Press BUTTON as shown in Figure 24 to take the board into advertising state and make it discoverable The L
10. GOB based IDES and many others Debug smarter and faster with J Link debug probes The 3 Link firmware was developed with SEGGER s own embed Si ging ts design a usque advantage Production Programmers Evaluate our softwarel a E E aaa 018403 Fig 4 Location for JLink software Note The JLink software also contains a USB driver for JLink OB 3 3 Hardware Setup 3 3 4 Hardware Connection Refer to QN9020 Mini DK User Guide for the usage of the Mini DK board 3 3 2 Driver installation Virtual COM Port VCP drivers make the USB device appear as an additional COM port on the PC Application software accesses the USB device in the same way as it would access a standard COM port 3 3 2 1 Driver for JLink OB Driver for JLink OB is included in JLink software see Section 3 2 3 It is installed automatically while installing the JLink software 3 3 2 2 Driver for BLE Dongle Refer to Application Note AN 104 for detailed installation It can be downloaded from FTDI website http www ftdichip com Support Documents AppNotes htm This guide helps with the installation of the FTDI s Combined Driver Model CDM driver for the Microsoft Windows operating system AN11664 All information provided in this document is subject to legal disclaimers NXP Semiconductors N V 2015 All rights reserved Application note Rev 1 5 June 2015 6 of 32 NXP Semiconductors AN11 664 QN9020 Quick Start Guide
11. QTool opened 0c eee eee eee 23 Connection in QTool 0000 eee 23 Devices connected eee eee 24 PROXM app discovered 24 Adding a driver file 000 26 Adding a driver file a 26 GPIO example a 27 All information provided in this document is subject to legal disclaimers NXP Semiconductors N V 2015 All rights reserved Application note Rev 1 5 June 2015 31 of 32 NXP Semiconductors AN11664 13 Contents QN9020 Quick Start Guide mb smb e NN N N ip 2 2 1 2 2 3 3 1 3 2 3 2 1 3 2 2 3 2 3 3 3 3 3 1 3 3 2 3 3 2 1 3 3 2 2 3 4 3 4 1 3 4 2 4 4 1 4 1 1 4 1 2 4 1 3 4 1 4 4 2 4 2 1 4 2 2 4 2 3 4 2 4 Introduction sllessseeess 3 Overview aana anaana aaea 3 System requirements 3 System requirements nannan anana 3 External resources n unnan nnan 3 Contents of Kit 0c cece eee 3 Hardware 0 cece eee eee 3 Software ee eee 4 Getting started eee eee ees 4 System overview aa 4 Software installation s a nananana 5 Keil MDK ARM 0000000 eee 5 QBlue x x setup exe 2 2 eee eee 5 JLink software ee eee 6 Hardware Setup eee eee eae 6 Hardware Connection 6 Driver installation 0 05 6 Driver for JLiNnk OB
12. SDK provides a GUI for users Figure 11 shows the start page after launching QBlue BLE Example QBluelSPStudio D Driver Example ise Example Bin files QBlueNVDSConfigurator e QBlueDriverTool Documents ee Software Doc aaa 018416 Fig 11 QBlue start page All information provided in this document is subject to legal disclaimers NXP Semiconductors N V 2015 All rights reserved Application note Rev 1 5 June 2015 11 of 32 NXP Semiconductors AN1 1 664 4 2 1 4 2 2 4 2 3 4 2 4 QN9020 Quick Start Guide Tools 1 QTool QTool is a PC tool that controls the BLE dongle It allows the user to set up a connection between the BLE USB dongle and the other BLE device A detailed user manual for the QTool can be found in the software documentation QTool User Manual 2 QBluelSPStudio QBluelSPStudio is a tool to download application binary file data file or NVDS configuration file into QN90xx series of BLE devices Refer to QBlue ISP Studio Manual for more information 3 QBlueNVDSConfigurator It is a tool to add edit and delete NVDS configuration data for BLE application development based on QN9020 platform Refer to QBlue NVDS Configurator Manual for details 4 QBlueDriverTools It is a PC tool to make it easier to write peripheral driver code for BLE application development based on the QN9020 platform Refer to QN902x Driver Tools Manual for further details
13. document is subject to legal disclaimers Rev 1 5 June 2015 NXP Semiconductors N V 2015 All rights reserved 24 of 32 Application note NXP Semiconductors AN1 1 664 5 4 1 3 5 4 1 4 5 4 2 5 4 3 QN9020 Quick Start Guide Step 3 Set the alert level in the Immediate Alert Service area to Medium or High Step 4 Click Write button The Mini DK board sounds an alert with the help of a Buzzer Proximity alerts are indicated using the Buzzer The volume of the buzzer indicates the type of alert Disconnect 1 Click disconnect button in Connection to peer tab see Figure 28 The device disconnects with no response 2 If the two devices are moved away from each other the RF link may break In such a case the Mini DK board responds with an alert Others When buzzer is ON press BUTTON to turn off the buzzer 6 Advanced application development AN11664 6 1 According to specific requirement it may be necessary to add some peripheral functions such as Button LED and Buzzer Useful tools are provided to help with implementation It is easier to implement specific functions observing the sample codes in QBlue SDK Add driver file Suppose that it is required to implement button control which needs GPIO definition It is easy to implement it by using the Keil development tool By default there is a folder named driver at C QBlue QBlue x x x Projects BLE src All peripheral fu
14. oscillator default value is 0x11 adjust according to the specific PCB design and crystal used in real applications ADC scale ADC VCM both parameters are for ADC and their values may be different for each chip values are tested and calibrated while manufacturing All information provided in this document is subject to legal disclaimers NXP Semiconductors N V 2015 All rights reserved Application note Rev 1 5 June 2015 19 of 32 NXP Semiconductors AN11664 5 2 1 4 Step 4 Click value field of device name record and change the device name see Figure 22 QN9020 Quick Start Guide TagID Label Data Type Value Bluetooth device ad 8D Addr Clock Drift Number External wake up time Number Oscillator wake up t Number TK TYPE Bool XCSEL Number Temperature Offset Number ADC Scale Number Number Device name String TK String IRK Array H CSRK Array H LTK Array H False 111111 01 5F E8 B4 56 07 8E 22 18 A6 7C E1 E4 BA 99 AS 02 45 30 DA 3A FC 81 48 F1 OD AD 2E 91 9D 57 7B BF 01 FB 9D 4E F3 BC 36 D8 74 F5 39 41 38 68 4C ETETY RH E aaa 018421 Fig 22 Change device name AN11664 All information provided in this document is subject to legal disclaimers NXP Semiconductors N V 2015 All rights reserved Application note Rev 1 5 June 2015 20 of 32 NXP Semiconductors AN1 1 664 QN9020 Quick Start Guide 5 2 1 5 Step 5 Click
15. 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 Translations A non English translated version of a document is for reference only The English version shall prevail in case of any discrepancy between the translated and English versions 10 3 Trademarks Notice All referenced brands product names service names and trademarks are the property of their respective owners I C bus logo is a trademark of NXP Semiconductors N V NXP Semiconductors N V 2015 All rights reserved Application note Rev 1 5 June 2015 30 of 32 NXP Semiconductors AN11664 11 Tables QN9020 Quick Start Guide Table 1 Importan
16. ED1 now starts flickering The flashing frequency depends on the advertising interval For the first 30 seconds the application uses a short advertising interval After 30 seconds LED1 flashing frequency will be lower as the advertising interval has increased to around 1 sec If BUTTON is pressed again the application stops advertising and LED1 stops flashing The application is back to deep sleep state All information provided in this document is subject to legal disclaimers NXP Semiconductors N V 2015 All rights reserved Application note Rev 1 5 June 2015 21 of 32 NXP Semiconductors AN1 1 664 QN9020 Quick Start Guide aaa 018423 Fig 24 BUTTON1 5 3 1 2 Step 2 Step 2 Start QTool from QBlue start page Figure 25 shows the message that pops up for communication setting Communication Setting t xX Serial Port Settings Serial COM5 v Baudrate 9600 x Update ose current used po L Open aaa 018424 Fig 25 Connection setting in QTool 5 3 1 3 Step 3 Select the correct COM port for BLE Dongle It can be checked with the device manager Press Open button in the dialog box Figure 26 shows the resultant window The device representing BLE Dongle would be in idle state by default AN11664 All information provided in this document is subject to legal disclaimers NXP Semiconductors N V 2015 All rights reserved Application note Rev 1 5 June
17. NXP Semiconductors product can reasonably be expected to result in personal injury death or severe property or environmental damage NXP Semiconductors and its suppliers accept no liability for inclusion and or use of NXP Semiconductors products in such equipment or applications and therefore such inclusion and or use is at the customer s own risk Applications Applications that are described herein for 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 AN11664 All information provided in this document is subject to legal disclaimers design It is customer s sole responsibility to determine whether the NXP Semiconductors product is suitable and fit for the customer s applications and products planned as well as for the planned application and use of customer s third party customer s Customers should provide appropriate design and operating safeguards to minimize the risks associated with their applications and products NXP Semiconductors does not accept any liability related to any default damage costs or problem which is based on any weakness or
18. QnDriver1 QN9020 6x6mm Bluetooth 4 0 File Edit View Peripherals Window Help PI TEET IE TE aaa 018436 b Select P2 6 and P2 6 as PWM function PO 7 L Pm loli 2 3 415 6 7 0l1 213 4 516 7l0 1 2 13 4 5 617 bd O He u T TS rx a P3 112 34156 7 ll sv I Valid Candidate Llpeo dot pumi dow Gi aaa 018436 All information provided in this document is subject to legal disclaimers NXP Semiconductors N V 2015 All rights reserved Application note Rev 1 5 June 2015 27 of 32 NXP Semiconductors AN1 1 664 QN9020 Quick Start Guide c After the setting is completed click button OK at the bottom right of the QBlueDriverTools window The source code is generated automatically as shown below Pin Mux Control Register syscon SetPNCRO QN SYSCON POO GPIO 3 PIN CTRL P03 GPIO 2 PIN CTRL POS GPIO 15 PIN CTRL POS SU DAT PIN CTRL PO7 SU CLK PIN CTRL P10 GPIO 8 PIN CTRL P11 GPIO 7 PIN CTRL P12 GPIO 6 PIN CTRL P13 GPIO 5 PIN CTRL P17 GPIO 4 PIN CTRL P23 GPIO 12 PIN CTRL P24 GPIO 11 PIN CTRL P27 GPIO 9 PIN CTRL P31 GPIO 14 PIN CTRL P32 GPIO 13 PIN CTRL Pin Mux Control Register syscon SetPMCRI ON SYSCON PO1 GPIO 18 PIN CTRL PO2 GPIO 17 PIN CTRL aaa 018439 2 Add PWM function to Project Open system c which is located at C QBlue QBlue x x x Projects BLE prj_proxr src by default Find P26 GPIO 10 PIN CTRL in function SystemlOCfg and repl
19. R RYE 21 Step 2 cross mahahaba kahanga ha 22 Slep3 coulie esc Ep y REUS REPE 22 SIepi4 ui cessus se e LR UR RR 23 Step 5i icol b yq PRA GA ERRER 23 SIBep 6 Ls sae Eee aes or ma ae 23 Function operation 5 24 Find mea eoe mae rales Ach cu ave RS 24 Step lina haa NLANG DAG T REPRE 24 Iro PC 24 SGD exui emos NE bees raed wees 25 SODA Mp 25 Disconnect ss na nai erect eee oa iha 25 Others 2 46208 20ecenuds ed eon ERE TERR 25 Advanced application development 25 Add driver file nananana 25 GPIO MUX Configuration 27 Trouble shooting 28 Abbreviations lsleesss 29 References s cs ior RR 29 Legal information 30 Definitions llle 30 Disclaimers 000000 eee eeeee 30 Trademarks eee eeeee 30 Tables cana RA RR ewan es 31 Figutes lese eee annes 31 Gonlenls A EGRE REUS 32 Please be aware that important notices concerning this document and the product s described herein have been included in section Legal information NXP Semiconductors N V 2015 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 5 June 2015 Document identifier AN11664
20. ace it with P26 PWM1 PIN CTRL Save this file After adding above code to current project compile the project and download it to Mini DK board to confirm the functionality Note 1 For more information about how to enable related module refer to example code at C QBlue QBlue x x x Projects Driver adc keil 2 For more information on QBlueDriverTools refer to QBlue Driver Tools Manual 7 Trouble shooting 1 Bin file download failed while using QBluelSPStudio see Section 5 1 1 5 2 Bin file download failed while using Keil Set the board in active mode and download again see Section 5 1 2 3 Error messages pop up while downloading application to Mini DK board Press BUTTON1 or BUTTON to wake up the board and download again see Section 5 1 2 AN11664 All information provided in this document is subject to legal disclaimers NXP Semiconductors N V 2015 All rights reserved Application note Rev 1 5 June 2015 28 of 32 NXP Semiconductors AN11664 8 Abbreviations QN9020 Quick Start Guide Table 2 Abbreviations Acronymn Description DK Development kit SoC System on Chip BLE Bluetooth Low Energy SMP Security Management Protocol GPIO General Purpose Input Output ACI Application Control Interface EACI Easy Application Control Interface ISP In System Programming SPI Serial Port Interface SWD Serial Wire Debug UART Universa
21. an be checked in the device manager AN11664 All information provided in this document is subject to legal disclaimers NXP Semiconductors N V 2015 All rights reserved Application note Rev 1 5 June 2015 7 of 32 NXP Semiconductors AN1 1 664 QN9020 Quick Start Guide File Action View Help e 20 HE a Computer Management Keyboards 4 System Tools P Mice and other pointing devices Task Scheduler BG Monitors n Event Viewer 8 Network adapters More Actions Shared Folders 4 T Ports COM amp LPT Local Users and Gri Y ECP Print 1 amp Performance 7 anagement Technology SOL COM3 amp Device Manager ink CDC UART Port COM4 amp Storage 8 Serial Port COM5 amp Disk Management da Services and Applicat Sound video and game controllers G Storage controllers Me System devices 4 Universal Serial Bus controllers Generic USB Hub Intel R 8 Series USB Enhanced Host Controller 1 9C26 Intei R USB 3 0 eXtensible Host Controller Intel R USB 3 0 Root Hub Cy Trunk driver 75 USB 20 MIT Hub USB 20 MIT Hub USB 3 0 Hub USB Composite Device USB Composite Device USB Root Hub USB Serial Converter aaa 018405 Fig 6 COM port of BLE dongle and JLink OB 3 4 Working mode 3 4 1 AN11664 QN9020 provides a flexible platform for wireless applications It supports two working modes Wireless SoC mode and Network processor mode For detailed information relat
22. 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 Export control This document as well as the item s described herein may be subject to export control regulations Export might require a prior authorization from competent authorities Evaluation products This product is provided on an as is and with all faults basis for evaluation purposes only NXP Semiconductors its affiliates and their suppliers expressly disclaim all warranties whether express implied or statutory including but not limited to the implied warranties of non infringement merchantability and fitness for a particular purpose The entire risk as to the quality or arising out of the use or performance of this product remains with customer In no event shall NXP Semiconductors its affiliates or their suppliers be liable to customer for any special indirect consequential punitive or incidental damages including without limitation damages for loss of business business interruption loss of use loss of data or information and the like arising out the use of or inability to use the
23. e 1 2 System requirements 1 2 4 System requirements The QN9020 Mini DK has the following system requirements acomputer running with Windows XP Windows 7 or Windows 8 acomputer with a minimum of 2 USB ports Note OS X Mac is not supported 1 2 2 External resources Keil MDK ARM JLink software 2 Contents of kit 2 1 Hardware The QN9020 Mini DK contains the following hardware components Mini DK board BLE dongle USB cable The hardware components are shown in Figure 1 AN11664 All information provided in this document is subject to legal disclaimers NXP Semiconductors N V 2015 All rights reserved Application note Rev 1 5 June 2015 3 of 32 NXP Semiconductors AN1 1 664 2 2 QN9020 Quick Start Guide aaa 018400 Fig 1 Hardware components of DK Note Mini DK can also be used for software development for QN9021 There is a difference between the GPIO for the QN9021 and the QN9020 For details refer to the data sheet at http www nxp com documents data sheet QN902X pdf Software The Software Development Kit SDK is named as QBlue 1 x xx setup exe After ordering visit SDK customer support website https www collabnet nxp com to obtain the latest SDK package 3 Getting started AN11664 3 1 System overview The system consists of three parts see Figure 2 Mini DK board It is used for developing Bluetooth Low Energy BLE applications bas
24. ed on QN9020 It comprises on board RF matching circuit and antenna power supply GPIO connector buttons and LEDs The JLink On Board OB debugger is used to bridge QN9020 SWD and UART interface to PC download program and debug from PC BLE dongle It is a Bluetooth Low Energy BLE device controlled by the QTool running on a PC It works with the Mini DK as a pair for evaluation and debugging It is connected to a PC via USB QBlueStudio It is a software tool chain to work with the Mini DK and BLE dongle All information provided in this document is subject to legal disclaimers NXP Semiconductors N V 2015 All rights reserved Application note Rev 1 5 June 2015 4 of 32 NXP Semiconductors AN1 1 664 QN9020 Quick Start Guide PC QBlueStudio virtual UART virtual UART QN9020 JLink OB USB ATSAM3U2C DONGLE 1 aaa 018401 MINI DK Fig 2 System model 3 2 Software installation Before connecting the Mini DK Board to the computer install Keil MDK ARM or IAR QBlue x x x setup exe and Setup JLink Vxxx exe Keil is used in this document to show the instructions 3 2 1 Keil MDK ARM Keil MDK ARM can be downloaded and installed from the URL https www keil com download product see Figure 3 Version 4 5 or newer is recommended DUE t Products Downloaa Events Support Q Search Kel download Products Select a product from the list bel
25. ed to the working modes refer to QN9020 Software Developers Guide Wireless SoC mode In the Wireless SoC mode link layer host protocol profiles and application run on QN9020 Figure 7 shows how QN9020 is used in SoC mode Application examples use the SoC mode All information provided in this document is subject to legal disclaimers NXP Semiconductors N V 2015 All rights reserved Application note Rev 1 5 June 2015 8 of 32 NXP Semiconductors AN1 1 664 QN9020 Quick Start Guide PHY QN9020 aaa 018406 Fig 7 Wireless SoC mode 3 4 2 Network processor mode In the Network processor mode the link layer host protocols and profiles run on QN9020 whereas the application runs on the external processor The two components communicate via Easy ACI Easy Application Controller Interface over UART provided in QN9020 SDK For details refer to the QN9020 Easy ACI Programming Guide BEN QN9020 uc EE SE aaa 018407 Fig 8 Network processor mode AN11664 All information provided in this document is subject to legal disclaimers NXP Semiconductors N V 2015 All rights reserved Application note Rev 1 5 June 2015 9 of 32 NXP Semiconductors AN1 1 664 QN9020 Quick Start Guide HOST Easy ACI Controller aaa 018408 Fig9 Easy ACI interface 4 Components of QBlue SDK AN11664 4 1 When QBlue SDK is installed and executed it open
26. eserved Application note Rev 1 5 June 2015 26 of 32 NXP Semiconductors AN11664 6 2 AN11664 QN9020 Quick Start Guide EINEN 9 gpio Gg startup 8 uint32 t result 8 startup s 69 enum gpio level result level Sj system 70 E system c 71 Main Program Sy driver 72 int main void 3 prtec 73 Et serial flesh c 74 jspi c 75 SystemInit timer c 76 gpio io config uart c 77 dt c 78 Initialize GPIO ade c 73 gpio init analog c 80 dma c 81 Ejsir GPIO INTERRUPT EXAMPLE TRUE 2 gpio c 82 set P1 1 and P1 2 to pull up i2e 83 gpio pull set GPIO P22 GPIO PULL UP id p c 84 gpio pull set GPIO P25 GPIO PULL UP HG sre 85 E epi o example c 86 set P1 1 and P1 2 direction to input Bg lib 87 gpio set direction field GPIO P22 GPIO P25 uint32 Ba calibration lib 88 89 set PO 1 and P0 2 direction to output 90 gpio set direction field GPIO P03 GPIO PO4 uint32 ST aaa 018435 Fig 32 GPIO example The main function is in gpio example c GPIO MUX Configuration The GPIO pins are shared with digital or analog peripherals such as SPI UART I C and ADC The function of IO can be configured in QBlueQriverTools which generates the source code for the specific assignment of GPIO pins 1 Change GPIO function a Open QBlueDriverTool and choose IO icon as shown below a G QBlue Driver Tool
27. ile If QN9020 is in sleep mode while programming press BUTTON1 or BUTTON to wake up Mini DK Figure 17 and Figure 18 show the error messages that pop up when QN9020 is in sleep mode and the user is trying to program through Keil All information provided in this document is subject to legal disclaimers NXP Semiconductors N V 2015 All rights reserved Application note Rev 1 5 June 2015 15 of 32 NXP Semiconductors AN1 1 664 QN9020 Quick Start Guide JLink Cortex M Error Pee x No Cortex M SW Device Found aaa 018416 Fig 17 Failure note yVision Error Flash Download failed Target DLL has been cancelled aaa 018417 Fig 18 Failure note 5 2 Configure BLE device Use NVDS configurator tool and configure the BLE device address name etc This configuration data is stored in the NVDS area of flash The NVDS configurator makes it easier to add edit and delete the configuration data The tool is also used to burn the configuration data to target chip or dump it from the chip For more information on this tool refer to the QBlue NVDS Configurator Manual AN11664 All information provided in this document is subject to legal disclaimers NXP Semiconductors N V 2015 All rights reserved Application note Rev 1 5 June 2015 16 of 32 NXP Semiconductors AN1 1 664 5 2 1 5 2 1 1 AN11664 QN9020 Quick Start Guide Steps to configure BLE device Ste
28. l Asynchronous Receiver Transmitter 9 References Released with SDK QN9020 Easy ACI Programming Guide QBlue QTool User Manual QBlue ISP Studio Manual QBlue NVDS Configurator Manual QBlue Driver Tools Manual QN9020DevDBforlDE User Manual Released in Customer Support Website QN9020 Software Developers Guide QN9020 Mini DK User Guide Others 1 http www keil com uvision debug asp 2 https www segger com 3 https www keil com AN11664 All information provided in this document is subject to legal disclaimers NXP Semiconductors N V 2015 All rights reserved Application note Rev 1 5 June 2015 29 of 32 NXP Semiconductors AN11664 10 Legal information QN9020 Quick Start Guide 10 1 Definitions Draft The document is a draft version only The content is still under internal review and subject to formal approval which may result in modifications or additions NXP Semiconductors does not give any representations or warranties as to the accuracy or completeness of information included herein and shall have no liability for the consequences of use of such information 10 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 n
29. nction source codes are included here The relevant driver files can be added to the project in Keil as shown in Figure 30 All information provided in this document is subject to legal disclaimers NXP Semiconductors N V 2015 All rights reserved Application note Rev 1 5 June 2015 25 of 32 NXP Semiconductors AN1 1 664 QN9020 Quick Start Guide 2 spp proxr task c 89 ki app bass c 20 i8 app bass task c 91 E app diss task c 92 5 app diss c 93 BHi profiles 94 4 ua AN Options for Group drivers A127F7 n sssssQpEsssss Remove Group drivers and its Files Ka Manage Components ivi Show ipciude File Dependencies aaa 018430 Fig 30 Adding a driver file To study how to use the peripheral functions open the dedicated peripheral driver files typically located in C QBlue QBlue x x x Projects Driver Open the required project and directly download to the Mini DK board Modify it according to the specific requirements Organize Include in library Share with New folder X Favorites Name Date modified Desktop gpio uvopt 2015 3 3 14 10 J Downloads gpio uvproj 2015 3 3 14 10 Recent Places aaa 018432 Fig 31 Adding a driver file Double click gpio uvproj and open it using Keil see Figure 32 All information provided in this document is subject to legal disclaimers NXP Semiconductors N V 2015 All rights r
30. o liability for the consequences of use of such information NXP Semiconductors takes no responsibility for the content in this document if provided by an information source outside of NXP Semiconductors In no event shall NXP Semiconductors be liable for any indirect incidental punitive special or consequential damages including without limitation lost profits lost savings business interruption 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 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
31. ote information 3 Commecton Interval Min 100 5 3 Comecon interval Max 200 Verson 5 Latency O 3 Superemien Timeout 100 a iun cinia t Features on Peramaters Chenge Rand ete E gt CHOLCAP CHANGE PARAM RIG Comecon ande 000000 5 Reswit accegt Lirejecti 0 p 5 teca Memum 100 hi Merval Maram 200 aaa 018427 5 4 Function operation Various interactions between Mini DK board and BLE Dongle can be performed when connected 5 4 1 Find me Steps to simulate to find the Mini DK board 5 4 1 1 Step 1 Click Client tab and PROXM tab in Settings area see Figure 29 ELEM Re Dew Help Devens asarni Name Adae Type State Ro Aumenncanins fagyebos Vernon tasa CA few AST am ANODE RE Aue Coweced Matter APOR TIRES 41640 gm wec AX nmi ar OL JR C AE L pase ERE ex OAD Quri Riin Abi Comexted Sae Unete I mene Santer 87 cbebo0002 Put Adetisex Undefined Daabie Trate w C 2 X DEK be00060 Quar PRR Aute Advertang Undefined Dsatie Doa E O87 cbebot0 a Advertung Uncetined Dsabie Dute Loi kan Service OSJcbeaD a Twacenetwl Atse Adwerteng Unaetewd Deabie Dawa Met unt 7 a E v Caiena a BMOLSHO FO Random Adwrtsng Untetned Dsabie Date als Lact Sues rn Pa aan 40 Ads e Revs TESS Li Tis Qt I T aaa 018426 Fig 29 PROXM app discovered 5 4 1 2 Step 2 To make discovered services editable click the Enable button AN11664 All information provided in this
32. ow to download the latest version eeu MDK ARM v5 9 MDK ARM v4 Version 5 14 February 2015 Version 4 74 Apri 2014 Development environment for Cortex and ARM devices b d Development environment for Cort NA C51 C166 Version 9 53 August 2014 Version 7 54 August 2014 b d Development tools for all 8051 devices Development tools for C166 XC1 aaa 018402 Fig 3 Download Keil MDK ARM 3 2 2 QBlue x x x setup exe Install released SDK package QBlue x x x setup exe AN11664 All information provided in this document is subject to legal disclaimers NXP Semiconductors N V 2015 All rights reserved Application note Rev 1 5 June 2015 5 of 32 NXP Semiconductors AN1 1 664 QN9020 Quick Start Guide 3 2 3 JLink software Download and install Setup JLink Vxxx exe Version 4 6 6 or newer is recommended from www segger com based on the development environment see Figure 4 All Mini DK boards have their individual Segger ID serial number labeled at the back Home RTOS and Middleware Debug Probes J Link and J Trace Link Debug Probes SEGGER Links are the most widely used line o of debug pr votes available saki f han 0 3 MBytes s download speed to RAM and r ee A flashicaders as well as the ability to set an TMO ze your debugging and flash pr Hunk debug probes support all ARM 7 9 1 Renesas RX CPUS and are supported by a major Kg su Renesas e2stuco 1g
33. p 1 Click QBlueNVDSConfigurator button on QBlue start page to get NVDS configurator started see Figure 19 Q QBluestudio S QBluelSPStudio P n Wos QBlueNVDSConfiguratoi S upport QBlueDriverTool p a D KA Homepage e ContactUs Documents a Software Doc aaa 018418 Fig 19 Start NVDS configurator All information provided in this document is subject to legal disclaimers NXP Semiconductors N V 2015 All rights reserved Application note Rev 1 5 June 2015 17 of 32 NXP Semiconductors AN1 1 664 5 2 1 2 QN9020 Quick Start Guide Step 2 Choose the corresponding UART COM port and click connect button on the Connect dialog see Figure 20 Blue NVDS Configurator ci X File Operate Help Tag ID Label Data Type Value Bautrate 115200 X Reset Tag Reset All Burn aaa 01841S Fig 20 Set connection in NVDS AN11664 All information provided in this document is subject to legal disclaimers NXP Semiconductors N V 2015 All rights reserved Application note Rev 1 5 June 2015 18 of 32 NXP Semiconductors AN1 1 664 QN9020 Quick Start Guide 5 2 1 3 Step 3 AN11664 Press RESET button on the Mini DK board and then release it to connect the board see Figure 14 Once connected it shows configurable items see Figure 21 Bue NVDS Configurator Ca o baak MAKM rc File Operate Help
34. s a GUI see Figure 11 referred to as QBlueStudio The GUI has links to various tools BLE example codes driver codes and detailed software hardware guides SDK folder structure Once installed a folder is created in the main directory The installation folder contains various subfolders as shown in Figure 10 Computer AWS System C gt QBlue gt QBlue 1 3 6 gt Organize Open New folder Favorites Name Date modified W Desktop J BinFiles 2015 3 16 9 37 J Downloads J Documents 2015 3 16 9 37 sb Recent Places Driver 2015 3 16 9 37 L Projects 2015 3 16 9 37 73 Libraries Tools 2015 3 16 9 37 lt 5 Documents Q Blue v1 01 exe 2014 7 16 9 30 a Music README txt 2015 3 3 14 35 J Pictures A Videos aaa 018409 Fig 10 Qblue installation folder All information provided in this document is subject to legal disclaimers NXP Semiconductors N V 2015 All rights reserved Application note Rev 1 5 June 2015 10 of 32 NXP Semiconductors AN11 664 4 1 1 4 2 AN11664 QN9020 Quick Start Guide BinFiles This folder contains all binary files for sample applications provided in SDK Documents Documents related to QN9020 SDK are found here Projects This folder contains source code and project file in Keil and IAR for various BLE example applications Tools This folder contains all tools with GUI in SDK to support application development Software components QBlue
35. t items 000 0 19 12 Figures Table 2 Abbreviations 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 Fig 21 Fig 22 Fig 23 Fig 24 Fig 25 Fig 26 Fig 27 Fig 28 Fig 29 Fig 30 Fig 31 Fig 32 AN11664 Hardware components of DK 4 System model cee eee eee 5 Download Keil MDK ARM 5 Location for JLink software 6 Driver location for BLE dongle 7 COM port of BLE dongle and JLink OB 8 Wireless SoC mode eee eee 9 Network processor mode 9 Easy ACI interface 2 0005 10 Qblue installation folder 10 QBlue start page 0 0a 11 Setting ISP studio a 13 Proximity bin file llle 14 RESET button oe sois i IR RS 14 Download successful 0 0000 15 Failure message 0 e ee eee 15 Falllrenote i esi seats achat KAARAWAN m 16 Failure note 0002 ccc eee eee 16 Start NVDS configurator 17 Set connection in NVDS 5 18 NVDS configurator main window 19 Change device name 20005 20 Burn configuration 0 eee eee 21 BUTTONI E RbehkRRU REP hai cde 22 Connection setting in QTool 22
36. tep 5 Click the Start button and then press the RESET button on the board see Figure 14 The bin file is downloaded to board automatically once the RESET button is released If the download is successful a message pops up see Figure 15 aaa 018413 Fig 14 RESET button AN11664 All information provided in this document is subject to legal disclaimers NXP Semiconductors N V 2015 All rights reserved Application note Rev 1 5 June 2015 14 of 32 NXP Semiconductors AN1 1 664 5 1 2 AN11664 QN9020 Quick Start Guide Fig 15 Download successful If the bin file download fails a message pops up see Figure 16 If this occurs perform the following 1 Check the USB connection and whether LED1 and LED2 are ON 2 Whenever the Start button is used to download files press the RESET button on the Mini DK board to switch the board into boot mode and then release it 3 Make sure that the COM port setting is correct on the system The setting can be found in device manager see Figure 6 QBlueISP Studiovi26 ES Connection is timed out Tips After press the Start button please reset the target to establish a connection aaa 018415 Fig 16 Failure message For more information about the QBluelSPStudio tool refer to the QBlue ISP Studio Manual Download file in Keil Keil can also be used to download the compiled bin f

Download Pdf Manuals

image

Related Search

Related Contents

Philips MAS85 User's Manual  JVC DR-MH20B User's Manual  1 - Pentax  取扱説明書 基本編 - psn  [ 富士ドライケムNX500iV ] ≫PDF  ayout 1    取扱説明書(pdf)  Do not use this appliance near water. ‡ When the  

Copyright © All rights reserved.
Failed to retrieve file