ALPW-BLEDVKCM3 User’s Guide ALPW-BLEDVKCM3 User’s Guide Bluetooth® Smart Cortex M3 Development kit FEATURES Complete development kit to implement Bluetooth® Low Energy Technology Built around the ALPW-BLEM103 Bluetooth® Low Energy HCI Module Embedded Cortex M3 Microcontroller Kit Contains : o ALPW-DVBCM3 Board o ALPW-BLEM103 Module soldered o User Guide APPLICATIONS Medical Devices Mobile Accessories Sport and Fitness Entertainment Devices Wireless Sensors Consumer Electronics Monitoring and Control Industrial Building Automation DESCRIPTION THE ALPW-BLEDVKCM3 is a complete development kit to ease application prototyping and implementing Bluetooth® Low Energy technology. The powerful and energy efficient Cortex M3 microcontroller enables a full integration of the ALPWISE Bluetooth® Low Energy stack and user application. The board embeds an ALPW-BLEM103 Bluetooth® Low Energy HCI module, accessible trough SPI or UART. The kit can be powered with two AAA batteries, allowing the development of standalone demonstration. www.alpwise.com ALPWISE S.A.S. – LE PULSAR, 4 Avenue Doyen Louis Weil, 38000 GRENOBLE, France Tel: +33 4 76 22 02 24– Email: [email protected] – www.alpwise.com Revision 1.0 2 ALPW-BLEDVKCM3 User’s Guide Table of contents 1 2 Order codes .................................................................................................... 4 Product Description.......................................................................................... 4 2.1 Module ..................................................................................................... 4 2.2 Development board ................................................................................... 5 2.3 Functional Block Diagram ........................................................................... 6 3 Detailed Description ......................................................................................... 7 3.1 Board Side Connectors Pin Description ......................................................... 7 3.2 Power Supply ...........................................................................................11 3.3 Board Configuration ..................................................................................12 3.3.1 Jumpers Configuration .................................................................................................. 12 3.3.2 Power Supply Configuration .......................................................................................... 13 3.3.3 Module Interface Configuration .................................................................................... 14 3.3.4 Other Configuration ...................................................................................................... 15 3.4 Clocking ..................................................................................................16 3.4.1 Microcontroller High Speed Clock ................................................................................. 16 3.4.2 Microcontroller Slow Clock ........................................................................................... 16 3.5 Reset ......................................................................................................16 Software Description .......................................................................................17 4.1 ALPWISE Bluetooth® Low Energy SDK ........................................................17 4.2 Getting started with firmware development .................................................17 5 Device operating requirements .........................................................................18 5.1 Absolute Maximum Ratings ........................................................................18 5.2 Recommended operating conditions ............................................................18 5.3 Electrical Characteristics............................................................................19 4 6 7 5.3.1 RF Electrical Characteristics ........................................................................................... 19 5.3.2 Digital Characteristics .................................................................................................... 19 Packaging ......................................................................................................19 Resources......................................................................................................19 7.1 Related Documents ..................................................................................19 7.2 Support...................................................................................................19 7.3 Sales ......................................................................................................20 7.4 Contact information ..................................................................................20 Table of figures Figure1.: ALPW-DVKCM3 board description ............................................................... 5 Figure2.: ALPW-BLEDVK block diagram .................................................................... 6 Figure3.: ALPW-BLEDVK power supply tree ..............................................................11 ALPWISE S.A.S. – LE PULSAR, 4 Avenue Doyen Louis Weil, 38000 GRENOBLE, France Tel: +33 4 76 22 02 24– Email: [email protected] – www.alpwise.com Revision 1.0 3 ALPW-BLEDVKCM3 User’s Guide 1 Order codes Below is an overview on the Alpwise Bluetooth® Low Energy development kit. Mother board : ALPW-DVBCM3 Bluetooth® Module : ALPW-BLEM103 Optional development board: ALPW-DVBBLE The optional ALPW-DVBBLE board can be connected on the ALPW-DVKCM3. This board integrates an accelerometer, a temperature sensor and user interfaces (LEDs, switches and buzzer). Furthermore, the board can be powered by a super capacitor, thus allowing an autonomous demonstration of the Bluetooth® Low Energy possibilities. 2 2.1 Product Description Module The ALPW-BLEM103 module features low power architecture with powerful power management, along with an embedded secure engine and a Host Controller Interface (HCI). The module is accessible through a SPI or USART interface, selectable with jumpers on the main board. The module is soldered on the development board. ALPWISE S.A.S. – LE PULSAR, 4 Avenue Doyen Louis Weil, 38000 GRENOBLE, France Tel: +33 4 76 22 02 24– Email: [email protected] – www.alpwise.com Revision 1.0 4 ALPW-BLEDVKCM3 User’s Guide 2.2 Development board Figure1.: ALPW-DVKCM3 board description Board side Left & Right Connectors Reset Switch ALPW-BLEM103 Module LEDs and Switch Cortex M3 Microcontroller Mini-USB Connector ALPW-BLETAG Programmation Connector SWD Connector 62 pins, 2 rows header connectors (2.54mm pitch). Used to connect the optional development board, or for user application. When connected to the microcontroller (see the jumper configuration), this switch is used to reset the microcontroller. Alpwise Bluetooth® Low Energy HCI module General purpose LEDs and switch can be used 72MHz (90MIPS), 1MByte flash size and 128kByte SRAM cortex M3 microcontroller, STM32F1x. Used as main power source, and for data communication with the microcontroller. This connector is used as an SWD adaptor to program the ALPW-BLETAG. Standard 20-pin connector for MCU programmation and debug. The ALPW-DVBCM3 is a complete Bluetooth® Low Energy Technology development board, built around a powerful M3 cortex microcontroller; this product allows to the user a full integration of the Bluetooth® Low Energy protocol stack with his own application. ALPWISE S.A.S. – LE PULSAR, 4 Avenue Doyen Louis Weil, 38000 GRENOBLE, France Tel: +33 4 76 22 02 24– Email: [email protected] – www.alpwise.com Revision 1.0 5 ALPW-BLEDVKCM3 User’s Guide 2.3 Functional Block Diagram Below is a functional block diagram. Figure2.: ALPW-BLEDVK block diagram ALPWISE S.A.S. – LE PULSAR, 4 Avenue Doyen Louis Weil, 38000 GRENOBLE, France Tel: +33 4 76 22 02 24– Email: [email protected] – www.alpwise.com Revision 1.0 6 ALPW-BLEDVKCM3 User’s Guide 3 Detailed Description 3.1 Board Side Connectors Pin Description Pin N° Signal Name 1 2 3 4 5 VBUS USB VDD 1.8V GND GND PA14 6 PA15 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 PC10 PC11 PC12 PD0 PD1 PD2 PD3 PD4 PD5 PD6 PD7 PB3 PB4 PB5 PB6 PB7 BOOT0 24 25 26 27 28 29 PB8 PB9 PE0 PE1 GND VDD_MCU 30 31 32 33 34 PE2 PE3 PE4 PE5 PE6 Type Description Left Connector Supply 5V Supply from USB Supply Regulated 1.8V output Supply Supply I/O I/O Default connection : SWD CLK I/O I/O SPI3 NSS I/O General Purpose I/O I/O General Purpose I/O I/O General Purpose I/O I/O General Purpose I/O I/O General Purpose I/O I/O General Purpose I/O I/O General Purpose I/O I/O General Purpose I/O I/O General Purpose I/O I/O General Purpose I/O I/O General Purpose I/O I/O General Purpose I/O I/O General Purpose I/O I/O General Purpose I/O I/O I2C1 SCL I/O I2CA SDA I/O Microcontroller BOOT pin Internally pulled down to ensure a proper startup from user flash. I/O General Purpose I/O I/O General Purpose I/O I/O General Purpose I/O I/O General Purpose I/O Supply Supply Regulated power supply output Depending on jumper configuration, can be 3V or 1,8V. Will be the same as the microcontroller supply I/O General Purpose I/O I/O General Purpose I/O I/O General Purpose I/O I/O General Purpose I/O I/O General Purpose I/O ALPWISE S.A.S. – LE PULSAR, 4 Avenue Doyen Louis Weil, 38000 GRENOBLE, France Tel: +33 4 76 22 02 24– Email: [email protected] – www.alpwise.com Revision 1.0 7 ALPW-BLEDVKCM3 User’s Guide 35 36 37 VBAT/VCLD_MCU PC13 PC14 Supply I/O I/O 38 PC15 39 40 GND VDD_MCU 41 PH0 I/O 42 PH1 I/O 43 44 45 46 47 48 NRST PC0 PC1 PC2 PC3 VDD_MCU I/O I/O I/O I/O I/O Supply 49 50 51 52 VREF-/VSSA_MCU VREF+_MCU VDDA_MCU PA0 Supply Supply Supply I/O 53 PA1 I/O 54 PA2 I/O 55 56 57 58 59 60 61 62 DO NOT CONNECT DO NOT CONNECT DO NOT CONNECT DO NOT CONNECT DO NOT CONNECT GND DO NOT CONNECT GND 1 2 3 VDD_3V0 VEXT_3V0 VDD_MCU I/O Supply Supply Battery Supply Controller input General Purpose I/O General Purpose I/O For I/O use, refer to the board configuration General Purpose I/O For I/O use, refer to the board configuration Regulated power supply output Depending on jumper configuration, can be 3V or 1,8V. Will be the same as the microcontroller supply General Purpose I/O For I/O use, refer to the board configuration General Purpose I/O For I/O use, refer to the board configuration Microcontroller Active low Reset General Purpose I/O General Purpose I/O General Purpose I/O Module SPI IRQ Regulated power supply output Depending on jumper configuration, can be 3V or 1,8V. Will be the same as the microcontroller supply Analogue Converters negative reference voltage Analogue Converters positive reference voltage Analogue power supply for the microcontroller USART2_CTS Used for module interface USART2_RTS Used for module interface USART2_TX Used for module interface I/O I/O I/O Supply I/O Supply I/O Supply Right Connector Supply 3V Regulated power supply Supply Input for 3V power supply Supply Regulated power supply output Depending on jumper configuration, can be 3V or 1,8V. Will be the same as the microcontroller supply ALPWISE S.A.S. – LE PULSAR, 4 Avenue Doyen Louis Weil, 38000 GRENOBLE, France Tel: +33 4 76 22 02 24– Email: [email protected] – www.alpwise.com Revision 1.0 8 ALPW-BLEDVKCM3 User’s Guide 4 5 6 GND PH2 PA13 Supply I/O I/O 7 PA12 I/O 8 PA11 I/O 9 10 PA10 PA9/SPI_NSS I/O I/O 11 12 13 PA8 PC9 PC8 I/O I/O I/O 14 PC7 I/O 15 PC6 I/O 16 17 18 19 20 21 22 23 24 25 26 27 28 PD15 PD14 PD13 PD12 PD11 PD10 PD9 PD8 PB15 PB14 PB13 PB12 VDD_MCU I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O Supply 29 30 31 32 33 34 35 36 37 38 39 40 GND PB11 PB10 PE15 PE14 PE13 PE12 PE11 PE10 PE9 PE8 PE7 Supply I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O General Purpose I/O General Purpose I/O Default Connection : SWD DATA General Purpose I/O Default Connection : USBDP General Purpose I/O Default Connection : USBDM General Purpose I/O General Purpose I/O Default Connection : SPI1 NSS Used for module interface Master Clock Output General Purpose I/O General Purpose I/O Switch Input General Purpose I/O Green LED output General Purpose I/O Red LED output General Purpose I/O General Purpose I/O General Purpose I/O General Purpose I/O General Purpose I/O General Purpose I/O General Purpose I/O General Purpose I/O General Purpose I/O General Purpose I/O General Purpose I/O General Purpose I/O Regulated power supply output Depending on jumper configuration, can be 3V or 1,8V. Will be the same as the microcontroller supply General Purpose I/O General Purpose I/O General Purpose I/O General Purpose I/O General Purpose I/O General Purpose I/O General Purpose I/O General Purpose I/O General Purpose I/O General Purpose I/O General Purpose I/O ALPWISE S.A.S. – LE PULSAR, 4 Avenue Doyen Louis Weil, 38000 GRENOBLE, France Tel: +33 4 76 22 02 24– Email: [email protected] – www.alpwise.com Revision 1.0 9 ALPW-BLEDVKCM3 User’s Guide 41 PB2 I/O 42 43 44 45 46 PB1 PB0 PC5 PC4 PA7 I/O I/O I/O I/O I/O 47 PA6 I/O 48 PA5 I/O 49 50 PA4/DAC1 VDD_MCU I/O Supply 51 52 GND PA3 Supply I/O 53 54 55 56 57 58 59 60 61 62 ALPW_WLAN1 ALPW_PCM_CLK ALPW_WLAN2 ALPW_PCM_SYNC ALPW_WLAN3 ALPW_PCM_A ALPW_WLAN4 ALPW_PCM_B VDD_ALPW_MODULE GND I/O I/O I/O I/O I/O I/O I/O I/O Supply Supply BOOT1 Pin Pulled Down General Purpose I/O General Purpose I/O General Purpose I/O General Purpose I/O SPI MOSI Used for module interface SPI MISO Used for module interface SPI SCK Used for module interface Digital to Analogue Converter output Regulated power supply output Depending on jumper configuration, can be 3V or 1,8V. Will be the same as the microcontroller supply USART2_RX Used for module interface WLAN Coexistency Module PCM bus Clock WLAN Coexistency Module PCM bus Sync WLAN Coexistency Module PCM bus data WLAN Coexistency Module PCM bus data Module Power Supply ALPWISE S.A.S. – LE PULSAR, 4 Avenue Doyen Louis Weil, 38000 GRENOBLE, France Tel: +33 4 76 22 02 24– Email: [email protected] – www.alpwise.com Revision 1.0 10 ALPW-BLEDVKCM3 User’s Guide 3.2 Power Supply The board is mainly powered through USB. Figure3.: ALPW-BLEDVK power supply tree ALPWISE S.A.S. – LE PULSAR, 4 Avenue Doyen Louis Weil, 38000 GRENOBLE, France Tel: +33 4 76 22 02 24– Email: [email protected] – www.alpwise.com Revision 1.0 11 ALPW-BLEDVKCM3 User’s Guide 3.3 Board Configuration 3.3.1 Jumpers Configuration Default Jumpers Configuration: When delivered the board has the following jumpers configuration: USB Supplied MCU is supplied through the 3V LDO SWD is connected Module SPI interface is selected ALPWISE S.A.S. – LE PULSAR, 4 Avenue Doyen Louis Weil, 38000 GRENOBLE, France Tel: +33 4 76 22 02 24– Email: [email protected] – www.alpwise.com Revision 1.0 12 ALPW-BLEDVKCM3 User’s Guide 3.3.2 Power Supply Configuration Default The USB is chosen as main supply source (USB SUPPLY jumper is set). The 3V voltage is issued from the LDO regulator. External 3V supply The USB supply is not used. The 3V voltage is issued from an external power source, connected to the right connector, pin 2. Note: The external power supply input is not protected, the user should take measure against over-voltages or overcurrent. Battery 3V supply The USB supply is not used. The 3V voltage is issued from the two AA batteries, on the bottom on the board. ALPWISE S.A.S. – LE PULSAR, 4 Avenue Doyen Louis Weil, 38000 GRENOBLE, France Tel: +33 4 76 22 02 24– Email: [email protected] – www.alpwise.com Revision 1.0 13 ALPW-BLEDVKCM3 User’s Guide Module Power supply The ALPW-BLEM103 module must have a 3V power source. The jumper must stay set on 3.0V configuration, as shown on the picture. 3.3.3 Module Interface Configuration SPI Configuration The module can be accessed through SPI. To place the board in this configuration, you must have the following jumpers configuration : Select the microcontroller interface pins: PA5, PA6, PA7 and PC3. This corresponds to the SPI1 bus connection. Note: PA0,PA1, PA2 and PA3 correspond to the UART interface, those jumpers must be unplugged for proper operation. Place the “SEL SPI” jumper. UART Configuration The module can be accessed through UART. To place the board in this configuration, you must have the following jumpers configuration: ALPWISE S.A.S. – LE PULSAR, 4 Avenue Doyen Louis Weil, 38000 GRENOBLE, France Tel: +33 4 76 22 02 24– Email: [email protected] – www.alpwise.com Revision 1.0 14 ALPW-BLEDVKCM3 User’s Guide Select the microcontroller interface pins: PA0, PA1, PA2 and PA3. This corresponds to the UART2 bus connection. Note: PA5,PA6, PA7 and PC3 correspond to the SPI interface, those jumpers must be unplugged for proper operation. Place the “SEL UART” jumper. 3.3.4 Other Configuration USB Disconnection The jumper must be set to ensure a proper USB disconnection, when the USB data transfer is used. Debug probe connection SWD : When placed, these jumpers connect the SWD signals for the connector to the microcontroller. If unset, the SWD bus will be unconnected. Note: In order to program the ALPW-BLETAG, using the Tag programming connector, the SWD jumpers must be plugged to avoid interferences. DEBUG : The debug jumper must be set for proper operation of the debug probe. ALPWISE S.A.S. – LE PULSAR, 4 Avenue Doyen Louis Weil, 38000 GRENOBLE, France Tel: +33 4 76 22 02 24– Email: [email protected] – www.alpwise.com Revision 1.0 15 ALPW-BLEDVKCM3 User’s Guide MCU Reset The “NRST3 jumper must be set to connected the switch to the reset input of the microcontroller. Is the jumper is unset, the switch will be unused and the microcontroller reset signal is accessible on pin 43 of the left connector. 3.4 Clocking 3.4.1 Microcontroller High Speed Clock The 12MHz crystal on the board provides the clock source for the microcontroller PLL. Once locked, the PLL can run at 72MHz. 3.4.2 Microcontroller Slow Clock The 32.768 kHz oscillator on the board provides the clock source for low power applications. 3.5 Reset The microcontroller can be reset by pressing the Reset switch or via the reset signal available on the board connectors. ALPWISE S.A.S. – LE PULSAR, 4 Avenue Doyen Louis Weil, 38000 GRENOBLE, France Tel: +33 4 76 22 02 24– Email: [email protected] – www.alpwise.com Revision 1.0 16 ALPW-BLEDVKCM3 User’s Guide 4 Software Description 4.1 ALPWISE Bluetooth® Low Energy SDK The ALPW-BLEDVKCM3 is delivered with the ALPW-BLESDK for Cortex M3 software. The Alpwise core stack is based on a HCI transport link (through SPI or UART). The following protocols are supported: SMP : Service Manager Protocol ATT : Attribute Protocol L2CAP : Logical Link Control and Adaptation Protocol For more information about the ALPWISE Bluetooth® Low Energy SDK, please visit our website. 4.2 Getting started with firmware development The following section describes how to get your firmware development starting, using the ALPWBLEDVKCM3 kit. SPI Configuration Refer to chapter 3 to place the board in the correct configuration to use the SPI interface. 1. I/O configuration Signal SPI1 MOSI SPI1 MISO SPI1 SCK SPI1 CS SPI IRQ BLEM103 Reset GPIO PA7 PA6 PA5 PA9 PC3 PC4 Type Output Input Output Output Input Input 2. MCU Configuration Set up the microcontroller to run for an external 12MHz reference crystal (HSE), lock the PLL at 72MHz. Configure the SPI1 bus up to 10MHz speed, with an interrupt on PC3. The interrupt will ring to indicate incoming SPI data. 3. API description For more information about available API’s, contact us. ALPWISE S.A.S. – LE PULSAR, 4 Avenue Doyen Louis Weil, 38000 GRENOBLE, France Tel: +33 4 76 22 02 24– Email: [email protected] – www.alpwise.com Revision 1.0 17 ALPW-BLEDVKCM3 User’s Guide 5 Device operating requirements 5.1 Absolute Maximum Ratings The absolute maximum ratings listed below have not been tested, and correspond to the main components specifications. Stresses beyond those limits may cause permanent damage to the module. Symbol Vext_3V Vin |Vssx – Vss| VESD(HBM) VRF_IN Tstorage 5.2 Description External Supply Voltage Input Voltage on any pin Voltage difference between all power or ground pins Electrostatic discharge (Human Body Model) Input RMS voltage to RF pin Storage temperature range Note Min -0.3 -0.3 Typ. - Max 3.5 4.0 Unit V V - - 50 mV - - 2000 V -10 -65 - +85 +150 V °C Recommended operating conditions Symbol VUSB Vbat Description USB Supply Voltage Battery Voltage Note Min Typ. Max 4.75 5.0 5.25 2.5 3.0 3.2 USB 2.0 500 Imax Overall maximum USB Input current USB 3.0 900 Isupply Supply Current for external application 800 T° Operational Temperature Range -10 +85 1 Using USB 2.0. When using other USB standard, the maximum sink current drops to 500mA. ALPWISE S.A.S. – LE PULSAR, 4 Avenue Doyen Louis Weil, 38000 GRENOBLE, France Tel: +33 4 76 22 02 24– Email: [email protected] – www.alpwise.com Unit V V mA mA °C Revision 1.0 18 ALPW-BLEDVKCM3 User’s Guide 5.3 Electrical Characteristics 5.3.1 RF Electrical Characteristics Please refer to the documentation of the ALPW-BLEM103 module for detailed RF characteristics. 5.3.2 Digital Characteristics Symbol Fmax DMIPS Tflash TRAM 6 Description Max MCU clock Frequency Maximum Dhrystone MIPS performance Flash memory size SRAM memory size Note @72MHz Min - Typ. 1024 96 Max 72 90 - Unit MHz DMIPS kB kB Packaging The ALPW-BLEDVKCM3 kit package contains: An ALPW-DVBCM3, with an ALPW-BLEM103 Bluetooth® module mounted. User Guide 7 7.1 Resources Related Documents ST Microelectronics STM32F2103VG Cortex M3 datasheet ALPW-BLEM103 Bluetooth® Low Energy HCI Module Datasheet 7.2 Support For any technical questions regarding usage of this BLE Evaluation Kit, please consider the following Email address: [email protected] ALPWISE S.A.S. – LE PULSAR, 4 Avenue Doyen Louis Weil, 38000 GRENOBLE, France Tel: +33 4 76 22 02 24– Email: [email protected] – www.alpwise.com Revision 1.0 19 ALPW-BLEDVKCM3 User’s Guide 7.3 Sales For any commercial questions regarding access of this BLE Evaluation Kit, please consider the following Email address: [email protected] 7.4 Contact information ALPWISE S.A.S LE PULSAR 4 Avenue Doyen Louis Weil 38000 GRENOBLE FRANCE http://www.alpwise.com/ Legal notices Information provided in this document is believed to be accurate and reliable. However, ALPWISE assumes no responsibility for the consequences of misused of such information, nor for any infringement of patents or other rights of third parties which may result from its use. No license is granted by implication or otherwise under any patent or patent rights of ALPWISE. Specifications mentioned in this publication are subject to change without notice. This publication supersedes and replaces all information previously supplied. ALPWISE products are not authorized for use as critical components in life support devices or systems without express written approval of ALPWISE. The ALPWISE logo is a registered trademark of ALPWISE SAS. The Bluetooth® word mark and logos are registered trademarks owned by Bluetooth SIG, Inc. and any use of such marks by Alpwise is under license. All other names are the property of their respective owners. ©2013 ALPWISE – All rights reserved www.alpwise.com ALPWISE S.A.S. – LE PULSAR, 4 Avenue Doyen Louis Weil, 38000 GRENOBLE, France Tel: +33 4 76 22 02 24– Email: [email protected] – www.alpwise.com Revision 1.0 20