KEMBAR78
STM 32 Cube | PDF | Android (Operating System) | Ios
0% found this document useful (0 votes)
39 views31 pages

STM 32 Cube

Uploaded by

mohd idris
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
39 views31 pages

STM 32 Cube

Uploaded by

mohd idris
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 31

Quick Start Guide

STM32Cube expansion software package with


BLE connectivity.
(X-CUBE-BLEMGR)

Version 1.3 (July 29, 2022)


Agenda

1 Hardware and Software overview

2 Setup & Demo Examples

3 Documents & Related Resources

4 STM32 Open Development Environment: Overview

2
1- Hardware and Software overview
Hardware Overview
Sample implementations are available for STM32WB Nucleo development boards plugged on
STM32 Nucleo expansion boards:

➢ P-NUCLEO-WB55 + X-NUCLEO-IKS01A3 + X-NUCLEO-53L3A2 (optional)

4
P-NUCLEO-WB55
Hardware Overview (1/3)
P-NUCLEO-WB55 Hardware Description

• The P-NUCLEO-WB55 is designed around the STM32WB55RG microcontroller in a 68-pin


VFQFPN68 package.

Key Product on board


• 2.4 GHz RF transceiver supporting Bluetooth® specification v5.0 and IEEE802.15.4-2011 PHY and
MAC
• Dedicated Arm® 32-bit Cortex® M0+ CPU for real-time Radio layer
• Three user LEDs
• Three user buttons and one reset button
• Board connector: USB user with Micro-B
• Board expansion connectors:
– Arduino™UnoV3
– Stmorpho
• Integrated PCB antenna or footprint for SMA connector
• Flexible power-supply options: ST-LINK USB VBUS or external sources
• On-board socket for CR2032 battery
• On-board ST-LINK/V2-1 debugger/programmer with USB re-enumeration capability: mass storage,
virtual COM port and debug port
Latest info available at www.st.com
P-NUCLEO-WB55

5
Motion MEMS and environmental sensors expansion board
Hardware Overview (2/3)

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.

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 LSM6DSO ST morpho connector**
• HTS221: Capacitive digital relative humidity and temperature
LPS22HH LIS2DW12 Arduino UNO R3 connector
• STTS751 Digital Temperature sensor LIS2MDL STTS751 DIL 24-pin
• DIL 24-pin Socket available for additional MEMS adapters and other sensors (UV index)
** Connector for the STM32 Nucleo Board

Latest info available at www.st.com


X-NUCLEO-IKS01A3 6
VL53L3CX Nucleo expansion board (X-NUCLEO-53L3A2)
Hardware Overview (3/3)

X-NUCLEO-53L3A2 Hardware Description

• The X-NUCLEO-53L3A2 is a ranging sensor with multi target detection


evaluation and development board designed around the VL53L3CX
sensor based on ST FlightSense™ Time-of-Flight technology.
• The VL53L3CX communicates with the STM32 Nucleo developer board
host microcontroller through an I2C link available on the Arduino UNO R3
connector.

Key Product on board


• VL53L3CX Time-of-Flight (ToF) ranging sensor with multi target detection

• 0.25, 0.5 and 1mm spacers to simulate air gaps, with the cover glass

• Cover window (made by Hornix) sample with low cross-talk ready to use / clipable on
VL53L3CX

• Two VL53L3CX breakout boards VL53L3cx

Latest info available at www.st.com


X-NUCLEO-53L3A2 7
FP-SNS-MOTENVWB1
Software Overview
Software Description
Overall Software Architecture
• The FP-SNS-MOTENVWB1 function pack for STM32Cube lets you connect your IoT node to a
smartphone via Bluetooth Low Energy (BLE) and use a suitable Android or iOS application such
as the STBLESensor app to view real-time motion, environmental (temperature, relative
humidity) and time-of-flight sensor data.
• The package also enables advanced functionality such as sensor data fusion, accelerometer-
based real-time activity recognition, carry position, gesture recognition, pedometer, motion
Intensity, compass and objects distance.
• Together with the suggested combination of STM32WB and ST devices, it can be used to
develop specific wearable and environmental applications, or smart things applications in
general.
• The software runs on the STM32WB microcontroller and includes all the necessary drivers to
recognize the devices on the STM32WB55 Nucleo development board (P-NUCLEO-WB55), X-
NUCLEO-IKS01A3 and X-NUCLEO-53L3A2 (optional) expansion boards.

Key features
• Complete firmware to develop an IoT node with BLE connectivity, environmental, motion and
time-of-flight sensors
• Middleware libraries for sensor data fusion, accelerometer-based real-time activity recognition,
carry position, gesture recognition, motion intensity recognition and pedometer.
• Compatible with ST BLE Sensor application for Android/iOS, to perform sensor data reading,
motion algorithm features and firmware update (FOTA)
• Example implementation available for the X-NUCLEO-IKS01A3 and X-NUCLEO-53L3A2
(optional) connected to a P-NUCLEO-WB55.Nucleo
• Easy portability across different MCU families, thanks to STM32Cube

Latest info available at www.st.com


FP-SNS-MOTENVWB1 8
2- Setup & Demo Examples
Setup & Demo Examples
Software and Other prerequisites

• STSW-LINK004
• STM32 ST-LINK Utility (STSW-LINK004) is a full-featured software interface for programming STM32
microcontrollers

• FP-SNS-MOTENVWB1
• Copy the .zip file content of the firmware package into a folder on your PC.
• The package contains source code example (Keil, IAR, STM32CubeIDE) compatible with P-NUCLEO-WB55

• ST BLE Sensor Application for Android/iOS to download from Google Play Store / iTunes

10
2.1- Setup Overview: STM32 Nucleo
with Expansion boards
Setup Overview
HW prerequisites

• 1x Motion MEMS and Environmental Sensor Expansion Board


(X-NUCLEO-IKS01A3)

• 1 x STM32 ranging sensor expansion board (X-NUCLEO-


53L3A2) - Optional

• 1x STM32WB Nucleo Development Board (P-NUCLEO-WB55)


P-NUCLEO-WB55 X-NUCLEO-IKS01A3
• 1x Android™ or iOS™ device
• 1x PC with Windows 7 and above
• 1x USB type A to Micro-B USB cable

X-NUCLEO-53L3A2
Micro USB (Optional)

12
Setup Overview
Start coding in just a few minutes (1/2)
www.st.com/stm32ode
1
FP-SNS-MOTENVWB1 package structure

Docs
BSP, HAL and drivers
2 3
STM32 WPAN BLE, Motion libs
Select Expansion software : Application
FP-SNS-MOTENVWB1 Download & unpack

Android™/iOS™ smartphone and


ST BLE Sensor application
6 .\Projects\STM32WB55RG-Nucleo\Applications\MOTENV1
.\Projects\STM32WB55RG-Nucleo\Applications\MOTENV1_OTA

Build/Flash and run the project

13
Setup Overview
Start coding in just a few minutes (2/2)

1. How to install the pre-compiled binary:


• For each applications, there is inside the package one folder called “Binary”

• Directly flash to a supported STM32WB Nucleo using the STM32CubeProgrammer or by doing “Drag & Drop”

2. How Install the code after compiling the project:

• Compile the project with your preferred IDE

• Download the binary to a supported STM32WB Nucleo

14
Setup Overview
Bluetooth low energy and sensors software
FP-SNS-MOTENVWB1 - Serial line monitor (e.g.Tera Term)

• Pressing the RESET User button on


STM32WB Nucleo board. You could
see the initialization phase

Configure the serial line monitor (speed, LF)

• When the boards are connected to an


Android or iOS device, you can see
what is transmitted via BLE

15
2.2- FOTA Support
FOTA support
Flash OTA and User application (1/3)
To make the OTA work, open STM32CubeProgrammer and connect to the board.
Then, follow the procedure below:
1. Erase full Flash memory

17
FOTA support
Flash OTA and User application (2/3)
2. Open BLE_Ota_reference.hex (from the MOTENV1_OTA/Binary directory)
3. Flash BLE_Ota_reference.hex at 0x8000000

18
FOTA support
Flash OTA and User application (3/3)
4. Open MOTENV1_IKS01A3_WB55RG_OTA.bin (from the MOTENV1_OTA/Binary directory)
5. Flash MOTENV1_IKS01A3_WB55RG_OTA.bin at 0x8007000

19
2.3- Demo Examples
ST BLE Sensor Application Overview
Demo Examples
ST BLE Sensor Application for Android/iOS (1/6)
Hardware Features – Android Version

DSO/DSL Acc Event


Environmental Accelerometer plot

Menu Events Multiple events Pedometer Wake Up Orientation

21
Led Status
Demo Examples
ST BLE Sensor Application for Android/iOS (2/6)
Hardware Features – Android Version

Objects distances Presence Detection Rssi & Battery

NOTE
The presence is identified inside a fixed range distances that can be modified by these line code:

#define PRESENCE_MIN_DISTANCE_RANGE 300


#define PRESENCE_MAX_DISTANCE_RANGE 800
22
in the file FLIGHT1_config.h that can find in the Inc users folder for each project.
Demo Examples
ST BLE Sensor Application for Android/iOS (3/6)

MotionAR MotionGR MotionCP MotionID MotionFX MotionPM


Middlewares – Android Version

Activity recognition Mems Gesture Carry position recognition Intensity detection Sensor fusion ecompass SW Pedometer

23
Demo Examples
ST BLE Sensor Application for Android/iOS (4/6)
To update the user application, follow the steps below:
1. Copy the new user application to your phone 3. Search for and connect to the “WBMEMS” device
FOTA Support – Android Version

2. Open ST BLE Sensor mobile app 4. Tap the menu button (top left) to open the option window,
scroll the menu option and selecting OTA Config

24
Demo Examples
ST BLE Sensor Application for Android/iOS (5/6)
5. select the board type and after Application Coprocessor reboot
6. select the binary file for OTA from your mobilephone folders
7. start OTA with the red button
FOTA Support – Android Version

25
Demo Examples
ST BLE Sensor Application for Android/iOS (6/6)
8. Leave the address to default 0x7000 and push the red button to start upload.
FOTA Support – Android Version

26
3- Documents & Related Resources
Documents & Related Resources
All documents are available in the Documentation tab of the related product webpage
FP-SNS-MOTENVWB1:
• DB3966: STM32Cube function pack for STM32WB with BLE connectivity and environmental and motion sensors – data brief
• UM2613: Getting started with the STM32Cube function pack for STM32WB with BLE connectivity and environmental and motion sensors –
user manual
• Release Notes and README within the expansion package
P-NUCLEO-WB55:
• Gerber files, BOM, Schematic
• DB3659: STM32WB Nucleo-68 pack for wireless solutions – data brief
• UM2453: Bluetooth® Low Energy and 802.15.4 Nucleo pack based on STM32WB Series microcontrollers – user manual
X-NUCLEO-IKS01A3:
• Gerber files, BOM, Schematic
• DB3851: Motion MEMS and environmental sensor expansion board for STM32 Nucleo – data brief
• UM2559: Getting started with the X-NUCLEO-IKS01A3 motion MEMS and environmental sensor expansion board for STM32 Nucleo – user
manual
X-NUCLEO-53L3A2:
• Gerber files, BOM, Schematic
• DB4226: Time-of-Flight ranging sensor with multi target detection expansion board based on VL53L3CX for STM32 Nucleo – data brief
• UM2757: Getting started with X-NUCLEO-53L3A2 multi target ranging ToF sensor expansion board based on VL53L3CX for STM32 Nucleo –
user manual

Consult www.st.com for the complete list 28


4- STM32 Open Development
Environment: Overview
STM32 Open Development Environment
Fast, affordable Prototyping and Development
• The STM32 Open Development Environment (STM32 ODE) is an open, flexible, easy, and affordable way
to develop innovative devices and applications based on the STM32 32-bit microcontroller family combined
with other state-of-the-art ST components connected via expansion boards. It enables fast prototyping with
leading-edge components that can quickly be transformed into final designs

STM32 Nucleo
STM32Cube
expansion boards
development software
(X-NUCLEO)

STM32Cube
STM32 Nucleo
expansion software
development boards
(X-CUBE)

Function Packs
(FP)

For further information, please visit www.st.com/stm32ode


30
Thank you

© STMicroelectronics - All rights reserved.


The STMicroelectronics corporate logo is a registered trademark of the STMicroelectronics
group of companies. All other names are the property of their respective owners.

You might also like