STmicroelectronics STM32Cube function pack for IoT node with BLE connectivity, environmental and motion sensors (FP-SNS-MOTENV1)

Sònrachaidhean
- Product Name: STM32Cube function pack for IoT node with BLE connectivity, environmental and motion sensors(FP-SNS-MOTENV1)
- Version: 3.2 (September 16, 2025)
Fiosrachadh toraidh
Bathar-cruaidh thairisview
The product includes sample implementations for STM32 Nucleo development boards plugged on STM32 Nucleo expansion boards. Key components include motion MEMS and environmental sensors expansion board and Bluetooth Low Energy Expansion Board.
Tuairisgeul bathar-bog
The software overview includes key features of FP-SNS-MOTENV1 with an overall software architecture provided. Latest information can be found at www.st.com.
Stiùireadh airson cleachdadh bathar
Suidheachadh bathar-cruaidh
The hardware setup includes connecting the STM32 Nucleo development boards with expansion boards. Follow the specific hardware connections as described in the manual.
Suidhich bathar-bog
Ensure you have the necessary software prerequisites for setup and demo examples. Refer to the manual for details on software installation and configuration.
Bluetooth Low Energy Board Setup
For optimal performance of the SPBTLE-RF module on the X-NUCLEO-BNRG2A1 expansion board, follow the recommended sequence of board stacking.
Stiùireadh tòiseachaidh luath
STM32Cube function pack for IoT node with BLE connectivity, environmental and motion sensors (FP-SNS-MOTENV1)
Bathar-cruaidh is bathar-bog seachadview
Bathar-cruaidh thairisview
SampTha buileachadh le ri fhaighinn airson bùird leasachaidh STM32 Nucleo a tha ceangailte ri bùird leudachaidh STM32 Nucleo:
- NUCLEO-U575ZI-Q (or NUCLEO-F401RE or NUCLEO-L476RG or NUCLEO-LO53R8) + X-NUCLEO-BNRG2A1 + X-NUCLEO-IKS4A1

Motion MEMS and environmental sensors expansion board
Bathar-cruaidh thairisview (1/5)

X- NUCLEO-IKS4A1 Hardware Description (1/2)
- The X-NUCLEO-IKS4A1 is a motion MEMS and environmental sensor evaluation board system.
- This expansion board allows application development with features like Sensor HUB,camera module integration and QVAR touch/ swipe gestures.
- It is compatible with the Arduino UNO R3 connector layout, and is designed around ST’s latest sensors.
Prìomh Bathar air bòrd
- LMS6DSO16IS: MEMS 3D accelerometer (±2/±4/±8/±16 g) + 3D gyroscope (±125/±250/±500/±1000/±2000 dps) with ISPU (Intelligent Processing Unit)
- LIS2MDL: magnetometer MEMS 3D (± 50 gauss)
- LIS2DUXS12: Ultra low-power MEMS 3D accelerometer (±2/±4/±8/±16 g) with Qvar, AI, & anti-aliasing
- LPS22DF: Sensor cuideam MEMS le cumhachd ìosal agus àrd-chruinneas, 260-1260 hPa barometer toraidh didseatach iomlan
- SHT40AD1B: humidity sensor from Sensirion
- STTS22H: Meud ìosaltage, ultralow-power, 0.5 °C accuracy temperature sensor (–40 °C to +125 °C)
- LSM6DSV16X: luathaichear MEMS 3D (± 2 / ± 4 / ±8 / ± 16 g) + gyroscope 3D (± 125 / ± 250 / ± 500 / ± 1000 / ± 2000 / ± 4000 dps) le fusion sensor freumhaichte, AI, Qvar
Motion MEMS and environmental sensors expansion board
X-NUCLEO-IKS4A1 Hardware Description (2/2)

Bòrd Leudachaidh Bluetooth Ìosal Lùtha
Tuairisgeul Bathar-cruaidh
- ’S e siostam bòrd measaidh is leasachaidh Bluetooth Low Energy (BLE) a th’ anns an X-NUCLEO-BNRG2A1, air a dhealbhadh timcheall air modúl Bluetooth Low Energy BLUENRG-M2SP aig ST stèidhichte air BlueNRG-2.
- Bidh am pròiseasar BlueNRG-2 a tha sa mhodal BLUENRG-M2SP a’ conaltradh ris a’ mhicro-riaghladair STM32, a tha air a chumail air bòrd leasachaidh Nucleo, tro cheangal SPI a tha ri fhaighinn air a’ cheangail Arduino UNO R3.
Prìomh Bathar air bòrd
- BLUENRG-M2SP Bluetooth Low Energy, teisteanas FCC agus IC (FCC ID: S9NBNRGM2SP, IC: B976C-BNRGM2SP), modúl stèidhichte air pròiseasar lìonra gun uèir Bluetooth® Low Energy BlueNRG-2, a rèir BLE v5.0.
- BLUENRG-M2SP integrates a BALF-NRG-02D3 balun and a PCB antenna. It embeds 32 MHz crystal oscillator for the BlueNRG-2.
- EEPROM bus SPI sreathach M95640-RMC6TG 64-Kbit le eadar-aghaidh cloca àrd-astar

Fiosrachadh a bharrachd cudromach airson bathar-cruaidh

Chan eil leabharlann BlueNRG-2 ag obair leis a’ firmware stoc a tha air a luchdachadh ann am modúl BLE bòrd leudachaidh X-NUCLEO-BNRG2A1.
Air an adhbhar seo:
- 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.
Feumaidh tu prìnichean J12 an X-NUCLEO-BNRG2A1 a cheangal ri prìnichean an ST-Link V2-1 mar a chithear san dealbh agus na ceumannan a tha air an ath shleamhnag a leantainn.
Gu sònraichte, tha na ceanglaichean a leanas againn:
|
J12 |
ST-Ceangal V2-1 |
|
| Pinn | 1 | 1 |
| Pinn | 2 | 9 |
| Pinn | 3 | 12 |
| Pinn | 4 | 7 |
| Pinn | 5 | 15 |
Fiosrachadh a bharrachd cudromach airson bathar-cruaidh
STM32 Nucleo with Expansion boards – Hardware Overview

- install the ST BlueNRG-1_2 Flasher Utility and open it, then select the SWD tab
- Erase the flash memory of the BlueNRG-2 chip
- Download the Link Layer Only firmware for the BLE module from the following link DTM_LLOnly.bin
- Load the Link Layer Only firmware in the ST BlueNRG-1_2 Flasher Utility and then press the “Flash” button
- 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
- Ma lorgas tu duilgheadasan sam bith rè a’ phròiseas ùrachaidh, faodaidh tu feuchainn ris a’ phròiseas ath-aithris le bhith a’ dùnadh geansaidh J15 air bòrd leudachaidh X-NUCLEO-BNRG2A1.
Bathar-bog thairisview
Latest info available at www.st.com FP-SNS-MOTENV1
Tuairisgeul bathar-bog
- FP-SNS-MOTENV1 is an STM32Cube function pack, which lets you connect your IoT node to a smartphone via BLE and uses a suitable Android or iOS application, such as the ST BLE Sensor app, to view real-time motion and environmental (such as temperature, relative humidity, pressure) and sensor data.
- This package also enables advanced functions such as the sensor data fusion and accelerometer-based real-time activity recognition, carry position, gesture recognition, motion intensity recognition and real-time information about the number of steps and cadence which the user just performed with the device, i.e. cell phone.
- Together with the suggested combination of STM32 and ST devices, it can be used to develop specific wearable and environmental monitoring applications, or smart things applications in general.
- The software is available also on GitHub, where the users can signal bugs and propose new ideas through [Issues] and [Pull Requests] tabs.
Prìomh fheartan
- Complete firmware to develop an IoT node with BLE connectivity, environmental and motion sensors.
- Middleware libraries for sensor data fusion and accelerometer-based real-time activity recognition, carry position, gesture recognition, motion intensity recognition and pedometer
- Compatible with ST BLE Sensor applications for Android/iOS, to perform sensor data reading, motion algorithm features demo and firmware update (FOTA)
- Compatible with STM32CubeMX, can be downloaded from st.com and installed directly into STM32CubeMX
- Easy portability across different MCU families, thanks to the STM32Cube
- Teirmean cead an-asgaidh, furasta a chleachdadh
Setup & Demo Examples
Bathar-bog agus ro-ghoireasan eile
- STSW-LINK004
- ’S e eadar-aghaidh bathar-bog làn-ghnìomhach a th’ ann an STM32 ST-LINK Utility (STSW-LINK004) airson prògramadh meanbh-riaghladairean STM32.
- FP-SNS-MOTENV1
- Dèan lethbhreac den .zip file susbaint a’ phacaid firmware gu pasgan air a’ PC agad.
- Anns a’ phacaid tha còd stòr example (Keil, IAR, STM32CubeIDE) compatible with NUCLEO-F401RE, NUCLEO-L476RG, NUCLEO-U575ZI-Q, NUCLEO-L053R8
- ST BLE Sensor Application for Android/iOS to download from Google Play Store / iTunes
Suidhich thairisviewSTM32 Nucleo le bùird leudachaidh
Ro-ghoireasan HW

- 1x Bluetooth Low Energy Expansion Board (X-NUCLEO-BNRG2A1)
- 1x Motion MEMS and Environmental Sensor Expansion Board (X-NUCLEO-IKS4A1)
- 1x STM32 Nucleo Development Board (NUCLEO-U575ZI-Q, NUCLEO-F401RE or NUCLEO-L476RG or NUCLEO-L053R8)
- 1x inneal Android no iOS
- 1x PC with Windows 7 and above
- 1x USB type A to Mini-B USB cable for NUCLEO-F401RE, NUCLEO-L476RG and NUCLEO-L053R8
- 1x càball USB seòrsa A gu Micro-B airson NUCLEO-U575ZI-Q
For optimizing the performances of the SPBTLE-RF module present on X-NUCLEO-BNRG2A1 expansion board, it is necessary to follow this sequence of boards stack
Suidhich thairisview
Tòisich air còdadh ann am beagan mhionaidean (1/3)


- \Projects\NUCLEO-F401RE\Applications\IKS4A1\MOTENV1
- \Projects\ NUCLEO-F401RE\Examples\BootLoader
- \Projects\ NUCLEO-L053R8\Applications\IKS4A1 \MOTENV1
- \Projects\ NUCLEO-L476RG\Applications\IKS4A1 \MOTENV1
- \Projects\ NUCLEO-L476RG \Examples\BootLoader
- \Projects\ NUCLEO-U575ZI-Q\Applications\IKS4A1 \MOTENV1
Cleachd na faidhlichean binary ro-chruinnichte airson an inneal agad a chlàradh, no air neo ath-chruinnich an còd le bhith a’ cur teisteanas an inneil agad ris.

Tòisich air còdadh ann am beagan mhionaidean (2/3)
- Mar a stàlaicheas tu am faidhle binary ro-chruinnichte:
- For each applications, there is inside the package one folder called “Binary”

- Airson NUCLEO-F401RE agus NUCLEO-L476RG:
- pre-compiled FP-SNS-MOTENV1 FW that could be flashed to a supported STM32 Nucleo using the STM32CubeProgrammer at the right position (0x08004000)
- Important Note: this pre-compiled binary is compatible with the FOTA update procedure
- pre-compiled FP-SNS-MOTENV1 + BootLoader FW that could be directly flashed to a supported STM32 Nucleo using the STM32CubeProgrammer or by doing “Drag & Drop”
- Important Note: this pre-compiled binary is not compatible with the FOTA update procedure
- For NUCLEO-L053R8:
- pre-compiled FP-SNS-MOTENV1 could be directly flashed to a supported STM32 Nucleo using the STM32CubeProgrammer or by doing “Drag & Drop”.
- Airson NUCLEO-U575ZI-Q:
- pre-compiled FP-SNS-MOTENV1 could be directly flashed to a supported STM32 Nucleo using the STM32CubeProgrammer or by doing “Drag & Drop”.
- For the first installation, after the full flash erase (suggest procedure), use the STM32CubeProgrammer to set STM32 MCU user byte settings to use the bank 1 for flash the firmware and starts the application
- For each applications, there is inside the package one folder called “Binary”
Tòisich air còdadh ann am beagan mhionaidean (3/3)

How Install the code after compiling the project for NUCLEO-F401RE and NUCLEO-L476RG:
- Cuir am pròiseact ri chèile leis an IDE as fheàrr leat
- In the folder Utilities there is a scripts *.sh that makes the following operations:
- Sguab às làn-fhlasg
- Flash am BootLoader ceart san àite cheart (0x08000000)
- Flash the MOTENV1 firmware at the right position (0x08004000)
- Seo am bathar-bog a chaidh a chur ri chèile leis an IDE
- Tha am bathar-bog seo co-chòrdail ris a’ mhodh-obrach ùrachaidh FOTA
- Save a complete Binary FW that includes both MOTENV1 and the BootLoader
- Faodar am binary seo a fhlasadh gu dìreach gu bòrd STM32 le taic a’ cleachdadh an ST-Link no le bhith a’ dèanamh “Slaod is Leig às”
- Nota cudromach: chan eil am faidhle binary ro-chruinnichte a bharrachd seo co-chòrdail ris a’ mhodh-obrach ùrachaidh FOTA.
Mus cuir thu an sgriobt *.sh an gnìomh, feumar a dheasachadh gus slighe stàlaidh STM32CubeProgrammer a shuidheachadh.
- BootLoaderPath/BootLoader.bin and BinaryPath as input are required when execute *.sh script
Riaghladh Flash agus Pròiseas Tòiseachaidh

Bathar-bog Bluetooth lùth ìosal agus mothachairean
FP-SNS-MOTENV1 for NUCLEO-F401RE / NUCLEO-L476RG / NUCLEO-U575ZI-Q – Serial line monitor (e.g.Tera Term)

- Pressing the RESET User button on STM32 Nucleo board. You could see the initialization phase
- When the boards are connected to an Android or iOS device, you can see what is transmitted via BLE
Demo ExampIarrtas Braitear ST BLE les Tharview
Iarrtas Braitear ST BLE airson Android/iOS (1/6)

Iarrtas Braitear ST BLE airson Android/iOS (2/6)

Iarrtas Braitear ST BLE airson Android/iOS (3/6)
FP-SNS-MOTENV1 for NUCLEO-F401RE NUCLEO-L476RG NUCLEO-U575ZI-Q
Iarrtas Braitear ST BLE airson Android/iOS (4/6)

Iarrtas Braitear ST BLE airson Android/iOS (5/6)

- For NUCLEO-U575ZI-Q, after the boot the MOTENV1 firmware receives the new firmware from the STBLESensor application, saves it on one memory bank (either bank1 or bank2) and performs a reboot executing the new code saved on the other memory bank. A program related to a specific region can run in that region only. The MOTENV1 application, however, can swap among different flash banks and each program can run in any flash memory bank.
Iarrtas Braitear ST BLE airson Android/iOS (6/6)

NOTA: If the mems expansion board used is not compliant with the firmware or not mounted
Sgrìobhainnean & Goireasan Co-cheangailte
Tha a h-uile sgrìobhainn ri fhaighinn anns an tab DESIGN de na toraidhean co-cheangailte webduilleag
FP-SNS-MOTENV1
- DB2852: STM32Cube function pack for IoT node with BLE connectivity, environmental and motion sensors – data brief
- UM2016: Getting started with the STM32Cube function pack for IoT node with BLE connectivity, environmental and motion sensors – user manual
- Suidheachadh bathar-bog file
X-NUCLEO-BNRG2A1
- Gerber files, BOM, Sgeama
- DB4086: Bòrd leudachaidh Bluetooth Low Energy stèidhichte air a’ mhodal BLUENRG-M2SP airson STM32 Nucleo – geàrr-chunntas dàta
- UM2667: A’ tòiseachadh leis a’ bhòrd leudachaidh X-NUCLEO-BNRG2A1 BLE stèidhichte air modúl BLUENRG-M2SP airson STM32 Nucleo – leabhar-làimhe an neach-cleachdaidh
X-NUCLEO-IKS4A1
- Gerber files, BOM, Sgeama
- DB5091: Motion MEMS and environmental sensor expansion board for STM32 Nucleo – data brief
- UM3250: Getting started with motion MEMS and environmental sensor expansion board for STM32 Nucleo – user manual
Co-chomhairle www.st.com airson an liosta iomlan
Àrainneachd Leasachaidh Fosgailte STM32: Thairisview
Àrainneachd Leasachaidh Fosgailte STM32 Prototaipeadh is Leasachadh luath, aig prìs reusanta
- ’S e dòigh fhosgailte, sùbailte, furasta agus aig prìs reusanta a th’ ann an Àrainneachd Leasachaidh Fosgailte STM32 (STM32 ODE) airson innealan agus aplacaidean ùr-ghnàthach a leasachadh stèidhichte air teaghlach meanbh-riaghladairean 32-bit STM32 còmhla ri co-phàirtean ST eile den ìre as àirde a tha ceangailte tro bhùird leudachaidh. Leigidh e le prototàipeadh luath le co-phàirtean den chiad ìre a ghabhas atharrachadh gu dealbhaidhean deireannach gu sgiobalta.

Airson tuilleadh fiosrachaidh, tadhal air www.st.com/stm32ode
- © STMicroelectronics – Gach còir glèidhte. ’S e comharra-malairt clàraichte de bhuidheann chompanaidhean STMicroelectronics a th’ ann an suaicheantas corporra STMicroelectronics. Is ann leis na sealbhadairean fa leth a tha na h-ainmean eile uile.
Ceistean Cumanta
Q: How do I update the firmware for the BLE module?
A: To update the firmware for the BLE module, follow the steps outlined in the manual, which include using the ST BlueNRG-1_2 Flasher Utility and downloading the appropriate firmware image.
Sgrìobhainnean/Goireasan
![]() |
STmicroelectronics STM32Cube function pack for IoT node with BLE connectivity, environmental and motion sensors (FP-SNS-MOTENV1) [pdfStiùireadh Cleachdaiche NUCLEO-U575ZI-Q, NUCLEO-F401RE, NUCLEO-L476RG, NUCLEO-LO53R8, X-NUCLEOBNRG2A1, X-NUCLEO-IKS4A1, STM32Cube Function Pack for IoT Node with BLE Connectivity, STM32Cube, Function Pack for IoT Node with BLE Connectivity, IoT Node with BLE Connectivity, with BLE Connectivity, BLE Connectivity |

