Cypress Semiconductor CY5676A Bluetooth Device User Manual 1

Cypress Semiconductor Bluetooth Device 1

Contents

User manual1

CY8CKIT-042-BLE-ABluetooth® Low Energy (BLE)Pioneer Kit GuideDoc. # 002-11468 Rev. *ACypress Semiconductor198 Champion CourtSan Jose, CA 95134-1709Phone (USA): 800.858.1810Phone (Intnl): +1.408.943.2600www.cypress.com
CopyrightsCY8CKIT-042-BLE-A Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 002-11468 Rev. *A 2Copyrights© Cypress Semiconductor Corporation, 2016. This document is the property of Cypress Semiconductor Corporation and itssubsidiaries, including Spansion LLC ("Cypress"). This document, including any software or firmware included or referencedin this document ("Software"), is owned by Cypress under the intellectual property laws and treaties of the United States andother  countries  worldwide.  Cypress  reserves  all  rights  under  such  laws  and  treaties  and  does  not,  except  as  specificallystated in this paragraph, grant any license under its patents, copyrights, trademarks, or other intellectual property rights. If theSoftware  is  not  accompanied  by  a  license  agreement  and you  do  not  otherwise  have  a  written  agreement  with  Cypressgoverning the use of the Software, then Cypress hereby grants you under its copyright rights in the Software, a personal, non-exclusive, nontransferable license (without the right to sublicense) (a) for Software provided in source code form, to modifyand reproduce the Software solely for use with Cypress hardware products, only internally within your organization, and (b) todistribute  the  Software  in  binary  code  form  externally  to  end  users  (either  directly  or  indirectly  through  resellers  anddistributors),  solely  for  use  on  Cypress  hardware  product  units.  Cypress  also  grants  you  a  personal,  non-exclusive,nontransferable, license (without the right to sublicense) under those claims  of Cypress's  patents that are infringed by theSoftware (as provided by Cypress, unmodified) to make, use, distribute, and import the Software solely to the minimum extentthat is necessary for you to exercise your rights under the copyright license granted in the previous sentence. Any other use,reproduction, modification, translation, or compilation of the Software is prohibited.CYPRESS MAKES NO WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, WITH REGARD TO THIS DOCUMENT ORANY  SOFTWARE,  INCLUDING,  BUT  NOT  LIMITED  TO,  THE  IMPLIED  WARRANTIES  OF  MERCHANTABILITY  ANDFITNESS  FOR A  PARTICULAR PURPOSE. Cypress reserves the  right to make changes to this  document without furthernotice. Cypress does not assume any liability arising out of the application or use of any product or circuit described in thisdocument.  Any  information  provided  in  this  document,  including  any  sample  design  information  or  programming  code,  isprovided only for reference purposes. It is the responsibility of the user of this document to properly design, program, and testthe functionality and safety of any application made of this information and any resulting product. Cypress products are notdesigned,  intended,  or  authorized  for  use  as  critical  components  in  systems  designed  or  intended  for  the  operation  ofweapons,  weapons  systems,  nuclear  installations,  life-support  devices  or  systems,  other  medical  devices  or  systems(including resuscitation equipment and surgical implants), pollution control or hazardous substances management, or otheruses where the failure of the device or system could cause personal injury, death, or property damage ("Unintended Uses"). Acritical component is any component of a device or system whose failure to perform can be reasonably expected to cause thefailure of the device or system, or to affect its safety or effectiveness. Cypress is not liable, in whole or in part, and Companyshall and hereby  does release Cypress from any claim, damage, or other  liability arising  from  or related  to  all UnintendedUses of Cypress products. Company shall indemnify and hold Cypress harmless from and against all claims, costs, damages,and other liabilities, including claims for personal injury or death, arising from or related to any Unintended Uses of Cypressproducts.Cypress, the Cypress logo, Spansion, the Spansion logo, and combinations thereof, PSoC, CapSense, EZ-USB, F-RAM, andTraveo are trademarks or registered trademarks of Cypress in the United States and other countries. For a more complete listof Cypress trademarks, visit cypress.com. Other names and brands may be claimed as property of their respective owners.CySmart,  F-RAM,  PRoC,  Programmable  System-on-Chip,  and  PSoC  Creator  are  trademarks  of  Cypress  SemiconductorCorporation.
CY8CKIT-042-BLE-A Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 002-11468 Rev. *A 3ContentsSafety Information  61. Introduction 101.1 Kit Contents ...............................................................................................................1 11.2 BLE Pioneer Baseboard Details ................................................................................121.3 PSoC Creator ............................................................................................................141.3.1 PSoC Creator Code Examples ......................................................................151.3.2 Kit Code Examples.........................................................................................161.3.3 PSoC Creator Help ........................................................................................161.3.4 Component Datasheets .................................................................................171.4 Getting Started...........................................................................................................171.5 Additional Learning Resources..................................................................................171.5.1 Bluetooth Learning Resources.......................................................................181.5.2 Other Related Resources...............................................................................181.6 Technical Support......................................................................................................191.7 Documentation Conventions......................................................................................191.8 Acronyms...................................................................................................................1 92. Software Installation 212.1 Before You Begin.......................................................................................................212.2 Install Software ..........................................................................................................212.3 Windows 8.1 and Windows 10 USB Selective Suspend Setting ...............................243. Kit Operation 253.1 Theory of Operation...................................................................................................253.2 KitProg ..................................................................................................................... ..273.3 BLE Pioneer Kit USB Connection..............................................................................273.4 Placing Modules on Baseboard .................................................................................283.5 Programming and Debugging BLE Device ................................................................293.5.1 Programming using PSoC Creator.................................................................293.5.2 Debugging using PSoC Creator.....................................................................303.5.3 Programming using PSoC Programmer.........................................................303.6 Updating BLE Dongle for CySmart Central Emulation Tool ......................................323.7 USB-UART Bridge .....................................................................................................343.8 USB-I2C Bridge .........................................................................................................353.9 Updating the KitProg Firmware..................................................................................364. Example Projects 374.1 Using Example Projects.............................................................................................374.2 CapSense Slider and LED.........................................................................................414.2.1 Project Description .........................................................................................414.2.2 Hardware Connections...................................................................................44
CY8CKIT-042-BLE-A Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 002-11468 Rev. *A 4Contents4.2.3 Flow Chart......................................................................................................454.2.4 Verify Output ..................................................................................................464.3 CapSense Proximity ..................................................................................................544.3.1 Project Description .........................................................................................544.3.2 Hardware Connections...................................................................................574.3.3 Flow Chart......................................................................................................594.3.4 Verify Output ..................................................................................................604.4 BLE Central Mode .....................................................................................................654.4.1 Project Description .........................................................................................654.4.2 Hardware Connections...................................................................................684.4.3 Flow Chart......................................................................................................694.4.4 Verify Output ..................................................................................................704.5 Eddystone..................................................................................................................7 34.5.1 Project Description .........................................................................................734.5.2 Hardware Connection ....................................................................................764.5.3 Flow Chart......................................................................................................774.5.4 Verify Output ..................................................................................................774.6 BLE Dongle and LED Control ....................................................................................824.6.1 Project Description .........................................................................................824.6.2 Hardware Connections...................................................................................834.6.3 Flow Chart......................................................................................................844.6.4 Verify Output ..................................................................................................854.7 Direct Test Mode (DTM) ............................................................................................854.7.1 Project Description .........................................................................................854.7.2 Hardware Connection ....................................................................................874.7.3 Verify Output ..................................................................................................885. Hardware 895.1 BLE Pioneer Baseboard ............................................................................................895.1.1 PSoC 5LP ......................................................................................................895.1.2 Power System ................................................................................................895.1.3 Programming Interface...................................................................................965.1.4 Expansion Connectors ...................................................................................965.1.5 USB Mini-B Connector ...................................................................................995.1.6 CapSense Circuit .........................................................................................1005.1.7 BLE Pioneer Baseboard LEDs.....................................................................1015.1.8 Push-Buttons................................................................................................1035.1.9 Cypress Ferroelectric RAM (F-RAM) ...........................................................1045.1.10 Serial Interconnection between KitProg and Module ...................................1055.1.11 Module Headers...........................................................................................1065.2 Module Board ..........................................................................................................1075.2.1 PSoC 4 BLE or PRoC BLE Device ..............................................................1075.2.2 Module Power Connections .........................................................................1085.2.3 Module Headers (20-Pin and 24-Pin Headers) ............................................1085.2.4 Wiggle Antenna............................................................................................1105.2.5 Antenna Matching Network .......................................................................... 1115.2.6 BLE Passives ...............................................................................................1125.2.7 Test Points....................................................................................................1135.3 BLE Dongle Board ...................................................................................................1135.3.1 Power System ..............................................................................................1145.3.2 USB Type-A Plug .........................................................................................1145.3.3 User LED......................................................................................................115
CY8CKIT-042-BLE-A Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 002-11468 Rev. *A 5Contents6. Advanced Topics 1166.1 Using FM24V10 F-RAM...........................................................................................1166.1.1 Address Selection ........................................................................................1166.1.2 Write/Read Operation ..................................................................................117A. Appendix 118A.1 Bill of Materials (BOM).............................................................................................118A.2 KitProg Status LED States.......................................................................................127A.3 Adding BLE Module-Compatible Headers on Your Baseboard ...............................128A.4 Programming BLE Modules via MiniProg3 ..............................................................129A.5 BLE Modules and BLE Dongles Compatible with the BLE Pioneer Kit ...................130A.6 Migrating Projects Across Different Pioneer Series Kits..........................................136Revision History  142
CY8CKIT-042-BLE-A Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 002-11468 Rev. *A 6Safety InformationThe  CY8CKIT-042-BLE-A  Bluetooth®  Low  Energy  (BLE)  Pioneer  Kit  is  intended  for  developmentpurposes only. Users are advised to test and evaluate this kit in an RF development environment.This  kit  is  not  a  finished  product  and  when  assembled  may  not  be  resold  or  otherwise  marketedunless all required authorizations are first obtained. Contact support@cypress.com for details.General Safety InstructionsESD ProtectionESD can damage boards and associated components. Cypress recommends that the user performprocedures only at an ESD workstation. If an ESD workstation is not available, use appropriate ESDprotection by wearing an antistatic wrist strap attached to the chassis ground (any unpainted metalsurface) on the board when handling parts.Handling BoardsCY8CKIT-042-BLE-A boards are sensitive to ESD. Hold the board only by its edges. After removingthe  board  from  its  box,  place  it  on  a  grounded, static-free  surface.  Use  a  conductive  foam  pad  ifavailable. Do not slide the board over any surface.CY8CKIT-042-BLE-A  boards  contain  ESD-sensitive  devices.Electrostatic charges readily accumulate on the human body and anyequipment, and can discharge without detection. Permanent damagemay  occur  on  devices  subjected  to  high-energy  discharges.  ProperESD precautions are recommended to avoid performance degradationor  loss  of  functionality.  Store  unused  CY8CKIT-042-BLE-A  boards  inthe protective shipping package.End-of-Life/Product RecyclingThe  end-of-life  cycle  for  this  kit  is  five  years  from  the  date  ofmanufacture mentioned on the back of the box. Contact your nearestrecycler to discard the kit.
CY8CKIT-042-BLE-A Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 002-11468 Rev. *A 7Battery Care and UseUse the correct size and type of battery specified in this guide. Keep battery contact surfaces and battery compartment contacts clean by rubbing them with a clean pencil eraser or a rough cloth each time you replace batteries. Remove the battery from a device when it is not expected to be in use for several months. Make sure that you insert the battery into your device properly, with the + (plus) and – (minus) terminals aligned correctly. Do not place the battery next to metallic objects such as keys and coins.Never throw the battery into fire.Do not open up the battery.Do not short the battery.Do not subject the battery to high temperatures or high humidity.Store the battery in a dry place.Do not recharge a battery unless it is marked “rechargeable.”Battery DisposalBatteries  can  be  safely  disposed  with  normal  household  waste.  Never  dispose  batteries  in  firebecause they can explode. It is important not to dispose large amounts of batteries in a group. Usedbatteries  are  often  not  completely  “dead.” Grouping used batteries  together can  bring  these  “live”batteries into contact with one another, creating safety risks.
                                       Uncontrolled environment.
CY8CKIT-042-BLE-A Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 002-11468 Rev. *A 101. IntroductionThank you for your interest in the CY8CKIT-042-BLE-A Bluetooth® Low Energy (BLE) Pioneer Kit.The BLE Pioneer Kit enables customers to evaluate and develop BLE projects using the PSoC® 4BLE and PRoC™ BLE (Programmable Radio-on-Chip) devices. Bluetooth  SMART™  or  Bluetooth  Low  Energy  (BLE)  is  a  full-featured,  layered,  communicationprotocol that includes a 2.4-GHz radio, a link layer, and an application layer. However, you do notneed to understand the complex protocol to implement your projects using PSoC 4 BLE or PRoCBLE.  The  Cypress  BLE  solution,  which  includes  the  device,  the  BLE  Component,  and  the  BLEfirmware stack will take care of it for you. The Cypress BLE firmware stack is royalty free.You will use two software tools, PSoC Creator™ and CySmart™ Central Emulation Tool, to developand  debug  your  BLE  project.  PSoC  Creator  is  Cypress’  standard  integrated  design  environment(IDE). The BLE protocol has been abstracted into an easy drag-and-drop BLE Component in PSoCCreator.  The  CySmart Central  Emulation  Tool  is a host tool  for Windows  PCs,  which  provides  aneasy-to-use GUI to enable customers to test and debug their BLE projects. The BLE Pioneer Kit offers footprint-compatibility with Arduino™ shields as well as 6-pin Digilent®Pmod™  daughter  cards.  In  addition,  the  kit  features  a  CapSense® slider,  an  RGB  LED,  a  push-button switch, an onboard programmer/debugger and the USB-UART/I2C bridge functionality block(KitProg), a coin cell battery holder, and a Cypress F-RAM™. The BLE Pioneer Kit supports 1.9 V,3 V, 3.3 V, or 5 V as operating voltages. The BLE Pioneer Kit supports two devices: PSoC 4 BLE is a 32-bit, 48-MHz ARM® Cortex®-M0 BLE solution with CapSense, 12-bit analog front end (1x SAR ADC, 4x low-power opamps, 2x low-power comparators, and 2x current DACs), 4x TCPWM1, 2x SCBs2, 4x UDBs3, LCD4, I2S5, and 36 GPIOs. PSoC 4 BLE provides a complete solution for sports and fitness monitors, wearable electronics, medical devices, home automation systems, and sensor-based low-power systems for the Internet of Things (IoT). PRoC BLE is a 32-bit, 48-MHz ARM Cortex-M0 BLE solution with CapSense, 12-bit ADC, 4x TCPWM1, 2x SCBs2, LCD4, I2S5, and 36 GPIOs. PRoC BLE provides a complete solution for BLE connectivity, HID, remote controls, and toys.Two different  versions  of  the  BLE  Pioneer  Kit are  currently  available.  These  kits  differ in the  BLEmodules  and  the  dongle  that  are  included.  The  baseboard  in  both  kits  are  identical,  so  any  BLEmodule can be used interchangeably with either baseboard. Table 1-1 lists the modules and dongleincluded in each kit.1. Configurable timer, counter, and pulse-width modulator.2. Serial communication blocks (configurable to I2C, SPI, or UART).3. Universal digital blocks4. Configurable liquid crystal display driver.5. Configurable integrated interchip sound serial bus interface.Table 1-1.  Default BLE Modules and BLE Dongle in the Two BLE Pioneer KitsKit PSoC Module PRoC Module Dongle Flash Size Bluetooth VersionCY8CKIT-042-BLE CY8CKIT-142 CY5671 CY5670 128 KB 4.1CY8CKIT-042-BLE-A CY8CKIT-143A CY5676A CY5677 256 KB 4.1 and 4.2
CY8CKIT-042-BLE-A Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 002-11468 Rev. *A 11Introduction1.1 Kit ContentsThe BLE Pioneer Kit contains the following items (see Figure 1-1):BLE Pioneer Baseboard preloaded with the CY8CKIT-143A PSoC 4 BLE 256KB ModuleCY5676A PRoC BLE 256KB ModuleCY5677 CySmart BLE 4.2 USB Dongle (BLE Dongle)Quick start guideUSB Standard-A to Mini-B cableFour jumper wires (4 inch) and two proximity sensor wires (5 inch)Coin cell (3-V CR2032)Figure 1-1.  Kit ContentsIf  any  part  of  the  BLE  Pioneer  Kit  is  missing,  contact  your  nearest  Cypress  sales  office  for  help:www.cypress.com/go/support.
CY8CKIT-042-BLE-A Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 002-11468 Rev. *A 12Introduction1.2 BLE Pioneer Baseboard DetailsThe BLE Pioneer Baseboard consists of the blocks shown in Figure 1-2.1. RGB LED2. BLE device reset button3. CapSense proximity header4. User button5. CapSense slider6. Arduino-compatible I/O headers (J2/J3/J4)7. Arduino-compatible power header (J1)8. Digilent Pmod-compatible I/O header (J5)9. Cypress F-RAM 1 Mb (FM24V10-G)10.PSoC 5LP I/O header (J8)11. PSoC 5LP programmer and debugger (CY8C5868LTI-LP039)12.Coin cell holder (bottom side)13.USB connector (J13)14.Power LED and Status LED15.System power supply jumper (J16) - LDO 1.9 V~5 V16.BLE power supply jumper / current measurement (J15)17.BLE module headers (J10/J11)Figure 1-2.  BLE Pioneer Baseboard
CY8CKIT-042-BLE-A Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 002-11468 Rev. *A 13IntroductionFigure 1-3 shows a markup of the onboard components of the PSoC 4 BLE module (in red) and thePRoC BLE module (in black). See BLE Modules and BLE Dongles Compatible with the BLE PioneerKit on page 130 for more details. Figure 1-4 shows the BLE Dongle board blocks.Figure 1-3.  BLE Module MarkupFigure 1-4.  BLE Dongle Markup32.768-kHzcrystal32.768-kHzcrystal
CY8CKIT-042-BLE-A Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 002-11468 Rev. *A 14Introduction1.3 PSoC CreatorPSoC Creator™ is a state-of-the-art, easy-to-use integrated design environment (IDE). It introducesrevolutionary  hardware  and  software  co-design,  powered  by  a  library  of  pre-verified  and  pre-characterized PSoC Components. With PSoC Creator, you can:1. Drag and drop Components to build your hardware system design in the main design workspace2. Codesign your application firmware with the PSoC hardware3. Configure Components using configuration tools4. Explore the library of 100+ Components5. Review Component datasheetsFigure 1-5.  PSoC Creator FeaturesPSoC Creator also enables you to tap into an entire tool ecosystem with integrated compiler chainsand production programming programmers for PSoC devices.For more information, visit www.cypress.com/psoccreator. Visit PSoC Creator training page for videotutorials on learning and using PSoC Creator.
CY8CKIT-042-BLE-A Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 002-11468 Rev. *A 15Introduction1.3.1 PSoC Creator Code ExamplesPSoC Creator includes a large number of code examples. These examples are available from thePSoC Creator Start Page, as Figure 1-6 shows.Code  examples  can  speed  up  your  design  process  by  starting  you  off  with  a  complete  design,instead  of  a  blank  page.  The  code  examples  also  show  how  PSoC  Creator  Components  can  beused  for  various  applications.  Code  examples  and  documentation  are  included,  as  shown  inFigure 1-7 on page 17.In the Find Example Project dialog shown in Figure 1-7, you have several options:Filter for examples based on architecture or device family, that is, PSoC 3, PSoC 4 or PSoC 5LP; project name; or keyword.Select from the menu of examples offered based on the Filter Options.Review the example project’s description (on the Documentation tab).Review the code from the Sample Code tab. You can copy the code from this window and paste to your project, which can help speed up code development.Create a new project (and a new workspace if needed) based on the selection. This can speed up your design process by starting you off with a complete, basic design. You can then adapt that design to your application.Figure 1-6.  Code Examples in PSoC Creator
CY8CKIT-042-BLE-A Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 002-11468 Rev. *A 16IntroductionFigure 1-7.  Code Example Projects with Sample Code1.3.2 Kit Code ExamplesThis kit includes a number of code examples, which can be used to quickly evaluate the functionalityof this kit. These examples are described in the Example Projects chapter on page 37.If you are a beginner in BLE, refer to the PSoC Creator code examples such as BLE_FindMe andBLE_Device_Information_Service  as  described  in  1.3.1  PSoC  Creator  Code  Examples.  You  mayalso refer the application note Getting Started with PSoC 4 BLE.The four Kit code examples viz CapSense Slider and LED, CapSense Proximity, BLE Central Modeand Eddystone are intermediatory level examples that will help to design a system around the kit.Refer to the 4.2 CapSense Slider and LED and later for details.The CySmart Dongle code example is an advanced level example that will demonstrate a completesolution around the kit. Refer to 4.6 BLE Dongle and LED Control for details.1.3.3 PSoC Creator HelpVisit the  PSoC Creator home page to download the latest version of PSoC Creator. Then, launchPSoC Creator and navigate to the following items:Quick Start Guide: Choose Help > Documentation > Quick Start Guide. This guide gives you the basics for developing PSoC Creator projects.Simple Component example projects: Choose File > Code Example. These example projects demonstrate how to configure and use PSoC Creator Components.System Reference Guide: Choose Help > System Reference Guide. This guide lists and describes the system functions provided by PSoC Creator.
CY8CKIT-042-BLE-A Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 002-11468 Rev. *A 17IntroductionComponent datasheets: Right-click a Component and select Open Datasheet, as shown in Figure 1-8 on page 18. Visit the PSoC 4 Component Datasheets page for a list of all PSoC 4 Component datasheets.Document Manager: PSoC Creator provides a document manager to help you to easily find and review document resources. To open the document manager, choose the menu item Help > Document Manager.1.3.4 Component DatasheetsRight-click a Component and select Open Datasheet (see Figure 1-8 on page 18).Figure 1-8.  Opening Component Datasheet1.4 Getting StartedThis guide will help you get acquainted with the BLE Pioneer Kit:The Software Installation chapter on page 21 describes the installation of the kit software. This includes the PSoC Creator IDE for development and debugging applications, PSoC Programmer for programming hex files, and the CySmart Central Emulation Tool for BLE Central emulation.The Kit Operation chapter on page 25 describes the major features of the BLE Pioneer Kit such as USB-UART and USB-I2C bridges and functionalities such as programming and debugging.The Example Projects chapter on page 37 describes multiple PSoC 4 BLE and PRoC BLE code examples that will help you understand how to create your own BLE application using the BLE Component and device.The Hardware chapter on page 89 details the hardware content of the BLE Pioneer Kit and BLE Dongle, and the hardware operation.The Advanced Topics chapter on page 116 explains the functionality of FM24V10 F-RAM.The Appendix on page 118 provides the bill of materials (BOM), KitProg LED states, list of BLE modules and dongles compatible with the BLE Pioneer Kit, migrating projects across Pioneer series kits, and programming BLE modules using MiniProg3.1.5 Additional Learning ResourcesCypress provides a wealth of information at www.cypress.com to help you to select the right PSoCdevice  for  your  design,  and  to  help  you  to  quickly  and  effectively  integrate  the  device  into  yourdesign. For a comprehensive list of resources, see KBA86521, How to Design with PSoC 3, PSoC 4,and PSoC 5LP. Visit www.cypress.com/go/psoc4ble and www.cypress.com/procble for additional learning resourcesincluding datasheets, technical reference manuals, and application notes.The following is an abbre-viated list:Overview: PSoC 4 BLE Portfolio and PSoC RoadmapProduct Selectors: PSoC 1, PSoC 3, PSoC 4, or PSoC 5LP. In addition, PSoC Creator includes a device selection tool.
CY8CKIT-042-BLE-A Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 002-11468 Rev. *A 18IntroductionDatasheets: Describe and provide electrical specifications for the PSoC 4 device familyCapSense Design Guide: Learn how to design capacitive touch-sensing applications with the PSoC 4 family of devices.Application Notes and Code Examples: Cover a broad range of topics, from basic to advanced level. Many of the application notes include code examples. Visit the PSoC 3/4/5 Code Examples webpage for a list of all available PSoC Creator code examples. To access code examples from within PSoC Creator, see PSoC Creator Code Examples on page 16.Technical Reference Manuals (TRM): Provide detailed descriptions of the architecture and registers in each PSoC 4 device family.Development Kits:CY8CKIT-040, CY8CKIT-042, and CY8CKIT-044 are easy-to-use and inexpensive develop-ment platforms. These kits include connectors for Arduino-compatible shields and Digilent Pmod peripheral modules.CY8CKIT-141, CY8CKIT-142, CY8CKIT-143, CY5671, CY5674, and CY5676 are additional BLE Modules compatible with the BLE Pioneer Kit.CY5670 is additional BLE Dongle compatible with the BLE Pioneer Kit.CY8CKIT-049 is a very low-cost prototyping platform for PSoC 4100/4200 families.The MiniProg3 kit provides an interface for flash programming and debug.CY5672 PRoC BLE Remote Control Reference Design Kit provides a production-ready imple-mentation of a Bluetooth Low Energy remote control.CY5682 PRoC BLE Touch Mouse Reference Design Kit provides a production-ready imple-mentation of a Bluetooth Low Energy touch mouse.Knowledge Base Articles (KBA): Provide design and application tips from experts on using the device.PSoC Creator Training: Visit www.cypress.com/go/creatorstart/creatortraining for a comprehensive list of video trainings on PSoC Creator.Cysmart Central Emulation Tool: Visit www.cypress.com/go/cysmart for information on the CySmart Central Emulation Tool.Learning From Peers: Visit www.cypress.com/forums to meet enthusiastic PSoC developers discussing the next generation embedded systems on Cypress Developer Community Forums.1.5.1 Bluetooth Learning ResourcesThe  Bluetooth Developer Portal provides material by the Special Interest Group (SIG) for learningvarious aspects of the Bluetooth Low Energy protocol and systems. Some of them are:Training videosGATT profilesBluetooth community forum1.5.2 Other Related ResourcesDigilent Pmod: www.digilentinc.com/pmods/Arduino: http://arduino.cc/en/Main/ArduinoBoardUno
CY8CKIT-042-BLE-A Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 002-11468 Rev. *A 19Introduction1.6 Technical SupportIf  you  have  any  questions,  our  technical  support  team  is  happy  to  assist you.  You  can  create  asupport request on the Cypress Technical Support page.If  you  are in the  United  States,  you  can  talk to our  technical  support  team  by  calling  our  toll-freenumber: +1-800-541-4736. Select option 2 at the prompt.You can also use the following support resources if you need quick assistance.Self-help.Local Sales Office Locations.1.7 Documentation Conventions1.8 AcronymsTable 1-2.  Document Conventions for GuidesConvention UsageCourier New Displays file locations, user entered text, and source code:C:\...cd\icc\Italics Displays file names and reference documentation:Read about the sourcefile.hex file in the PSoC Creator User Guide.[Bracketed, Bold]Displays keyboard commands in procedures:[Enter] or [Ctrl] [C]File > Open Represents menu paths:File > Open > New ProjectBold Displays commands, menu paths, and icon names in procedures:Click the File icon and then click Open.Times New Roman Displays an equation:2 + 2 = 4Text in gray boxes Describes cautions or unique functionality of the product.Table 1-3.  Acronyms Used in this DocumentAcronym DefinitionADC analog-to-digital converterAPI application programming interfaceBD address Bluetooth device addressBLE Bluetooth Low EnergyCDC Communications Device ClassCOM communication portDLE data length extensionECDH Elliptic Curve Diffie-HellmanDVD digital video discESD electrostatic dischargeF-RAM ferroelectric random access memoryGATT generic attribute profile
CY8CKIT-042-BLE-A Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 002-11468 Rev. *A 20IntroductionGUI graphical user interface GPIO general-purpose input/outputI2Cinter-integrated circuitIAS immediate alert serviceIDAC current output digital-to-analog converterIDE integrated development environmentLDO low drop out (voltage regulator)LE low energyLED light-emitting diodeLP low powerLPT line print terminalMTU maximum transmission unitOTA over-the-airPHY physical layerPrISM Precise Illumination Signal ModulationPRoC Programmable Radio-on-ChipPSM protocol service multiplexerPSoC Programmable System-on-ChipPWM pulse width modulation QFN quad flat no-lead (package)RDK reference design kitRGB red green blueSAR successive approximation registerSIG special interest groupSMA SubMiniature version ASPI serial peripheral interface SWD serial wire debugTLM telemetryUART universal asynchronous receiver transmitterUID universal identifierURI uniform resource identifierURL uniform resource locatorUSB Universal Serial BusUUID universal unique identifierTable 1-3.  Acronyms Used in this DocumentAcronym Definition
CY8CKIT-042-BLE-A Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 002-11468 Rev. *A 21Introduction
CY8CKIT-042-BLE-A Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 002-11468 Rev. *A 212. Software InstallationThis chapter describes the steps to install the software tools and packages on a computer for usingthe BLE Pioneer Kit. This includes the IDE in which the projects will be built and used for program-ming.2.1 Before You BeginAll  Cypress  software  installations  require  administrator  privileges.  Ensure  you  have  the  requiredprivileges  on  the  system  for  successful  installation.  Before  you install  the  kit  software,  close  anyother Cypress software that is currently running.2.2 Install SoftwareFollow these steps to install the BLE Pioneer Kit software:1. Download  the  kit  software  from  www.cypress.com/CY8CKIT-042-BLE-A.  The  software  isavailable in the following formats:a. CY8CKIT-042-BLE-A Kit Complete Setup: This installation package contains the files relatedto the BLE Pioneer Kit. However, it does not include the Windows Installer or Microsoft .NETframework packages. If these packages are not on your computer, the installer directs you todownload and install them from the Internet.b. CY8CKIT-042-BLE-A Kit Only Package: This executable file installs only the BLE Pioneer Kitcontents, which  include code examples, hardware files, and user documents. This packagecan be used if all the software prerequisites (listed in step 5) are installed on your computer.c. CY8CKIT-042-BLE-A DVD ISO: This file is a complete package, stored in a DVD-ROM imageformat, that you can use to create a DVD or extract using an ISO extraction program such asWinZip  or  WinRAR. The file  can  also  be  mounted similar to  a virtual  CD/DVD  using  virtualdrive programs such as ‘Virtual CloneDrive’ and ‘MagicISO’. This file includes all the requiredsoftware, utilities, drivers, hardware files, and user documents.2. If you have downloaded the ISO file, mount it on a virtual drive; if you do not have a virtual driveto  mount,  extract  the  ISO  contents  using  the  appropriate  ISO  extractor  (such  as  MagicISO  orPowerISO). Double-click cyautorun.exe in the root directory of the extracted content or mountedISO  if  “Autorun  from  CD/DVD”  is  not  enabled  on  the  computer.  The  installation  window  willappear automatically. Note: If you are using the “Kit Complete Setup” or “Kit Only Package” file, then go to step 4 for installation.
CY8CKIT-042-BLE-A Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 002-11468 Rev. *A 22Software Installation3. Click Install CY8CKIT-042-BLE-A Kit to start the installation, as shown in Figure 2-1.Figure 2-1.  Installer Screen4. Select the folder in which you want to install the CY8CKIT-042-BLE-A kit-related files. Choose thedirectory and click Next.5. When  you  click  Next,  the  CY8CKIT-042-BLE-A  Kit  installer automatically  installs  the  requiredsoftware, if it is not present on your computer. The following software packages are required: Note: For the Kit Only Package, download and install the following prerequisites.a. PSoC Creator 3.3 or later: Download the latest version from www.cypress.com/psoccreator.b. PSoC  Programmer  3.24  or  later:  This  is  installed  as  part  of  PSoC  Creator  installation(www.cypress.com/programmer).c. CySmart 1.2 or later: Download the latest version from www.cypress.com/cysmart.
CY8CKIT-042-BLE-A Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 002-11468 Rev. *A 23Software Installation6. Choose  the  Typical/Custom/Complete  installation  type  in  the  Product  Installation  Overviewwindow, as shown in Figure 2-2. Click Next after you select the installation type.Figure 2-2.  Product Installation Overview7. Read  the  license  agreement  and  select  I  accept  the  terms  in  the  license  agreement  tocontinue with installation. Click Next.8. When the installation begins, a list of packages appears on the installation page. A green checkmark appears next to each package after successful installation.9. Click Finish to complete the CY8CKIT-042-BLE-A kit installation.10.Enter your contact information or select the Continue Without Contact Information check box.Click Finish to complete the CY8CKIT-042-BLE-A kit installation.11. After the installation is complete, the kit contents are available at the following location:<Install_Directory>\CY8CKIT-042-BLE-A KitDefault location:Windows 7 (64-bit): C:\Program Files (x86)\Cypress\CY8CKIT-042-BLE-A KitWindows 7 (32-bit): C:\Program Files\Cypress\CY8CKIT-042-BLE-A KitNote: For Windows 7/8/8.1 users, the installed files and the folder are read only. To use the installerexample projects, follow the steps outlined in the Example Projects chapter on page 37.The  BLE Pioneer  Kit  installer  also installs  the CySmart Central  Emulation  Tool on your computer.This software, along with the BLE Dongle, allows the computer to emulate as a BLE Central device.
CY8CKIT-042-BLE-A Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 002-11468 Rev. *A 24Software Installation2.3 Windows 8.1 and Windows 10  USB Selective Suspend SettingThe Windows 8.1 and Windows 10 operating sy stems issue a suspend command to a connectedUSB device if there is no activity on its USB bus. This may happen to the BLE Pioneer Kit/BLE Don-gle if the driver installation is not complete or the driver is not found. In this situation, as a responseto the suspend command from the operating system, the KitProg will shut down the onboard LDO toremain  within the  USB  suspend  current  requirement.  Due to  this,  the  BLE Pioneer  Kit  will  not  bepowered and will not be functional.To prevent this, do either of the following:Install the kit software on the Windows 8.1 or Windows 10 operating system before using the BLE Pioneer Kit.Disable the USB selective suspend setting for the BLE Pioneer Kit from Power Options on Win-dows 8.1, by following these steps:a. From Control Panel, go to Power Options.b. Click Change Plan Settings corresponding to your power plan.c. Click Change Advanced Power Settings.d. Under Advanced settings, expand USB Settings > USB selective suspend setting.e. Select the Disabled option for Plugged in and On battery operation.f. Click OK.

Navigation menu