User Guide
for
CSR1000/1 Development kits
Type: Draft
Version: 0.2
Release Date: Aug 17, 2011
Atlantik Elektronik GmbH
Address:Fraunhoferstr. 11a, 82152 Planegg, Germany
Phone:+49 (0) 89 89 505-0
Fax:+49 (0) 89 89 505-4134
http://www.atlantikelektronik.com
Release Record
Version Number Release Date Comments
0.1 Jul 18, 2011 First Draft Release
0.2 Aug 17, 2011 Second Draft Release
- Added sections 3.3, 4.3.5
Table of contents
1. Introduction
2. HW Platforms
2.1. CNS10020
2.2. DB-CSR1000-10050-3a
2.3. DB-CSR1001-10051-2a
3. CSR µEnergy SDK
3.1. CsConfig Tool
3.2. µEnergy xIDE
3.2.1. Creating a Hello World project
3.3. Compilation and flashing tips
4. SW Developer User Guide
4.1. Differences between BT and BTLE Stacks
4.2. Basic Source code structure
4.2.1. AppPowerOnReset
4.2.2. AppInit
4.2.3. AppProcessSystemEvent
4.2.4. AppProcessLmEvent
4.3. CSR chip related functions and interfaces
4.3.1. Timer
4.3.2. UART
4.3.3. ADC / AIOs
4.3.4. I²C
4.3.5. SPI Master
4.3.6. PIOs
Terms and Definitions
List of Tables
List of Figures
References
1. Introduction
This document is released for users and clients who are interested in CSR BTLE products and
purchased CSR1000/1 Development Kits. It is intended to provide them with all necessary
information needed for a faster development process, including descriptions on CSR low energy
HW platforms, SW development environment and tools, and also a special part for SW
developers which describes the basic CSR µEnergy code structure and programming tips with
examples.
In order not to get confused when ordering a BTLE kit, the client should know that there are two
variants that could be ordered, starting with DK and DB. DK stands for Development Kit, while
DB stands for Development Board. A DK includes the programming board (CNS10020), mini-
USB and mini-SMT cables, CSR1000/1 DB, CSR8510 USB-Dongle and the SW (µEnergy -
SDK). So, the DK-CSR1000-10048 shall include the DB-CSR1000-10050-3a, while the DK-
CSR1001-10049-2a shall include the DB-CSR1001-10051-2a. Note that both DKs could be
used for programming both CSR1000 and CSR1001 chips, which means that if the user is still
not sure which chip to use, he can purchase any DK and still be able to program both chips. To
help the user decide which chip is more appropriate for him, it is worth mentioning that the main
difference between CSR1000 and CSR1001 chips is the number of PIOs, which is 12 in the first
case and 32 in the latter [1,2].
2. HW Platforms
2.1. CNS10020
Before describing the functionality of the CNS10020 board, it is worth mentioning that all CSR
Bluetooth chips – BR/EDR and Low Energy – have two ports:
- UART: For communication with external MCUs and periphery
- SPI: For programming the Bluetooth chip itself (SPI_CLK, SPI_CSB, SPI_MISO,
SPI_MOSI)
The CNS10020 board is used for programming the CSR1000 and CSR1001 chips, similar to the
Casira-EP which is used for programming standard Bluetooth modules based on CSR chips.
The CNS10020 board also works as a USB-SPI converter, which is connected to the user’s
computer USB port via a mini-USB cable. The board has also a micro-USB-like socket, called
mini-SMT-connector that can be connected to either the DB-CSR1000-10050-3a or DB-
CSR1001-10051-2a boards via a mini-SMT cable. The mini-SMT connector provides the DB
boards with power (3V), UART pins and the four SPI pins, which are directly connected to the
CSR1000 / CSR1001 chips on the DB boards. This is presented in figure 2.1. The CNS10020
board is illustrated in figure 2.2.
- 1
- 2
前往页