Escolar Documentos
Profissional Documentos
Cultura Documentos
Cypress Semiconductor
198 Champion Court
San Jose, CA 95134-1709
Phone (USA): 800.858.1810
Phone (Intnl): +1.408.943.2600
www.cypress.com
Copyrights
Copyrights
© Cypress Semiconductor Corporation, 2014-2018. This document is the property of Cypress Semiconductor Corporation
and its subsidiaries, including Spansion LLC (“Cypress”). This document, including any software or firmware included or
referenced in this document (“Software”), is owned by Cypress under the intellectual property laws and treaties of the United
States and other countries worldwide. Cypress reserves all rights under such laws and treaties and does not, except as
specifically stated in this paragraph, grant any license under its patents, copyrights, trademarks, or other intellectual property
rights. If the Software is not accompanied by a license agreement and you do not otherwise have a written agreement with
Cypress governing the use of the Software, then Cypress hereby grants you a personal, non-exclusive, nontransferable
license (without the right to sublicense) (1) under its copyright rights in the Software (a) for Software provided in source code
form, to modify and reproduce the Software solely for use with Cypress hardware products, only internally within your
organization, and (b) to distribute the Software in binary code form externally to end users (either directly or indirectly through
resellers and distributors), solely for use on Cypress hardware product units, and (2) under those claims of Cypress’s patents
that are infringed by the Software (as provided by Cypress, unmodified) to make, use, distribute, and import the Software
solely for use with Cypress hardware products. Any other use, reproduction, modification, translation, or compilation of the
Software is prohibited.
TO THE EXTENT PERMITTED BY APPLICABLE LAW, CYPRESS MAKES NO WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, WITH REGARD TO THIS DOCUMENT OR ANY SOFTWARE OR ACCOMPANYING HARDWARE, INCLUDING,
BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
PURPOSE. No computing device can be absolutely secure. Therefore, despite security measures implemented in Cypress
hardware or software products, Cypress does not assume any liability arising out of any security breach, such as
unauthorized access to or use of a Cypress product. In addition, the products described in these materials may contain
design defects or errors known as errata which may cause the product to deviate from published specifications. To the extent
permitted by applicable law, Cypress reserves the right to make changes to this document without further notice. Cypress
does not assume any liability arising out of the application or use of any product or circuit described in this document. Any
information provided in this document, including any sample design information or programming code, is provided only for
reference purposes. It is the responsibility of the user of this document to properly design, program, and test the functionality
and safety of any application made of this information and any resulting product. Cypress products are not designed,
intended, or authorized for use as critical components in systems designed or intended for the operation of weapons,
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 other uses where
the failure of the device or system could cause personal injury, death, or property damage (“Unintended Uses”). A critical
component is any component of a device or system whose failure to perform can be reasonably expected to cause the failure
of the device or system, or to affect its safety or effectiveness. Cypress is not liable, in whole or in part, and you shall and
hereby do release Cypress from any claim, damage, or other liability arising from or related to all Unintended Uses of Cypress
products. You 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 Cypress products.
Cypress, the Cypress logo, Spansion, the Spansion logo, and combinations thereof, WICED, PSoC, CapSense, EZ-USB, F-
RAM, and Traveo are trademarks or registered trademarks of Cypress in the United States and other countries. For a more
complete list of Cypress trademarks, visit cypress.com. Other names and brands may be claimed as property of their
respective owners.
CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *J 2
Contents
Safety Information 6
1. Introduction 10
1.1 Kit Contents ...............................................................................................................11
1.2 BLE Pioneer Baseboard Details ................................................................................12
1.3 PSoC Creator ............................................................................................................14
1.3.1 PSoC Creator Code Examples ......................................................................15
1.3.2 Kit Code Examples.........................................................................................16
1.3.3 PSoC Creator Help ........................................................................................17
1.3.4 Component Datasheets .................................................................................17
1.4 Getting Started...........................................................................................................17
1.5 Additional Learning Resources..................................................................................18
1.5.1 Bluetooth Learning Resources.......................................................................18
1.5.2 Other Related Resources...............................................................................19
1.6 Technical Support......................................................................................................19
1.7 Documentation Conventions......................................................................................19
1.8 Acronyms...................................................................................................................19
2. Software Installation 21
2.1 Before You Begin.......................................................................................................21
2.2 Install Software ..........................................................................................................21
2.3 Windows 8.1 and Windows 10 USB Selective Suspend Setting ...............................24
3. Kit Operation 25
3.1 Theory of Operation...................................................................................................25
3.2 KitProg .......................................................................................................................27
3.3 BLE Pioneer Kit USB Connection ..............................................................................27
3.4 Placing PSoC 4 BLE Module on Baseboard..............................................................28
3.5 Programming and Debugging BLE Device ................................................................29
3.5.1 Programming using PSoC Creator.................................................................29
3.5.2 Debugging using PSoC Creator.....................................................................30
3.5.3 Programming using PSoC Programmer.........................................................31
3.6 Updating BLE Dongle for CySmart Central Emulation Tool ......................................32
3.7 USB-UART Bridge .....................................................................................................34
3.8 USB-I2C Bridge .........................................................................................................35
3.9 Updating the KitProg Firmware..................................................................................36
4. Code Examples 37
4.1 Using Code Examples ...............................................................................................37
4.2 CapSense Slider and LED .........................................................................................41
4.2.1 Project Description .........................................................................................41
4.2.2 Hardware Connections...................................................................................43
CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *J 3
Contents
5. Hardware 82
5.1 BLE Pioneer Baseboard ............................................................................................82
5.1.1 PSoC 5LP ......................................................................................................82
5.1.2 Power System ................................................................................................82
5.1.3 Programming Interface...................................................................................89
5.1.4 Expansion Connectors ...................................................................................89
5.1.5 USB Mini-B Connector ...................................................................................92
5.1.6 CapSense Circuit ...........................................................................................93
5.1.7 BLE Pioneer Baseboard LEDs.......................................................................95
5.1.8 Push-Buttons..................................................................................................96
5.1.9 Cypress Ferroelectric RAM (F-RAM) .............................................................97
5.1.10 Serial Interconnection between KitProg and Module .....................................98
5.1.11 Module Headers.............................................................................................99
5.2 Module Board ..........................................................................................................100
5.2.1 PSoC 4 BLE Device .....................................................................................100
5.2.2 Module Power Connections .........................................................................101
5.2.3 Module Headers (20-Pin and 24-Pin Headers) ............................................102
5.2.4 Wiggle Antenna ............................................................................................103
5.2.5 Antenna Matching Network ..........................................................................104
5.2.6 BLE Passives ...............................................................................................105
5.2.7 Test Points....................................................................................................106
5.3 BLE Dongle Board ...................................................................................................107
5.3.1 Power System ..............................................................................................107
5.3.2 USB Type-A Plug .........................................................................................108
5.3.3 User LED......................................................................................................109
CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *J 4
Contents
A. Appendix 112
A.1 Bill of Materials (BOM) .............................................................................................112
A.2 KitProg Status LED States.......................................................................................112
A.3 Adding BLE Module-Compatible Headers on Your Baseboard ...............................114
A.4 Programming BLE Modules via MiniProg3 ..............................................................115
A.5 BLE Modules and BLE Dongles Compatible with the BLE Pioneer Kit ...................116
A.6 Migrating Projects Across Different Pioneer Series Kits ..........................................119
CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *J 5
Safety Information
The CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit is intended for use as a
development platform for hardware or software in a laboratory environment. The board is an open
system design, which does not include a shielded enclosure. Therefore, the board may cause
interference with other electrical or electronic devices in close proximity.
In a domestic environment, this product may cause radio interference. In such cases, the user
should take adequate preventive measures. Also, this board should not be used near any medical
equipment or critical RF devices. The kit is not intended for general consumer use. Cypress
recommends that the kit only be used in a shielded room.
Attaching additional wiring to this product or modifying the product operation from the factory default
may affect its performance and cause interference with other apparatus in the immediate vicinity. If
such interference is detected, suitable mitigating measures should be taken.
The CY8CKIT-042-BLE, as shipped from the factory, has been verified to meet with the
requirements of CE as a Class A product.
End-of-Life/Product Recycling
The end-of-life cycle for this kit is five years from the date of
manufacture mentioned on the back of the box. Contact your nearest
recycler to discard the kit.
CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *J 6
General Safety Instructions
ESD Protection
ESD can damage boards and associated components. Cypress recommends that the user perform
procedures only at an ESD workstation. If an ESD workstation is not available, use appropriate ESD
protection by wearing an antistatic wrist strap attached to the chassis ground (any unpainted metal
surface) on the board when handling parts.
Handling Boards
CY8CKIT-042-BLE boards are sensitive to ESD. Hold the board only by its edges. After removing
the board from its box, place it on a grounded, static-free surface. Use a conductive foam pad if
available. Do not slide the board over any surface.
Battery Disposal
Batteries can be safely disposed with normal household waste. Never dispose batteries in fire
because they can explode. It is important not to dispose large amounts of batteries in a group. Used
batteries are often not completely “dead.” Grouping used batteries together can bring these “live”
batteries into contact with one another, creating safety risks.
CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *J 7
Regulatory Compliance Information
The CY8CKIT-042-BLE kit contains devices that transmit and receive radio signals in accordance
with the spectrum regulations for the 2.4-GHz unlicensed frequency range.
Cypress Semiconductor Corporation has obtained regulatory approvals for this kit to be used in
specific countries. These countries include the United States (FCC Part 15), Canada (IC RSS210),
and Japan (JRF/TELEC). Additional regional regulatory agency approval may be required to operate
these throughout the world.
This kit, as shipped from the factory, has been tested and found to comply with the limits and
requirements for the following compliances:
■ As a Class B digital device, pursuant to part 15 of the FCC Rules.
■ As a Class B digital apparatus, compliant with Canadian ICES-003.
CAUTION:
Only the PCB antenna(s) that were certified with the module may be
used. Other antennas may be used only if they are of the same type
and have the same or lower gain.
The module must be recertified as a Class II permissive change if
the module is built into a different device than the evaluation board
(EVB) it was certified with.
The manufacturer is not responsible for any radio or television
interference caused by unauthorized modifications to this
equipment. Such modifications could void the user's authority to
operate the equipment.
Canada (IC)
This device complies with the Industry Canada license-exempt RSS standard(s). Operation is sub-
ject to the following two conditions:
■ This device may not cause interference.
CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *J 8
■ This device must accept any interference, including interference that may cause undesired oper-
ation of the device.
This equipment complies with radio frequency exposure limits set forth by Industry Canada for an
uncontrolled environment. This equipment should be installed and operated with minimum distance
20 cm between the device and the user or bystanders.
CAUTION: Any changes or modifications not expressly approved by the party responsible for com-
pliance could void the user’s authority to operate the equipment.
Contains IC: CY8CKIT-142 and CY5677
Le présent appareil est conforme aux CNR d'Industrie Canada applicables aux appareils radio
exempts de licence. L'exploitation est autorisée aux deux conditions suivantes: (1) l'appareil ne doit
pas produire de brouillage, et (2) l'utilisateur de l'appareil doit accepter tout brouillage radioélectrique
subi, même si le brouillage est susceptible d'en compromettre le fonctionnement.
Cet équipement est conforme aux limites d'exposition aux radiofréquences définies par Industrie
Canada pour un environnement non contrôlé. Cet équipement doit être installé et utilisé avec un
minimum de 20cm de distance entre le dispositif et l'utilisateur ou des tiers.
Contains IC: CY8CKIT-142 and CY5677
Japan (TELEC)
CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *J 9
1. Introduction
Thank you for your interest in the CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit. The
BLE Pioneer Kit enables customers to evaluate and develop BLE projects using the PSoC® 4 BLE
device.
Bluetooth SMART™ or Bluetooth Low Energy (BLE) is a full-featured, layered, communication
protocol that includes a 2.4-GHz radio, a link layer, and an application layer. However, you do not
need to understand the complex protocol to implement your projects using PSoC 4 BLE. The
Cypress BLE solution, which includes the device, the BLE Component, and the BLE firmware 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 develop
and 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 PSoC
Creator. The CySmart Central Emulation Tool is a host tool for Windows PCs, which provides an
easy-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 the PSoC4 BLE device which
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).
The PSoC 4 BLE is available in 128KB and 256KB flash configurations.
The PSoC 4 BLE is supported by royalty-free protocol stacks compatible with Bluetooth 4.1 and
Bluetooth 4.2.
CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *J 10
Introduction
The BLE Module that is shipped as part of the BLE Pioneer Kit supports 128KB flash and
Bluetooth 4.1. The BLE Modules that support 256KB flash and Bluetooth 4.2 can be ordered
separately. For more information about these modules, refer to BLE Modules and BLE Dongles
Compatible with the BLE Pioneer Kit on page 116.
If 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 Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *J 11
Introduction
CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *J 12
Introduction
Figure 1-3 shows a markup of the onboard components of the PSoC 4 BLE module. See BLE
Modules and BLE Dongles Compatible with the BLE Pioneer Kit on page 116 for more details.
Figure 1-4 shows the BLE Dongle board blocks.
Figure 1-3. BLE Module Markup
8JHHMF "OUFOOB
BOUFOOB NBUDIJOH
OFUXPSL "./
32.768-kHz
.)[ $UBOL crystal
DSZTUBM $NPE
1@1@ (/%7%%"
1@1@ 1@1@
1@1@ 1@1@
1@73&' 1@1@
14P$#-& 14P$#-& 1@1@ 1@1@
NPEVMF NPEVMF 1@1@ 1@1@
IFBEFS +
IFBEFS +
1@1@ 1@1@
93&41@ 1@1@
(/%1@ 1@1@
4"3CZQBTT 7%%%1@ 1@1@
DBQBDJUPS 1@1@
CPUUPNTJEF
L)[ 7%%3(/%
DSZTUBM
CPUUPNTJEF
7%%
(/%
1@
1@
$:$-2*#- QJO6"35
14P$#-&EFWJDF IFBEFS
CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *J 13
Introduction
PSoC Creator also enables you to tap into an entire tool ecosystem with integrated compiler chains
and production programming programmers for PSoC devices.
For more information, visit www.cypress.com/psoccreator. Visit PSoC Creator training page for video
tutorials on learning and using PSoC Creator.
CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *J 14
Introduction
CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *J 15
Introduction
CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *J 16
Introduction
CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *J 17
Introduction
CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *J 18
Introduction
1.8 Acronyms
Table 1-2. Acronyms Used in this Document
Acronym Definition
ADC analog-to-digital converter
API application programming interface
BD address Bluetooth device address
BLE Bluetooth Low Energy
CDC Communications Device Class
COM communication port
DLE data length extension
ECDH Elliptic Curve Diffie-Hellman
DVD digital video disc
CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *J 19
Introduction
CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *J 20
2. Software Installation
This chapter describes the steps to install the software tools and packages on a computer for using
the BLE Pioneer Kit. This includes the IDE in which the projects will be built and used for program-
ming.
CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *J 21
Software Installation
3. Click Install CY8CKIT-042-BLE Kit to start the installation, as shown in Figure 2-1.
Figure 2-1. Installer Screen
4. Select the folder in which you want to install the CY8CKIT-042-BLE kit-related files. Choose the
directory and click Next.
5. When you click Next, the CY8CKIT-042-BLE Kit installer automatically installs the required
software, 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 4.2 or later: Download the latest version from www.cypress.com/psoccreator.
b. PSoC Programmer 3.27.1 or later: This is installed as part of PSoC Creator installation
(www.cypress.com/programmer).
c. CySmart 1.3 or later: Download the latest version from www.cypress.com/cysmart.
CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *J 22
Software Installation
7. Read the license agreement and select I accept the terms in the license agreement to
continue with installation. Click Next.
8. When the installation begins, a list of packages appears on the installation page. A green check
mark appears next to each package after successful installation.
9. Click Finish to complete the CY8CKIT-042-BLE kit installation.
10.Enter your contact information or select the Continue Without Contact Information check box.
Click Finish to complete the CY8CKIT-042-BLE kit installation.
11. After the installation is complete, the kit contents are available at the following location:
<Install_Directory>\CY8CKIT-042-BLE Kit
Default location:
Windows 7 (64-bit): C:\Program Files (x86)\Cypress\CY8CKIT-042-BLE Kit
Windows 7 (32-bit): C:\Program Files\Cypress\CY8CKIT-042-BLE Kit
Note: For Windows 7/8/8.1/10 users, the installed files and the folder are read only. To use the code
examples, follow the steps outlined in the Code Examples 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 a BLE Central device.
CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *J 23
Software Installation
CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *J 24
3. Kit Operation
This chapter introduces you to the BLE Pioneer Kit and the features that will be used as part of its
operation. We will discuss features such as USB connection, programming/debugging, and
programmer firmware update. The chapter also describes the USB-UART and USB-I2C bridges
along with the PC tools that can be used to communicate with the BLE device on the BLE Pioneer
Kit.
D+ / D- XRES
USB KitProg SWD BLE Module I/Os
Mini B VBUS Programmer/Serial
Communication
I2C / UART 24 pin header
I2C pull-up
via FET
RGB LED
ESD
Protection KitProg I/Os Power MOSFET I2C
Protection ckt FRAM
16 pin Expansion header LED Red 3.3V
~3V
ORing Voltage Ctrl Coin cell MOSFET PMOD header CapSense Slider
GPIO
Diodes 3 pin Jumper Battery holder Protection ckt 6 pin PMOD header 5 Segment
3.3V
VIN
Power Signal
The BLE Pioneer Baseboard acts as the baseboard for the PSoC 4 BLE Module. The BLE Pioneer
Baseboard contains a PSoC 5LP device, that has KitProg firmware, used as an onboard
programmer or debugger, and for the USB-Serial interface.
The baseboard is Arduino form-factor compatible, enabling Arduino shields to be connected on top
of the board to extend the functionality of the PSoC 4 BLE Module. The board also features a 1-Mb
F-RAM, an RGB LED, a five-segment CapSense slider, a proximity header, a user switch, and a
reset switch for the PSoC 4 BLE device on the module. The BLE Pioneer Baseboard supports three
voltage levels: 1.9 V, 3.3 V, and 5 V.
CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *J 25
Kit Operation
The BLE Pioneer Baseboard can also be used as a standalone programmer to program and debug
other BLE devices using SWD, and as a USB-Serial interface. The KitProg firmware on PSoC 5LP
device enables bootloading PSoC 5LP over USB to upgrade the firmware.
Figure 3-2. PSoC 4 BLE Module Block Diagram
BLE I/Os
20 pin header (Digital pins)
SAR
KHz
Decaps Bypass Cap
Crystal GPIO
VREF
MHz
Crystal CMOD
PSoC 4
4 pin BLE
header RX/ TX CTANK
Test
points
Decaps
VDDD/A/R GPIO RF Matching
Ferrite Bead
Circuit
BLE I/Os
24 pin header (Analog pins)
Power Signal
This BLE Pioneer Kit includes the PSoC 4 BLE Module. This module acts as a basic breakout board
for the CY8C4247LQI-BL483 (PSoC 4 BLE) device. Besides the PSoC 4 BLE Module, there are
additional modules available, which can be ordered separately. The complete list is available in BLE
Modules and BLE Dongles Compatible with the BLE Pioneer Kit on page 116.
The BLE Dongle is the wireless interface for the CySmart Central Emulation Tool. It has a PSoC 4
BLE device for BLE communication and KitProg for onboard programming, debugging, and for the
USB-Serial interface, as shown in Figure 3-3.
The BLE Dongle has a USB Type-A plug to connect the KitProg to the USB port of the host
computer. The KitProg then communicates with the PSoC 4 BLE device over UART or multiplexed
I2C or an SPI bus. The BLE Dongle also features a user LED, a user switch, and a reset switch for
the PSoC 4 BLE device. The dongle is powered directly through the USB port (VBUS) at 5.0 V.
Figure 3-3. BLE Dongle Block Diagram
Test Points
Power Signal
CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *J 26
Kit Operation
3.2 KitProg
KitProg is the hardware/firmware block for onboard programming, debugging, and bridge
functionality. It is a common reusable hardware/firmware block used across many Cypress kit
platforms. It consists of a PSoC 5LP, which connects to the computer over an USB interface and
connects to the PSoC 4 BLE device over SWD, I2C, and UART pins.
The KitProg communicates with PSoC Programmer and PSoC Creator software to program/debug
the target PSoC 4 BLE over the SWD interface. The main advantage of an onboard programmer/
debugger is that users do not have to buy an extra programmer/debugger hardware.
Figure 3-4. KitProg Driver Installation (appearance may differ depending on Windows version)
CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *J 27
Kit Operation
To remove the PSoC 4 BLE Module from the BLE Pioneer Kit, hold the BLE Pioneer Kit in one hand
and the module in the other, as shown in Figure 3-6, and pull it out using a rocking motion.
Figure 3-6. Remove Module Connected on BLE Pioneer Kit
CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *J 28
Kit Operation
2. Load the desired code example in PSoC Creator from File > Open > Project/Workspace.
3. Build the project by choosing Build > Build <Project Name> or [Shift] [F6], as shown in
Figure 3-9.
CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *J 29
Kit Operation
4. If there are no errors during build, program the firmware by clicking the Program button on the
tool bar or pressing [Ctrl] [F5], as shown in Figure 3-10. This will program the device on the BLE
Pioneer Kit/BLE Dongle and it will be ready for use.
Figure 3-10. Programming Device From PSoC Creator
2. When PSoC Creator opens in debug mode, use the buttons on the toolbar for debugging.
CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *J 30
Kit Operation
For more details on using the debug features, see the Cypress application note Getting Started with
PSoC 4 BLE.
3. Go to File > Program to start programing the kit with the selected file.
Note: If the hex file does not match the device selected, then PSoC Programmer will throw an
error of device mismatch and terminate programming.
Figure 3-13. Program Hex File to Kit
4. When the programming is finished successfully, indicated by a PASS message on the status bar,
the BLE Pioneer Kit/BLE Dongle is ready for use. Close PSoC Programmer.
CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *J 31
Kit Operation
If the BLE Dongle contains custom firmware on PSoC 4 BLE, the original CySmart firmware can be
programmed back to restore the CySmart functionality. It must be connected through the USB and
enumerated as KitProg. To do this, follow these steps:
1. Connect the BLE Dongle to the USB port on the computer.
2. Open PSoC Programmer by going to Start > All Programs > Cypress > PSoC Programmer
<version> > PSoC Programmer <version>.
CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *J 32
Kit Operation
3. Click the File Load button and browse to the location of the
BLE_4_2_Dongle_CySmart_256K_psoc.hex file. The hex file is located at:
<Install_Directory>\CySmart\<version>\dongle\CY5677\
Note: If Cypress releases new versions of the CySmart Central Emulation Tool and the BLE
Dongle firmware, then the CySmart Central Emulation Tool will display a message requesting to
update the firmware, as shown in Figure 3-15.
Choose the .hex file from the respective location and update the BLE Dongle firmware.
Figure 3-15. Update BLE Dongle Firmware with Hex from CySmart PC Tool.
CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *J 33
Kit Operation
4. Ensure the other settings match as shown in Figure 3-16. Click the Program button to start
programming. The status bar at the bottom of the PSoC Programmer window will show the
programming status and the result (Pass/Fail).
5. After programming is completed successfully, the BLE Dongle firmware is updated and can be
used to connect to the CySmart Central Emulation Tool.
CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *J 34
Kit Operation
To use the USB-I2C functionality, select the KitProg\<serial number> in the BCP. On successful
connection, the Connected and Powered status box turn green, as shown in Figure 3-17.
CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *J 35
Kit Operation
To update the KitProg, go to the Utilities tab on PSoC Programmer and click Upgrade Firmware,
as shown in Figure 3-19.
Figure 3-19. Update KitProg from PSoC Programmer
CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *J 36
4. Code Examples
This chapter demonstrates the functionality of the PSoC 4 BLE device using the BLE Pioneer Kit
code examples. Download and install the kit setup file from the kit webpage. The code examples can
be accessed on the Start Page of PSoC Creator under Kits.
4. Select the folder where you want to save the project and click OK.
5. Every BLE project uses a public address set in the BLE Component GUI to advertise and scan,
depending on the role: Peripheral or Central mode. If multiple kits in close proximity have the
same public address, then wrong devices may be connected or connections may fail. To prevent
this, change the Public address (and preferably Device name) in the BLE Component GAP
Settings tab as shown in Figure 4-2. Click OK.
CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *J 37
Code Examples
Alternatively, you can select the 'Silicon generated' device address by selecting the check box.
This way, the Bluetooth device (BD) address is generated using the silicon ID, unique to each
device. Click OK.
Figure 4-2. Change BLE Public Address and Name
6. Build the code example by choosing Build > Build <Project Name>, as shown in Figure 4-3. A
hex file will be generated.
Figure 4-3. Build Project from PSoC Creator
7. Connect the BLE Pioneer Baseboard to the computer through the USB Mini-B connector J13.
Ensure that the PSoC 4 BLE module is placed on the baseboard.
8. Choose Debug > Program in PSoC Creator, as shown in Figure 4-4.
CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *J 38
Code Examples
9. If the device is not yet acquired, PSoC Creator will open the programming window. Select
KitProg and click Port Acquire, as shown in Figure 4-5.
Note: The serial ID starting with 'BLE' belongs to the BLE Dongle (see Updating BLE Dongle for
CySmart Central Emulation Tool on page 32).
Figure 4-5. Port Acquire
CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *J 39
Code Examples
10.After the device is acquired, it is shown in a structure below the KitProg. Click the Connect but-
ton and then OK to exit the window and start programming, as shown in Figure 4-6.
Figure 4-6. Connect Device From PSoC Creator and Program
This document refers to the BLE Pioneer Kits, BLE Dongle, and PC/mobile as Central or Peripheral
devices. A Central device is normally the master and requests/commands data from the Peripheral
device. BLE-enabled phones and computers are one such example. Peripheral devices store the
actual data and send it to the Central device when requested. Examples include BLE-enabled
sensors, proximity beacons, and so on.
If you are a beginner in BLE, refer to the PSoC Creator code examples such as BLE_FindMe and
BLE_Device_Information_Service as pointed out in section 1.3.1. You may also refer the application
note Getting Started with PSoC 4 BLE.
The four Kit code examples viz. CapSense Slider and LED, CapSense Proximity, BLE Central Mode
and Eddystone are intermediatory level examples that will help to design a system around the kit.
Refer to the 4.2 CapSense Slider and LED for details.
CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *J 40
Code Examples
CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *J 41
Code Examples
CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *J 42
Code Examples
CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *J 43
Code Examples
System initialized.
Wait for interrupt from User
Button to Wakeup
Start
Advertisement
Advertisement
Time-out?
NO
Connected to
NO Central device before
timeout?
YES
Put system to low power
Process BLE
mode and wait for interrupt
Events
from BLE Link Layer
YES YES
NO YES
BLE Connection
Still Present?
NO
CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *J 44
Code Examples
CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *J 45
Code Examples
8. Double-click the Slider LED device to connect, or click Slider LED and then click Connect.
Figure 4-12. Connect to BLE Slider and LED Peripheral
9. When connected, the CySmart Central Emulation Tool will display a message for the Update
connection parameters. Select Yes, as shown in Figure 4-13.
Figure 4-13. Update Connection Parameter Option
Note: If you select No, the example will still work. However, the current consumption will be
higher due to faster connection interval.
10.Click Discover All Attributes to find all attributes supported.
Figure 4-14. Discover All Attributes
CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *J 46
Code Examples
11. Locate the attribute Client Characteristic Configuration descriptor (UUID 0x2902) under Cap-
Sense slider characteristic (UUID 0x0003CAA2-0000-1000-8000-00805F9B0131). Click Read
Value to read the existing Client Characteristic Configuration Descriptor (CCCD) value as shown
in Figure 4-15.
Figure 4-15. Read CCCD for CapSense Slider Characteristic
12.Modify the Value field of CCCD to '01:00' and click Write Value. This enables the notifications on
the CapSense slider characteristic.
Figure 4-16. Write CCCD to Enable Notifications
CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *J 47
Code Examples
13.Swipe your finger on the CapSense slider on the BLE Pioneer kit, as shown in Figure 4-17 and
see the notification values in the CapSense Slider value field, as shown in Figure 4-18.
Figure 4-17. CapSense Slider
14.To disable notifications, modify the Value field of the Client Characteristic Configuration
descriptor to '00:00' and click Write Value.
Figure 4-19. Disable Notifications
CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *J 48
Code Examples
16.Modify the four bytes of data in the Value field and click Write Value. You will see the
corresponding change in the color and intensity of the RGB LED on the BLE Pioneer Kit, as
shown in Figure 4-22. The RGB LED will be on for 3 seconds before switching off to conserve
power.
Note: If the kit is powered from a coin cell and not the USB Vbus, then the color mixing and inten-
sity will vary. This is because the coin cell provides a lower driving voltage for RGB LEDs.
Figure 4-21. Write RGB LED Control Characteristic Value
CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *J 49
Code Examples
17.To disconnect from the device, click Disconnect, as shown in Figure 4-23.
Figure 4-23. Disconnect from the Device
18.To connect to this peripheral again, restart advertising by pressing the user button (SW2) on the
BLE Pioneer Kit. Advertising is indicated by the blinking red LED.
CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *J 50
Code Examples
7. When connected, the CySmart mobile application will list the profiles supported by the peripher-
als. Scroll and select the CapSense Slider service, as shown in Figure 4-25.
Figure 4-25. CapSense Service Page
8. Swipe your finger on the CapSense slider on the BLE Pioneer Kit and see a similar response on
the CapSense page in the CySmart application (Figure 4-26).
Figure 4-26. CapSense Slider
9. Press the back button to return to the service selection page. Scroll and tap on the RGB LED ser-
vice.
CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *J 51
Code Examples
10.On the RGB LED service page, swipe over the color gamut to see a similar color response on the
BLE Pioneer Kit RGB LED. The slider below the color gamut controls the intensity of the RGB
LED color. The RGB LED will be on for 3 seconds before switching off. This is done to conserve
power.
Figure 4-27. RGB LED Control with CySmart Mobile Application
11. To disconnect from the BLE Pioneer Kit, return to the CySmart mobile application home screen
by pressing the back button.
12.To reconnect to the Peripheral, press the user button (SW2) on the BLE Pioneer Kit again and
then scan for devices using CySmart mobile application.
CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *J 52
Code Examples
notification, which allows the GATT server to send data to the connected GATT client device
whenever new data is available.
The properties for the custom attributes are configured in the BLE Component under the Profiles tab,
as shown in Figure 4-28.
Figure 4-28. Attributes Configuration in BLE Component for CapSense Proximity
CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *J 53
Code Examples
CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *J 54
Code Examples
CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *J 55
Code Examples
Start
Advertisement
Advertisement
Time-out?
NO
Connected to
Central device? NO
YES
YES
Proximity value Notification
YES
Changed? enabled?
YES
YES
BLE connection
still exists?
NO
CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *J 56
Code Examples
3. Connect a five-inch wire (included in the kit) to the proximity sensor connector J14 on the BLE
Pioneer Kit and make a loop of it.
4. Power the BLE Pioneer Kit through the USB connector J13.
5. Program the BLE Pioneer Kit with the PSoC_4_BLE_CapSense_Proximity code example. Follow
the steps in Using Code Examples on page 37 to program the device.
6. After programming successfully, press the user button (SW2) on the BLE Pioneer kit to start the
advertisement. This is indicated by a blinking red LED on the baseboard.
Note: The example has an advertisement timeout of 30 seconds after which it returns to Deep
Sleep mode. Press SW2 again to restart the advertisement.
CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *J 57
Code Examples
7. On the CySmart Central Emulation Tool, click Start Scan to see the list of available BLE Periph-
eral devices.
Figure 4-34. Start Scanning
8. Double-click CapSense Proximity to connect, or click CapSense Proximity and then click Con-
nect to connect to the BLE Pioneer Kit.
Figure 4-35. Connect to CapSense Proximity Peripheral
9. When connected, the CySmart Central Emulation Tool will display a message for the Update
connection parameters. Select Yes, as shown in Figure 4-36.
Figure 4-36. Update Connection Parameter Option
Note: If you select No, the code example will still work. However, the current consumption will be
higher due to faster connection interval.
CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *J 58
Code Examples
10.Click Discover All Attributes to find all attributes supported by the Peripheral.
Figure 4-37. Discover All Attributes
11. When all the attributes are listed, locate the Client Characteristic Configuration descriptor
(UUID 0x2902) under CapSense Proximity characteristic (UUID 0x0003CAA1-0000-1000-8000-
00805F9B0131). Click Read Value to read the existing CCCD value as shown in Figure 4-38.
Figure 4-38. Read CapSense Proximity CCCD
CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *J 59
Code Examples
12.Modify the Value field to '01:00' and click Write Value. This enables the notifications on the Cap-
Sense proximity characteristic.
Figure 4-39. Write CCCD to Enable Notifications
13.Bring your hand closer to the proximity sensor on the BLE Pioneer Kit, as shown in Figure 4-40
and observe the value changing in the characteristic value field, as shown in Figure 4-41.
Figure 4-40. CapSense Proximity Sensing with PSoC 4 BLE Module
14.Modify the Value field of the Client Characteristic Configuration descriptor to '00:00' to disable
notifications.
CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *J 60
Code Examples
15.To disconnect from the device, click Disconnect, as shown in Figure 4-42.
Figure 4-42. Disconnect from the Device
16.Press user button (SW2) to wake up from sleep and restart the advertisement for the next
connection.
CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *J 61
Code Examples
8. When connected, the app will list the services supported by the peripherals. Scroll and select the
CapSense Proximity service.
9. When the CapSense service page opens, bring your hand near the sensor wire on the BLE
Pioneer Kit and see a similar response in the app as a bar graph, as shown in Figure 4-44.
Figure 4-44. CapSense Proximity Sensing with PSoC 4 BLE Module
10.To disconnect from the BLE Pioneer Kit, return to the device selection screen on the CySmart
mobile application.
11. To reconnect to the Peripheral, press the user button (SW2) on the BLE Pioneer Kit to restart the
advertisement and scan for the device in the CySmart mobile application.
CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *J 62
Code Examples
then the system stops scanning and returns to Deep Sleep mode (LED OFF). Press SW2 again to
wake the system and restart scanning.
To aid in evaluation, the Peripheral code example with the particular public address is provided in
the same workspace. This Peripheral code example supports IAS and has fixed public address that
the Central device will recognize and auto-connect to. The example should be programmed on the
BLE Dongle and powered through the USB port of the computer. The received alert levels (No, Mid,
and High alert) on the BLE Dongle are represented by different LED status. No Alert is represented
by LED OFF, Mid Alert by blinking LED, and High Alert with LED always ON. Upon each successive
button press on the BLE Pioneer Kit, the LED state on the BLE Dongle changes in a circular fashion.
The PSoC_4_BLE_Central_IAS demonstrates the BLE Central functionality on PSoC 4 BLE
Module.
Additionally, the BLE_Dongle_Peripheral_IAS code example is to be programmed on the BLE Don-
gle. This code example is present in the PSoC_4_BLE_Central_IAS workspace and can be used to
program the BLE Dongle separately.
Note: If the BLE Dongle is programmed with the BLE_Dongle_Peripheral_IAS example, it will not
work with the CySmart PC utility. Reprogram the BLE Dongle with the CySmart firmware according
to Updating BLE Dongle for CySmart Central Emulation Tool on page 32 to use the CySmart Central
Emulation Tool.
Figure 4-45. PSoC_4_BLE_Central_IAS TopDesign
CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *J 63
Code Examples
Similarly, the pin assignment for the BLE Dongle Peripheral code example is in BLE_Dongle_Periph-
eral_IAS.cydwr in the Workspace Explorer as shown in Figure 4-48.
Figure 4-48. Pin Selection for BLE IAS Peripheral Code Example
CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *J 64
Code Examples
Start
Yes No
Dongle
Peripheral
found?
Yes
Connect to the Peripheral
and turn on Blue LED
User switch
Disconnected? No
pressed?
Yes
No
Send the next alert level
to the Peripheral
CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *J 65
Code Examples
Figure 4-50 shows the flow chart for the IAS GATT server mode code example.
Figure 4-50. IAS GATT Server Mode Flow Chart
Start
Start Advertisement
Yes
and wait for connection
Connected
High
Turn on LED
Process incoming
BLE events
CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *J 66
Code Examples
CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *J 67
Code Examples
3. Program the BLE Dongle with the BLE_Dongle_Peripheral_IAS code example. Follow the steps
described in Using Code Examples on page 37.
Note: Do not update the public device address (inside the BLE Component) for the
BLE_Dongle_Peripheral_IAS code example. Changing the BLE_Dongle_Peripheral_IAS code
example public address will lead to no connection with the BLE Central device on the BLE
Pioneer kit.
4. Power the BLE Pioneer Kit through USB connector J13.
5. In the Workspace Explorer, right-click the PSoC_4_BLE_Central_IAS code example and select
Set As Active Project, as shown in Figure 4-53.
Figure 4-53. Set Central IAS Code Example as Active
6. Program the BLE Pioneer Kit with the PSoC_4_BLE_Central_IAS code example.
7. Press the SW2 button on the BLE Pioneer Kit to wake the system and start scanning. Scanning is
indicated by a blinking LED.
8. Wait for the BLE connection between the BLE Dongle and the BLE Pioneer Kit. The connection
success status is indicated on the baseboard in the following three stages:
a. Fast blinking blue LED represents scanning mode. During this mode, the BLE Pioneer Kit is
scanning for Peripheral devices.
b. Slow blinking blue LED represents discovery mode. During this mode, the BLE Pioneer Kit
has found the BLE Dongle Peripheral device and has started the connection procedure.
c. The blue LED remains on, representing the connected mode. This mode indicates that the
Peripheral device is connected and the application can now send alert levels.
CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *J 68
Code Examples
9. Press the SW2 button on the BLE Pioneer Kit to send the next alert level to the BLE Dongle. The
alert level will rotate from No Alert to Mid Alert to High Alert.
Figure 4-54. User Button on BLE Pioneer Kit with PSoC 4 BLE Module
10.Check if the LED behavior changes for each alert notification on the BLE Dongle according to the
following table:
Note: To revert the CySmart functionality to the dongle, program the dongle hex file, as described in
Updating BLE Dongle for CySmart Central Emulation Tool on page 32.
CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *J 69
Code Examples
4.5 Eddystone
4.5.1 Project Description
This code example demonstrates a BLE beacon based on Google's Eddystone™ protocol on the
BLE Pioneer Kit. A beacon is a wireless device that broadcasts data (such as temperature) over a
periodic radio signal from a known location. BLE-based beacons use the BLE advertisement packets
to broadcast data. This code example demonstrates the following:
■ Beacon (non-connectable advertisement)
■ Beacon configuration (connectable advertisement)
Google's Eddystone is a protocol that defines BLE advertisement data formats for beacons. In Eddy-
stone parlance, the advertisement data is called a frame and the advertisement data format is called
a frame type. The protocol supports multiple frame types that may be used individually or in combi-
nations to create beacons for a variety of applications.
Figure 4-55. Characteristic Configuration in BLE Component for Eddystone Beacon
The BLE profile in this example consists of two BLE custom services, Eddystone and Eddystone
Configuration (see Figure 4-55). The code example broadcasts one of the following beacon frames
in a non-connectable advertisement packet.
■ Eddystone-UID frame broadcasts a unique 16-byte Beacon ID composed of a 10-byte name-
space and a 6-byte instance. The Beacon ID may be useful in mapping a device to a record in
external storage. The namespace portion of the ID may be used to group a particular set of bea-
cons, while the instance ID identifies individual devices in the group. The division of the ID into
namespace and instance components may also be used to optimize BLE scanning strategies, for
example, by filtering only on the namespace. More details are available here.
■ Eddystone-URL frame broadcasts a URL using a compressed encoding format to fit more within
the limited advertisement packet. More details are available here.
CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *J 70
Code Examples
■ Eddystone-TLM frame broadcasts telemetry information about the beacon itself such as battery
voltage, device temperature, and counts of broadcast packets. More details are available here.
The Eddystone Configuration Service consists of nine characteristics as follows.
■ Lock State – Read returns true if the device is locked.
■ Lock – Locks the beacon and sets the single-use lock-code.
■ Unlock – Unlocks the beacon and clears the single-use lock-code.
■ URI Data – Reads/writes the URI.
■ URI Flags – Reads/writes the flags.
■ Advertised Tx Power Levels – Reads/writes the Advertised Power Levels array.
■ Tx Power Mode – Reads/writes the TX Power Mode.
■ Beacon Period – The period in milliseconds that an Eddystone-URL packet is transmitted.
■ Reset – Resets to default values.
More details on the Eddystone Configuration service can be found here.
The code example consists of the following files:
■ main.c/.h
These files contain the main function, which is the entry point and execution of the firmware appli-
cation. They contain function definitions for initialization and handling low power mode of the sys-
tem. By default on power-on-reset, the system will do a non-connectable advertisement of URL/
URI and TLM packets. When the SW2 button is pressed, the device will enter connectable mode
and various characteristics can be configured.
■ Eddystone.c/.h
These files contain the functions required to implement the Eddystone protocol including adver-
tisement packet creation (for UID/URL and TLM), advertisement scheduling, and configuration
read/write. The battery and temperature data are also updated before the TLM packets are con-
structed and advertised.
■ WatchdogTimer.c/.h
These files contain functions that provide necessary timing for the operation of the system.
■ Battery.c/.h
These files contain a function that will measure the battery voltage of the kit. This information is
advertised as part of the TLM packets.
■ Temperature.c/.h
These files contain a function that will measure the die temperature of the PSoC device. An
external sensor may be attached to measure ambient temperature. This information is advertised
as part of the TLM packets.
The green LED indicates UID/URL packet transmissions, the blue LED indicates TLM packet trans-
missions, and the red LED indicates that the device is in connectable mode. In this mode, when con-
nected, the beacon configuration can be modified.
CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *J 71
Code Examples
CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *J 72
Code Examples
The pin assignment for this code example is in PSoC_4_BLE_Eddystone.cydwr in the Workspace
Explorer, as shown in Figure 4-58.
Figure 4-58. Pin Selection for Eddystone Code Example
Start Non-connectable
Advertisement of URL/URI
Packets
Start Non-connectable
Advertisement of TLM Low Power Mode
Packets
Yes
Is current
Advertisment
No advertisment packet Yes
URL/URI Timeout?
No
SW2 Pressed? No
Yes
Start Connectable
Advertisement
Connection
Established Before
timeout?
Yes
Read/write Configurations
as Requested
No Is Disconnected? Yes
CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *J 73
Code Examples
CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *J 74
Code Examples
7. In the next screen a list of Visible Beacons will be displayed. Click the desired beacon (see
Figure 4-61) to display its status and information (see Figure 4-62).
Figure 4-61. Locate Beacon App Showing Discovered Beacons
CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *J 75
Code Examples
To read and write characteristics (using an Android or iOS device, and CySmart app) of the beacon
follow these steps.
1. Press SW2 on the BLE Pioneer Kit baseboard to start the connectable advertisement. The adver-
tisement state is indicated by the red LED.
2. Launch the CySmart app on your Android smart phone/device.
3. Connect to the CY Eddystone device from the list by clicking on it (see Figure 4-63).
Figure 4-63. CySmart App Showing the CY Eddystone Beacon
CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *J 76
Code Examples
5. Click on Unknown Service (see Figure 4-65) to see all available characteristics.
Figure 4-65. CySmart Showing Unknown Service in GATT DB
CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *J 77
Code Examples
6. Click on any of the characteristics to read and modify it. For reference on Eddystone Configura-
tion characteristics, refer to the Google Eddystone page. To understand more about the CySmart
app, refer to the CySmart user guide.
7. Disconnect from the device to go back to the beacon mode.
Upper
HCI/UART Tester
DUT
RF (2.4 GHz) Lower
Tester
The BLE Component allows configuring the device in DTM by enabling the HCI. The appropriate
responses to commands from the tester are performed by the BLE protocol stack and does not
involve separate application handling. The only tasks required are to start the BLE Component and
call the API to process the events.
The HCI is enabled in the BLE Component under the General settings. Note that when the HCI
mode is selected, all other tabs are hidden and cannot be configured. This is because in HCI mode,
there are no upper layer processes. On enabling HCI mode, the component automatically reserves a
UART block to allow communication between the tester and BLE stack. The UART exposes the pins
that can be assigned in <project.cydwr> file under the Pins tab. The only options to be configured for
HCI mode are the baud rate and the pins for communication with the tester.
CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *J 78
Code Examples
CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *J 79
Code Examples
Many companies develop BLE testers for Direct Test Mode. It is also possible to create PC-based
software tools that will send HCI commands over serial communication links.
For PC-based software, the serial communication link is the COM port, which is enumerated by the
KitProg on the PSoC 5LP of the BLE Pioneer kit. In such a case, the UART pins on the PSoC 4 BLE
should be assigned to P1_4 and P1_5. These pins are hardwired to pins on the PSoC 5LP which
allows USB-UART data communication between the PC-based software and the BLE device.
For external BLE testers, the serial communication is mostly over RS232. To test with that type of
system, an external RS232 voltage translator is required, such as Digilent's PmodRS232. This
translator will modify the signal levels of the serial communication between the BLE device and the
RS232 port on the tester. The UART pins of the BLE device can be assigned to P0_0 and P0_1 and
header J5 can be used to connect to the RS232 translator.
Figure 4-68. J5 Header to Interface RS232 Translator
CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *J 80
Code Examples
The UART for HCI communication exposes hardware flow control lines CTS and RTS. They can
either be connected to the hardware control lines of the tester or CTS connected to ground for oper-
ation without hardware flow control.
If the tester is an external hardware tester (CBT), then connect any of the RS232 voltage translators
to header J5 on the BLE Pioneer Kit. The UART pins should be assigned as follows.
CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *J 81
5. Hardware
This chapter describes the contents of the BLE Pioneer Kit hardware and its different blocks, such as
the power block, USB connection, Arduino-compatible headers, module connectors, and CapSense
slider.
The schematic and board layouts are available at the following location:
<Install_Directory>\Cypress\CY8CKIT-042-BLE Kit\<version>\Hardware.
CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *J 82
Hardware
An adjustable LDO is used to output three different voltage levels (1.9 V, 3.3 V, and 5 V) to power the
module. These voltages are selected with the J16 jumper, as shown in Figure 5-1.
Figure 5-1. Schematics and Board Highlight of LDO and Power Selection Jumper
D1
SOD123
VBUS
D2 U1 D3
SOD123 SOD123
EN_CTRL 1 4 VADJ VDD
CTL OUT
3216
VIN VCC 2 5 R1 + C2
D4 VCC C
11K 4.7uF
SOD123 3216
+ C1 3 6 1%
1 uFd NC GND
BA00BC0WFP-E2
VCC R3 R4 R5
14.7K 1% 10K 1% 4.3K 1%
R10
3
10K
J16
3 PIN HDR
EN_CTRL
EN_CTRL
2
TABLE: LDO PIN FUNCTIONS TABLE: VOLTAGE SELECTION JUMPER SETTINGS
NO LOAD NO LOAD
6 GND Ground
GND Test Points
The input to the LDO can come from either the USB, the VIN pin in the Arduino header J1, or header
J9.
Note: The typical dropout voltage of the selected LDO is 0.3 V at 500-mA output current. This gives
a minimum output of 4.6 V from the input voltage of 5 V from the VBUS. This drop also considers the
voltage drop across the Schottky diode connected at the output of the LDO to protect against voltage
applied at the output terminal of the regulator.
CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *J 83
Hardware
The BLE Pioneer Baseboard also contains a CR2032 coin cell holder to power it using a coin cell, as
shown in Figure 5-2.
Figure 5-2. Schematics and Board Highlight of Coin Cell Holder
I/O Header
3.3V
5V Vin
Coin cell ~3V
MOSFET based
Battery Holder
Protection Ckt
BLE
LDO
Module
USB
5V
PTC
PSoC 5LP
PSoC 5LP 10 Pin PSoC 4 BLE 10
Prog. Header Pin Prog. Header
ESD
Protection
■ A PTC resettable fuse is connected to protect the computer's USB ports from shorts and
overcurrent.
■ ORing diodes prevent damage to components when the BLE Pioneer Baseboard is powered
from different voltage sources at the same time.
■ ESD protection is provided for the USB Mini-B connector.
CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *J 84
Hardware
■ A MOSFET-based protection circuit is provided for overvoltage and reverse-voltage protection for
the 3.3-V rail from J1.5, as shown in Figure 5-4.
Figure 5-4. Schematics and Board Highlight of MOSFET Protection Circuit for 3.3-V Rail from J1.5
R7 ZERO
NO LOAD
V3.3 VDD
Q1 PMOS( NTR4171PT1G)
R8 Q2
PMOS( DMP3098L-7)
15K
Vz=3.9V(BZT52C3V9-7-F)
Q3
PMOS(PMV48XP,215)
D9
R9
10K
CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *J 85
Hardware
VDD BLE_VDD
R44 ZERO
0805
NO LOAD
VTARG
0603
R45 ZERO
CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *J 86
Hardware
The following methods are supported for measuring the current consumption of the module.
■ When the BLE Pioneer Baseboard is powered through the USB port (J13), remove jumper J15
and connect an ammeter, as shown in Figure 5-6.
Figure 5-6. Current Measurement when Powered from USB Port
CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *J 87
Hardware
■ When the BLE Pioneer Baseboard is powered from an external voltage supply, remove the USB
cable from J13. Connect the positive terminal of the external voltage supply to the positive termi-
nal of the ammeter and the negative terminal of the ammeter to the upper pin of J15. Connect the
negative terminal of the external voltage supply to an onboard GND pin. Figure 5-7 shows the
required connections.
Figure 5-7. Current Measurement when Powered Separately
VOLTAGE
SOURCE
- +
CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *J 88
Hardware
To measure the power consumption of only the module with coin cell, connect the coin cell directly to
the PSoC 4 BLE Module, as shown in Figure 5-8. The BLE Pioneer Baseboard is designed with
additional circuits to protect the BLE device and the F-RAM in an Arduino environment. Note that
power consumption measurements on the BLE Pioneer Baseboard will also include the power
consumed by these additional circuits.
Connect the positive terminal of the coin cell to pin J2.2 and negative terminal to pin J2.4 using
wires.
Figure 5-8. Powering the Module using a Coin Cell
CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *J 89
Hardware
The J1 header contains I/O pins for reset, I/O reference voltage (IOREF), and power supply line. The
J2 header is an analog port that contains I/O pins for SAR ADC, comparator, and opamp. The J3
header is primarily a digital port that contains I/O pins for PWM, I2C, SPI, and analog reference. The
J4 header is also a digital port that contains I/O pins for UART and PWM. The J12 header is an
Arduino ICSP-compatible header for the SPI interface and is not populated. Refer to the “No Load
Components” section of Bill of Materials (BOM) on page 112 for the header part number.
Note: Take care when powering the Arduino shields via Arduino-compatible power header (J1). The
V3.3 pin will output 5 V when the board is powered from USB/VIN and the system power supply
jumper (J16) is set to 5 V operation.
Digilent
Pmod-
compatible
CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *J 90
Hardware
VDD
J8
1 2 P5LP1_2
P5LP0_0 3 1 2 4 P5LP0_1
P5LP3_4 5 3 4 6 P5LP3_5
P5LP3_6 7 5 6 8 P5LP3_7
P5LP12_6 9 7 8 10 P5LP12_7
UART RX 9 10 UART TX
P5LP12_111 12 P5LP3_0
P5LP12_013 11 12 14 P5LP12_5
13 14 SPI_MOSI
SPI_SSEL P5LP2_5 15 16
15 16
8x2 RECPT
CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *J 91
Hardware
2
F1
J13
1
VBUS 2 DM
DM P5LP_DM
3 DP P5LP_DP
DP 4
ID 5
S2
S1
GND
D8
D6
D7
USB MINI B
7
6
0603
0603
0603
100K R6
0402
0402
C3 0.01 uF
CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *J 92
Hardware
CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *J 93
Hardware
6
VCC
CON6
CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *J 94
Hardware
R11 LED2
P5LP3_1 2 1
0805
0805
Status LED
TP1 RED
NO LOAD
VADJ
LED1
R2
2 1
0805
560 ohm
Power LED
B
RGB LED
CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *J 95
Hardware
5.1.8 Push-Buttons
The BLE Pioneer Baseboard contains a reset push-button and a user push-button, as shown in
Figure 5-17. The reset button is connected to the XRES pin of BLE device and is used to reset it.
The user button is connected to P2[7] of the BLE device. Both the buttons connect to ground on acti-
vation (active low).
Figure 5-17. Schematics and Board Highlight of Reset Button and User Button
SW1 SW2
C25
0.1 uF EVQ-PE105K EVQ-PE105K
0402
RESET USER SWITCH
RESET (SW1)
User Button
(SW2)
Note: The PSoC 4 BLE Reset pin (XRES) has an internal pull-up resistor. However, external pull-up
resistor R3 and capacitor C25 are connected to PSoC 4 Reset pin on the PSoC 4 BLE Module,
which is optional and required only in a noisy system.
CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *J 96
Hardware
CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *J 97
Hardware
Figure 5-19. Schematics and Board Highlight of Serial Interface and I2C Pull-Up via FET
VDD
P5LP2_6
P5LP2_7
R22 R23
2.2K 2.2K
2
U4
NTZD3152P
6
R26 ZERO
P5LP12_1 SDA SPI_MISO / I2C_SDA
R27 ZERO
P5LP12_0 SCL SPI_SCLK / I2C_SCL
I2C Connection
36R&/3DQG36R&%/(&RQQHFWLRQV
CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *J 98
Hardware
For information on how to add these on your own board, refer to Adding BLE Module-Compatible
Headers on Your Baseboard on page 114.
CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *J 99
Hardware
P3.7
P3.6
P3.5
P3.4
P3.3
P3.2
P3.1
P3.0
P2.7
P2.6
ER 10x2
al Pins
57
56
55
54
53
52
51
50
49
48
47
46
45
44
43
U1
VDDD
EPAD
VCCD
VSSA
P3.7
P3.6
P3.5
P3.4
P3.3
P3.2
P3.1
P3.0
VDDA
VREF
P2.7
P2.6
1 42 P2.5
P6.0 2 VDDD P2.5 41 P2.4
P6.1 3 XTAL32O/P6.0 P2.4 40 P2.3
/XRES 4 XTAL32I/P6.1 P2.3 39 P2.2
P4.0 5 XRES P2.2 38 P2.1
P4.0 P2.1 VDDA
50 Ohm Wiggle Antenna P4.1 6 37 P2.0
P5.0 7 P4.1 P2.0 36
J4 P5.0 VDDA
P5.1 8 CY8C4247LQI-BL483 35 P1.7
9 P5.1 P1.7 34 P1.6
10 VSSD P1.6 33 P1.5
C14 VDDR P1.5
11 32 P1.4
12 GANT1 P1.4 31 P1.3
2
1.2 pF 6.8nH
VDDR
VDDR
VDDD
P0.0
P0.1
P0.2
P0.3
P0.4
P0.5
P0.6
P0.7
P1.0
No Load
VDDR
15
XTAL24I 16
XTAL24O 17
18
19
20
21
22
23
24
25
26
27
28
P0.0
P0.1
P0.2
P0.3
P0.4
P0.5
P0.6
P0.7
P1.0
VDDD
PCA: 121-60159-01
PCB: 600-60195-01
CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *J 100
Hardware
CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *J 101
Hardware
HEADER 12x2
Analog Pins
VDDD TP4
TP5
J2 RED
P1.6 1 2 BLACK
P1.7 3 4
P1.5 5 6 /XRES
TP1 P1.3 7 8 P0.7
VREF
P1.4 9 10 P0.6
RED P1.1 11 12 P1.2
13 14 P1.0
P0.4 15 16 P0.5
P0.2 17 18 P0.3
P0.0 19 20 P0.1
HEADER 10x2
Digital Pins
CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *J 102
Hardware
CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *J 103
Hardware
CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *J 104
Hardware
C1 C2 C3 C4 C5 C6 C7 C8
0402
0.1 uF 0603
1.0 uF 0402 0.1 uF 0603
1.0 uF 0402 0.1 uF 0603
1.0 uF 0402 0.1 uF 0603
1.0 uF
0MHz
VDDD VREF
C20
C16 C17 C18 C19 1.0 uF 0805 R1
0603
0402
0.1 uF 0603
1.0 uF 0402 0.1 uF 0603
1.0 uF Zero Ohm
No Load
P4.0 P4.1
R2 C21
No Load C22
Zero Ohm 2200 pF
10000 pF
0805
Shunt CMOD
Resistor C_Tank
C23 P6.1
1
12.5 pF VDDD
Y1
32.768KHz
C24 P6.0 R3
2
12.5 pF 4.7K
0603
No Load
KHz Crystal
/XRES
C25
XTAL24I
100 pF
1
0603
No Load
4 2 Y2
24Mhz
XTAL24O
3
MHz Crystal
CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *J 105
Hardware
CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *J 106
Hardware
PSoC 4
5V
USB
BLE
5V
USB
5V
PTC
PSoC5LP
ESD
P rotec tion
CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *J 107
Hardware
CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *J 108
Hardware
CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *J 109
6. Advanced Topics
This chapter describes the functionality of the FM24V10 F-RAM in the BLE Pioneer Kit.
CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *J 110
Advanced Topics
As shown in the figures, all operations start with the slave address followed by the memory address.
For write operations, the bus master sends each byte of data to the memory, and the memory
generates an acknowledgement condition. For ‘Current Address Read’ and ‘Sequential Read’, the
bus master sends only the slave address. The memory address used is the same address that was
set by the previous ‘Write’ or ‘Selective Read’ operation. For ‘Selective Read’ operations, after
receiving the complete slave address and memory address, the memory will begin shifting data from
the current address on the next clock.
CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *J 111
A. Appendix
LED blinks fast: Bootload the KitProg.cyacd file: In PSoC Programmer, connect to
LED starts blinking at power up,
the kit, open the Utilities tab, and press the Upgrade Firmware
Frequency = 4.00 Hz if bootloadable file is corrupt. button.
Entered Bootloader mode by Release the Reset button and replug power if you entered this
LED blinks slow: holding the Reset button of the mode by mistake. If the mode entry was intentional, bootload the
Frequency = 0.67 Hz BLE Pioneer Kit/BLE Dongle new .cyacd file using the Bootloader Host tool shipped with PSoC
during kit power up. Creator.
CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *J 112
Appendix
CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *J 113
Appendix
Pin 1
Pin 1
20 pin header
24 pin header
Manufacturer Part
Description Manufacturer Digikey Part Number
Number
CONN HEADER 2.54MM Sullins Connector SBH11-PBPC-D12-ST-BK-
SBH11-PBPC-D12-ST-BK
24POS GOLD Solutions ND
CONN HEADER 2.54MM Sullins Connector
SBH11-PBPC-D10-ST-BK S9172-ND
20POS GOLD Solutions
CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *J 114
Appendix
CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *J 115
Appendix
A.5 BLE Modules and BLE Dongles Compatible with the BLE Pioneer
Kit
Different BLE modules and BLE dongles can work with the BLE Pioneer Kit, as listed in the following
tables.
CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *J 116
Appendix
CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *J 117
Appendix
CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *J 118
Appendix
10 1 8 1
J3 J4
Arduino compatible
Pioneer series kits I/O headers
2 12 18
J1
J2
8 1 1 11 17
CY8CKIT-042-BLE
6x2 header
CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *J 119
Appendix
CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *J 120
Appendix
CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *J 121
Appendix
CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *J 122
Revision History
CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *J 123
Revision History
CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *J 124
Revision History
CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *J 125
Revision History
CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *J 126
Revision History
CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *J 127
Revision History
CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *J 128
Revision History
CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *J 129
Revision History
CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *J 130
Revision History
CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *J 131
Revision History
CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *J 132
Revision History
CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *J 133
Revision History
CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *J 134