STMicroelectronics STM32Cube Quick Start Guide

Quick Start Guide
STM32Cube function pack for ultra-low power IoT node with BLE connectivity, digital microphone,
environmental and motion sensors
(FP-SNS-ALLMEMS2)
Version 2.1.0 (May 15, 2020)
Agenda
Hardware and Software overview
Documents & Related Resources
STM32 Open Development Environment: Overview
2
Setup & Demo Examples
1- Hardware and Software overview
Hardware Overview
4
Sample implementations are available for:
1. STM32 Nucleo with expansion boards
NUCLEO-F446RE (or NUCLEO-L476RG) + X-NUCLEO-CCA02M2 + X-NUCLEO­BNRG2A1 + X-NUCLEO-IKS01A2
2. STEVAL-STLKT01V1 evaluation boards
STEVAL-STLCS01V1 + STEVAL-STLCR01V1 + STEVAL-STLCX01V1
3. STEVAL-BCNKT01V1 evaluation boards
STEVAL-BCNCS01V1 + STEVAL-BCNCR01V1 + STEVAL-BCNST01V1
4. STEVAL-MKSBOX1V1 evaluation boards
Motion MEMS and environmental sensors expansion board
STM32 Nucleo with Expansion boards - Hardware Overview (1/8)
5
Latest info available at www.st.com
X-NUCLEO-IKS01A2
Key Product on board
LSM6DSL MEMS 3D accelerometer (±2/±4/±8/±16 g) + 3D gyroscope (±125/±245/±500/±1000/±2000 dps)
LSM303AGR MEMS 3D magnetometer (±50 gauss) + MEMS 3D accelerometer (±2/±4/±8/±16 g)
LPS22HB MEMS pressure sensor, 260-1260 hPa absolute digital output barometer
HTS221 Capacitive digital relative humidity and temperature
DIL 24-pin Socket available for additional MEMS adapters and other sensors (UV index)
X-NUCLEO-IKS01A2 Hardware Description
The X-NUCLEO-IKS01A2 is a motion MEMS and environmental sensor evaluation board system.
It is compatible with the Arduino UNO R3 connector layout, and is designed around ST’s latest sensors.
LPS22HB
HTS221
DIL 24-pin
Arduino UNO R3 connector
ST morpho connector**
LSM6DSL LSM303AGR
** Connector for the STM32 Nucleo Board
Motion MEMS and environmental sensors expansion board
STM32 Nucleo with Expansion boards - Hardware Overview (2/8)
Key Product on board
LSM6DSO MEMS 3D accelerometer (±2/±4/±8/±16 g) + 3D gyroscope (±125/±250/±500/±1000/±2000 dps)
LIS2DW12 MEMS 3D accelerometer (±2/±4/±8/±16 g)
LIS2MDL MEMS 3D magnetometer (±50 gauss)
LPS22HH MEMS pressure sensor, 260-1260 hPa absolute digital output barometer
HTS221: Capacitive digital relative humidity and temperature
STTS751 Digital Temperature sensor
DIL 24-pin Socket available for additional MEMS adapters and other sensors (UV index)
X-NUCLEO-IKS01A3 Hardware Description
The X-NUCLEO-IKS01A3 is a motion MEMS and environmental sensor evaluation board system.
It is compatible with the Arduino UNO R3 connector layout, and is designed around ST’s latest sensors.
Latest info available at www.st.com
X-NUCLEO-IKS01A3
DIL 24-pin
Arduino UNO R3 connector
ST morpho connector**
HTS221
LPS22HH
LSM6DSO LIS2DW12
LIS2MDL
STTS751
** Connector for the STM32 Nucleo Board
6
Bluetooth Low Energy Expansion Board
STM32 Nucleo with Expansion boards - Hardware Overview (3/8)
Key Product on board
BLUENRG-M2SP Bluetooth Low Energy, FCC and IC certified (FCC ID: S9NBNRGM2SP, IC: B976C-BNRGM2SP), module based on Bluetooth® Low Energy wireless network processor BlueNRG-2, BLE v5.0 compliant.
BLUENRG-M2SP integrates a BALF-NRG-02D3 balun and a PCB antenna. It embeds 32 MHz crystal oscillator for the BlueNRG-2.
M95640-RMC6TG 64-Kbit serial SPI bus EEPROM with high-speed clock interface
X-NUCLEO-BNRG2A1 Hardware Description
The X-NUCLEO-BNRG2A1 is a Bluetooth Low Energy (BLE) evaluation
and development board system, designed around ST’s BLUENRG-M2SP
Bluetooth Low Energy module based on BlueNRG-2.
The BlueNRG-2 processor hosted in the BLUENRG-M2SP module communicates with the STM32 microcontroller, hosted on the Nucleo development board, through an SPI link available on the Arduino UNO R3 connector.
7
Arduino UNO R3 connector
BLUENRG-M2SP
M95640-RMC6TG
Latest info available at www.st.com
X-NUCLEO-BNRG2A1
MEMS Microphones expansion board (X-NUCLEO-CCA02M2)
STM32 Nucleo with Expansion boards - Hardware Overview (4/8)
Key Product on board
MP34DT06J ultra-compact, low-power, omnidirectional, digital MEMS microphone built with a capacitive sensing element and an IC interface.
X-NUCLEO-CCA02M2 Hardware Description
The X-NUCLEO-CCA02M2 is an expansion board that has been designed around MP34DT06J digital MEMS microphone. It is compatible
with the ST morpho connector layout and with digital microphone coupon
boards such as STEVAL-MIC001V1, STEVAL-MIC002V1 and STEVAL­MIC003V1.
The X-NUCLEO-CCA02M2 embeds two MP34DT06J microphones and allows synchronized acquisition and streaming of up to 4 microphones through I²S, SPI, DFSDM or SAI peripherals.
Latest info available at www.st.com
X-NUCLEO-CCA02M2
MP34DT06J
USB ConnectorMicrophone coupons housing
Morpho connector
Arduino UNO R3 connector
8
Important Hardware Additional Information
STM32 Nucleo with Expansion boards - Hardware Overview (5/8)
9
1. For F4xx STM32 Nucleo motherboard, there is an hardware conflict between the X-NUCLEO-IKS01A2 expansion board and the X-NUCLEO-CCA02M2 expansion board through the Arduino UNO R3 extension connector. The hardware conflict is onto 5,6 and 7 pin of the CN9 arduido
a) For X-NUCLEO-IKS01A2:
In the pin 5 (SB27) and 6 (SB26) there are the interrupts INT1 and INT2 for LSM6DSL component (used for the feature hardware)
In the pin 7 (SB25) there is the interrupt for LPS22HB component
b) For X-NUCLEO-CCA02M2:
In the pin 5 (SB7) there is the clock for the Microphones
In the pin 6 (SB15) there is the clock x2 for the Microphones
In the pin 7 (SB17) there is the connection for the microphone PDM34 (solder bridge open as default)
2. For F4xx STM32 Nucleo motherboard, there is an hardware conflict between the X-NUCLEO-IKS01A3 expansion board and the X-NUCLEO-CCA02M2 expansion board through the Arduino UNO R3 extension connector. The hardware conflict is onto 5,6 and 7 pin of the CN9 arduido
a) For X-NUCLEO-IKS01A3:
In the pin 5 (SB43) and 6 (SB45) there are the interrupts INT1 and INT2 for LSM6DSL component (used for the feature hardware)
In the pin 7 (SB47) there is the interrupt for LPS22HB component
b) For X-NUCLEO-CCA02M2:
In the pin 5 (SB7) there is the clock for the Microphones
In the pin 6 (SB15) there is the clock x2 for the Microphones
In the pin 7 (SB17) there is the connection for the microphone PDM34 (solder bridge open as default)
For this reason the hardware features are not available for F4xx STM32 Nucleo motherboard (The related gpio pins is not configured).
Important Hardware Additional Information
STM32 Nucleo with Expansion boards - Hardware Overview (6/8)
10
Modifications of the X-NUCLEO-CCA02M2 board
3. With L4 STM32 Nucleo motherboard: a) before to connect the board X-NUCLEO-CCA02M2 with the STM32 L4 Nucleo
motherboard through the Morpho connector layout onto X-NUCLEO-CCA02M2 board:
close the solder bridges SB12, SB16 (red highlight) and open the solder bridges SB7, SB15 and SB17 (green highlight - To enable the signal clock from L4 Nucleo motherboard)
if additional microphones are plugged in the board, close the solder bridge SB17.
b) before to connect the X-NUCLEO-IKS01A2 expansion board with the X-NUCLEO-
CCA02M2 expansion board:
remove the solder bridge SB25 if additional microphones are plugged onto X­NUCLEO-CCA02M2 board
c) before to connect the X-NUCLEO-IKS01A3 expansion board with the X-NUCLEO-
CCA02M2 expansion board:
remove the solder bridge SB47 if additional microphones are plugged onto X­NUCLEO-CCA02M2 board
Important Hardware Additional Information
STM32 Nucleo with Expansion boards - Hardware Overview (7/8)
11
BlueNRG-2 library does not work with the stock firmware that is loaded in the BLE module of X-NUCLEO-BNRG2A1 expansion board.
For this reason:
first of all, it is needed to solder on X-NUCLEO-BNRG2A1, if it is not soldered, a 0 Ohm resistor at R117.
Then you can use a standard ST-Link V2-1 with 5 jumper wires female-female together with STSW-BNRGFLASHER software tool (currently available only for
Windows PC) in order to update the firmware of the BLE module of X-NUCLEO-
BNRG2A1.
You need to connect the J12 pins of the X-NUCLEO-BNRG2A1 to the pins of the ST-Link V2-1 as shown in the picture and follow the steps show in the next slide.
In particular we have the following connections:
J12 ST-Link V2-1
Pin 1 1 Pin 2 9 Pin 3 12 Pin 4 7 Pin 5 15
Important Hardware Additional Information
STM32 Nucleo with Expansion boards - Hardware Overview (8/8)
12
1. install the ST BlueNRG-1_2 Flasher Utility and open it, then select the SWD tab
2. Erase the flash memory of the BlueNRG-2 chip
3. Download the Link Layer Only firmware for the BLE module from the following link DTM_LLOnly.bin
4. Load the Link Layer Only firmware in the ST BlueNRG-1_2 Flasher Utility and then press the "Flash" button
5. If you need to restore the stock firmware of the BLE
module of X-NUCLEO-BNRG2A1, you can repeat the procedure using this firmware image DTM_Full.bin
6. If you should find some issues during the update process, you can try to repeat the procedure closing the J15 jumper on the X-NUCLEO-BNRG2A1 expansion board.
BlueCoin Starter kit (STEVAL-BCNKT01V1)
Hardware Overview
BlueCoin Starter kit Hardware Description
STEVAL-BCNKT01V1 is the starter kit for the BlueCoin board (STEVAL-BCNCS01V1), a highly integrated
development and prototyping platform for augmented acoustic and motion sensing, aiming to improve system design cycle and accelerate delivery of results
Two host boards are also provided as part of the kit:
The CoinStation provides audio output, battery management and two Time-of-flight ranging sensors.
The Cradle is a small host board featuring USB and SD card interfaces, it is useful for on-the-field testing and
data acquisition campaigns.
Key Product on board
BlueCoin module (STEVAL-BCNCS01V1) with STM32F446, LSM6DSM, LSM303AGR, LPS22HB, 4x MP34DT06J, BlueNRG­MS, BALF-NRG-01D3, STBC03JR
CoinStation (STEVAL-BCNST01V1) board
BlueCoin Cradle (STEVAL-BCNCR01V1)
130 mAh Li-Po battery
Plastic box for housing the BlueCoin cradle and the battery
SWD programming cable
Latest info available at www.st.com
STEVAL-BCNKT01V1
Loading...
+ 29 hidden pages