Dialog DA14585, DA14586 User Manual

User Manual
DA14585/DA14586 Getting
Started Guide with the Basic
Development Kit
UM-B-048
Abstract
This guide is intended to help customers setup the hardware development environment, install required software, download, and run an example application on the DA14585/586 Basic development Kit development platform.
UM-B-048
DA14585/DA14586 Getting Started Guide with the Basic Development Kit
User Manual
Revision 2.0
09-Jul-2018
CFR0012-00 Rev 2
2 of 29
© 2018 Dialog Semiconductor
Contents
Abstract ................................................................................................................................................ 1
Contents ............................................................................................................................................... 2
1 Figures ............................................................................................................................................ 3
2 Tables ............................................................................................................................................. 3
3 Terms and Definitions ................................................................................................................... 4
4 Prerequisites .................................................................................................................................. 4
5 Introduction.................................................................................................................................... 5
5.1 Kit Content ............................................................................................................................ 5
6 The DA14585/586 Hardware ......................................................................................................... 6
6.1 The Basic Kit board ............................................................................................................... 6
6.2 Configuring the Basic Kit Board by Jumper Settings ............................................................ 6
6.3 Board Layout ......................................................................................................................... 8
6.4 Connecting the Basic Kit to the host PC ............................................................................... 9
7 DA14585/586 Software Installation ............................................................................................ 10
7.1 Requirements of the Development PC ............................................................................... 10
7.2 Driver Installation ................................................................................................................ 10
7.3 Configuring the Serial Port for UART .................................................................................. 11
7.3.1 Using Serial Port .................................................................................................. 11
7.4 Troubleshooting .................................................................................................................. 12
8 Software Development Tools ..................................................................................................... 12
8.1 SmartSnippets™ Installation ............................................................................................... 13
8.2 KEIL Installation .................................................................................................................. 15
9 Build a DA14585/586 Application .............................................................................................. 16
9.1 The Blinky Peripheral Example Application ........................................................................ 16
9.2 The Barebone BLE Example Application ............................................................................ 21
9.3 Troubleshooting .................................................................................................................. 24
9.4 What Next ? ........................................................................................................................ 24
10 Appendices .................................................................................................................................. 25
10.1 Appendix A: Using the Basic Development Kit ................................................................... 25
10.2 Appendix B: Latency Timer of the FTDI cable .................................................................... 25
10.3 Appendix C: Power Management: measuring current ........................................................ 26
11 Revision history .......................................................................................................................... 28
12 Status definitions ........................................................................................................................ 28
13 Disclaimer .................................................................................................................................... 28
14 RoHS Compliance ....................................................................................................................... 29
UM-B-048
DA14585/DA14586 Getting Started Guide with the Basic Development Kit
User Manual
Revision 2.0
09-Jul-2018
CFR0012-00 Rev 2
3 of 29
© 2018 Dialog Semiconductor
1 Figures
Figure 1: The DA14585/586 Basic Kit ................................................................................................... 6
Figure 2: The DA14585/586 Basic Kit Jumper Setting .......................................................................... 6
Figure 3: Jumper 4 Layout..................................................................................................................... 7
Figure 4: Data direction of UART within J4 ........................................................................................... 7
Figure 5: DA14585/586 Boot from external SPI memory ...................................................................... 8
Figure 6: DA14585/586 Basic Board layout .......................................................................................... 8
Figure 7: Windows Driver Installation .................................................................................................. 10
Figure 8: Device Manager Port ........................................................................................................... 11
Figure 9: Start Tera Term .................................................................................................................... 11
Figure 10: Setting Up the Port and Testing Connectivity via Tera Term ............................................. 12
Figure 11: SmartSnippets Studio Install Link ...................................................................................... 13
Figure 12: Automatically Install J-Link ................................................................................................. 14
Figure 13: Select SmartSnippets™ Studio Install Directory ................................................................ 14
Figure 14: Keil Lite version .................................................................................................................. 15
Figure 15: CMSIS Package Installation ............................................................................................... 15
Figure 16: CMSIS Package Installation Successful ............................................................................ 16
Figure 17: Blinky Project directory ....................................................................................................... 17
Figure 18: Blinky Project Keil Workspace ........................................................................................... 17
Figure 19: Blinky Project Options ........................................................................................................ 18
Figure 20: Blinky Project Scatter File .................................................................................................. 18
Figure 21: Blinky Project: Debug Option ............................................................................................. 19
Figure 22: Blinky Project: Jlink setup .................................................................................................. 19
Figure 23: Blinky Project: Project Building .......................................................................................... 20
Figure 24: Blinky Project: Start Debug Session .................................................................................. 20
Figure 25: Keil Lite Pop Up Window .................................................................................................... 20
Figure 26: Blinky Project: Code Execution .......................................................................................... 21
Figure 27: Blinky Project: Blinky message on COM28 terminal .......................................................... 21
Figure 28: Barebone BLE Project directory ......................................................................................... 22
Figure 29: Barebone BLE: KEIL Project Layout .................................................................................. 22
Figure 30: Barebone BLE: Interacting with BLE Application ............................................................... 23
Figure 31: Hardware Settings for Basic Development Kit ................................................................... 25
Figure 32: FTDI Latency Timer ........................................................................................................... 25
Figure 33: Setup of DA14585 Basic Development Kit during power measurement ........................... 26
Figure 34: Setup of DA14586 Basic Development Kit during power measurement ........................... 26
2 Tables
Table 1: Parameters for Connecting to UART..................................................................................... 12
Table 2: Blinky Example UART and LED Jumper Configuration ........................................................ 24
Table 3: Blinky Example SWD Debugger Jumper Configuration ........................................................ 24
Table 4: Revision history ..................................................................................................................... 28
Table 5: Status Definitions................................................................................................................... 28
Table 6: Dialog Semiconductor ........................................................................................................... 29
UM-B-048
DA14585/DA14586 Getting Started Guide with the Basic Development Kit
User Manual
Revision 2.0
09-Jul-2018
CFR0012-00 Rev 2
4 of 29
© 2018 Dialog Semiconductor
3 Terms and Definitions
BLE Bluetooth Low Energy COM Communication Port CS Chip Select DBG Debug EEPROM Electrically Erasable Programmable Memory FTDI Future Technology Devices International GPIO General Purpose Input/Output IDE Integrated Development Environment IRQ Interrupt Request LED Light Emitting Diode OS Operating System OTP One Time Programmable PC Personal Computer RF Radio frequency SDK Software Development Kit SoC System on Chip SPI Serial Peripheral Interface SRAM Static Random Access Memory SW Software SWD Serial Wire Debug TCK JTAG Test Clock TMS JTAG Test Mode Select UART Universal Asynchronous Receiver/Transmitter USB Universal Serial Bus
4 Prerequisites
Minimum hardware requirements: – Windows Operating System, 1 GHz, 32-bit or 64-bit processor – 1 GB of system memory (RAM) – 2 GB of available disk space
Basic Development Kit DA14585/586 and accessories
Serial-port terminal software (for example, Tera Term)
A USB connection supporting USB-Serial (FTDI)
UM-B-048
DA14585/DA14586 Getting Started Guide with the Basic Development Kit
User Manual
Revision 2.0
09-Jul-2018
CFR0012-00 Rev 2
5 of 29
© 2018 Dialog Semiconductor
5 Introduction
The DA14585/586 is a family of Bluetooth Smart SoC devices that operate at very low power levels while providing world-class RF performance.
The devices are available in a small footprint while still offering a large flexibility in configuration of the on-chip interfaces making them suitable for a wide range of applications. More information can be found in the DA14585 Datasheet.
The development kit includes a set of hardware (for example, a development board with an on-board debugger) and is supported by a Software Development Kit (SDK) (that is, a development toolchain, source code examples, and so on), and documentation.
The purpose of this guide is to provide an overview of the DA14585/586 Basic Development Kit Board and describe the setup of the hardware and installation of the software tools to fully use the board.
The following hardware and software elements are required to use the DA14585/586 Development Kit:
The Basic Development kit
SmartSnippets™ Studio which can be installed on Windows, see Section 8.
Windows users should download and install terminal software such as RealTerm, Putty or Tera
Term. This document uses Tera Term for its examples.
The rest of guide is organized as follows:
Section 6 describes the hardware components and their initial installation and setup.
Sections 7 and 8 describe the installation of the SmartSnippets™ DA14585/586 SDK software,
along with all necessary tools.
Section 9 contains all steps for downloading and executing your first DA14585/586 Applications.
5.1 Kit Content
The Basic Development Kit parts can be ordered via various distributors. The Basic Development Kit contains the following:
Bluetooth low energy Board
Mini USB-cable
Coin cell battery (CR2032)
UM-B-048
DA14585/DA14586 Getting Started Guide with the Basic Development Kit
User Manual
Revision 2.0
09-Jul-2018
CFR0012-00 Rev 2
6 of 29
© 2018 Dialog Semiconductor
6 The DA14585/586 Hardware
The basic Development Kit consists of a single basic Board containing the DA14585/586 BLE SoC in QFN40 package. For the schematics and layout of the board in full detail, please refer to the respective documents on the portal.
6.1 The Basic Kit board
Figure 1 illustrates the physical layout of the Basic Kit board. The basic Kit board provides the
necessary hardware to enable:
Full digital connectivity with external hardware using UART, SPI, GPIO, and I2C
USB based debugging capabilities using the SEGGER J-Link on-board debugger
Figure 1: The DA14585/586 Basic Kit
6.2 Configuring the Basic Kit Board by Jumper Settings
The DA14585/586 supports booting from UART. The jumper settings are displayed below:
Figure 2: The DA14585/586 Basic Kit Jumper Setting
UM-B-048
DA14585/DA14586 Getting Started Guide with the Basic Development Kit
User Manual
Revision 2.0
09-Jul-2018
CFR0012-00 Rev 2
7 of 29
© 2018 Dialog Semiconductor
Figure 3 shows the layout of the header jumper, J4.
Figure 3: Jumper 4 Layout
Note: Please notice that the signals connected on the DA14585/586 SoC are located on the left pins row of header J4 as shown in Figure 4.
Figure 4: Data direction of UART within J4
Note:
UART connectivity is enabled by shorting header as presented in Figure 2. UART connection between DA14585/586 and the MCU that provides communication
over USB to a PC is realized through P0_4, P0_5 (for null mode), P0_6 and P0_7 (for full UART).
For DA14585, data flash through SPI connectivity is enabled with the jumper configuration which is presented in Figure 5.
Please notice that for DA14586, this configuration is meaningless and it must be avoided. DA14586 SoC incorporates the flash internally (2Mbits).
UM-B-048
DA14585/DA14586 Getting Started Guide with the Basic Development Kit
User Manual
Revision 2.0
09-Jul-2018
CFR0012-00 Rev 2
8 of 29
© 2018 Dialog Semiconductor
Figure 5: DA14585/586 Boot from external SPI memory
6.3 Board Layout
The layout of the basic board is displayed in Figure 6.
Figure 6: DA14585/586 Basic Board layout
UM-B-048
DA14585/DA14586 Getting Started Guide with the Basic Development Kit
User Manual
Revision 2.0
09-Jul-2018
CFR0012-00 Rev 2
9 of 29
© 2018 Dialog Semiconductor
Components of Basic development kit:
U1: Dialog BLE SoC, DA14585 or DA14586 in QFN40 package. DCDC converter of SoC is
configured in Buck mode. Two crystals are used, 16MHz and 32.768 KHz.
U5 or U7: SPI data flash, MX25R2035. Two packages are available, U5 –WSON
MX25R2035FM1IH0 and U7-SOIC8 - MX25R2035FZUIL0 – (default). For DA14586, flash memory is not mounted.
U4: MCU where Segger license is applied. UART and JTAG connectivity is provided to
DA14585/586 SoC
SW1: Reset push button. By pressing the button, used can hardware reset the processor
J4: 28 pins header. Signal and power pins of DA14585/586 are provided. Also the interconnection
between BLE processor and Segger license MCU for JTAG and UART is done through jumpers.
J5: 3 pins connector. DA14585/586 can be supplied by either 3.3V generated from on the
development kit or by coin cell battery applied on the bottom side of the development kit.
J9: two pins header. It enables user LED. LED is driven from P1_0.
J10: 10 pins header. It is used for monitoring DA14585/586 port 2 pins.
J11: 10 pins header. Only P3_0 is provided on pin 1. Please notice that for DA14586, P3_0 is
not used.
Note: The schematic diagrams, BOM, and Gerber files are illustrated in detail in the
Development Kit Documentation.
6.4 Connecting the Basic Kit to the host PC
The Basic Kit includes an embedded J-Link debugger which allow easy communication with the development host over USB.
The DA14585/586 SoC is configured only in Buck mode on this development kit. A choice can be made between 3.3 V (via USB: J5 1-2) or VDD (a coin cell: J5 2-3). No battery is needed when running via the mini-USB cable.
Note: The basic Kit is connected to the host PC over the connector marked as USB (J3), as shown in Figure 6 using a standard mini-USB cable.
Loading...
+ 20 hidden pages