Download Print this page
ST STM32Cube Quick Start Manual
ST STM32Cube Quick Start Manual

ST STM32Cube Quick Start Manual

Function pack for high speed datalogging and ultrasound processing
Hide thumbs Also See for STM32Cube:

Advertisement

Quick Links

Quick Start Guide
STM32Cube function pack for high speed
datalogging and ultrasound processing
(FP-SNS-DATALOG2)
Version 3.0 – Jan '25

Advertisement

loading
Need help?

Need help?

Do you have a question about the STM32Cube and is the answer not in the manual?

Questions and answers

Summary of Contents for ST STM32Cube

  • Page 1 Quick Start Guide STM32Cube function pack for high speed datalogging and ultrasound processing (FP-SNS-DATALOG2) Version 3.0 – Jan ’25...
  • Page 2 Agenda Hardware and Software overview Setup & Demo Examples Documents & Related Resources...
  • Page 3 1 - Hardware and Software overview...
  • Page 4 The STWIN.box kit consists of an STWIN.box core system, a 480mAh LiPo battery, an adapter for the ST-LINK debugger (STEVAL-MKIGIBV4), a plastic case, an adapter board for DIL 24 sensors and a flexible cable.
  • Page 5 • A plastic case with M3 bolts; • A 480 mAh 3.7 V LiPo battery; • The STEVAL-MKIGIBV4 ST-LINK adapter with programming cable; • The STEVAL-C34DIL24 adapter board for DIL24 sensors with the STEVAL-MKIGIBV4 + Cable STEVAL-FLTCB01 flexible cable. STLINK Adapter (V2, V2.1) STEVAL-STWBXCS1 STWIN.box Core System...
  • Page 6 (STTS22H) sensors • Optimal high frequency performance (up to 6kHz) • Exposed pad on bottom side for thermal coupling 2.5cm • 34-pin slave connector, compatible with STWIN.box and other ST Evaluation boards • 34-pin flex cable included • 4x fixing holes 2.5cm...
  • Page 7 STWIN.box expansion with 6 axis + ISPU (ISM330IS) and Temperature (STTS22H) sensors • Optimal high frequency performance • Exposed pad on bottom side for thermal coupling 2.5cm • 34-pin slave connector, compatible with STWIN.box and other ST Evaluation boards • 34-pin flex cable included • 4x fixing holes 2.5cm...
  • Page 8 • Total conversion time: 128µs to 32.768ms • Load voltage sensing: 0 to 60V • Load current sensing up to 10A • 34-pin slave connector, compatible with STWIN.box and other ST Evaluation boards • 34-pin flex cable included • Fixing holes...
  • Page 9 STWIN.box Modular platform expansion - STEVAL-PDETECT1 Hardware Overview Presence Detection add-on for STWIN.box Add-on evaluation kit connected to STWIN.box targeting human presence applications. Key Sensor Products: • VD6283TX45/1 Ambient Light Sensor • VL53L8CXV0GC Proximity Sensor • STHS34PF80 Far Infrared TMOS sensor The kit includes: •...
  • Page 10 STWIN.box Modular platform expansion - STEVAL-PDETECT1 Optional Mounting Holders • Example 3D CAD Holders are available on st.com- STEVAL- PDETECT1 page under CAD Resources • Holder examples available for mounting either 1 STEVAL-PDETECT1 board or 3 STEVAL-PDETECT1 boards along with the STEVAL- STWINBX1 •...
  • Page 11 Latest info available at • Modular architecture, expandable via on-board connectors: STMOD+ and 40-pin flex general purpose expansions, 12-pin www.st.com/stwin male plug for connectivity expansions, 12-pin female plug for sensing expansions • Other kit components: Li-Po battery 480 mAh, STLINK-V3MINI debugger with programming cable, Plastic box...
  • Page 12 NFC tag. The board can be easily connected via Bluetooth to the ST BLE Sensor app on your smartphone, from which the box kit can be enjoyed in Base and Expert mode. In Pro mode, professional users can exploit the firmware programming and debugging interface in the STM32 ODE for developing their firmware from scratch.
  • Page 13 • Bluetooth® Low Energy from STMicroelectronics • MEMS sensors from STMicroelectronics • 2 user LEDs, User and Reset push-button Latest info available at • On-board STLINK-V3E debugger/programmer with USB re-enumeration capability: mass storage, Virtual COM port, and https://www.st.com/en/evaluation debug port -tools/b-u585i-iot02a.html...
  • Page 14 • IMP34DT05 MEMS digital omnidirectional microphone (-26 dBFS, ±3 dB sensitivity) • DIL 24-pin socket available for additional MEMS adapters and other sensors • Free comprehensive development firmware library and samples for all sensors compatible with STM32Cube firmware • Available I²C sensor hub features on ISM330DHCX •...
  • Page 15 MKI153V1, STEVAL-MKI240KA and STEVAL-MKI223V1K add-ons for STEVAL- MKBOXPRO. The ST High Speed Datalog is part of the ST Edge AI Suite, which is an integrated collection of software tools designed to facilitate the development and deployment of embedded AI applications.
  • Page 16 DATALOG2 demonstration Optimized STM32 FW Supports streaming of all Sensors at Full data rate Device configuration (Device Template/PnPL) Raw Data streaming PnPL Sensors Card JSON config file Card Sensor Python SDK PnPL Manager Engine Real-time Plot GUI • Based on AzureRTOS •...
  • Page 17 2 - Setup & Demo Examples...
  • Page 18 • 2 type-C USB cables + 1 STLINK-V3MINIE • In alternative it is also possible to directly program the STWIN.box with a single USB-C cable (refer to firmware update – USB) • 1 micro-SD card • 1 smartphone with ST BLE Sensor App...
  • Page 19 HW prerequisites • 1 B-U585I-IOT02A, X-NUCLEO-IKS02A1 with NUCLEO-U575ZI-Q or with NUCLEO-H7A3ZI-Q • Laptop/PC • 2 USB cables NUCLEO-H7A3ZI-Q NUCLEO-U575ZI-Q USB Cables X-NUCLEO-IKS02A1 B-U585I-IOT02A...
  • Page 20 • If you are interested in FW debugging, programming connector is natively compatible with STLINK-V3 debuggers family (STLINK-V3SET or STLINK-V3MINI). STLINKV3 programmers are NOT included in STWIN.box and SensorTile.box PRO kits. • Alternatively, to offer more alternatives, an adapter to ST-Link V2-1 (STM32-Nucleo) or standard JTAG connector is included in the kit.
  • Page 21 • Download and install STM32CubeProgrammer • DATALOG2 – PDetect – UltrasoundFFT • Download the FP-SNS-DATALOG2 package from www.st.com, copy the .zip file contents into a folder on your PC. The package contains binaries and source code with project files (Keil, IAR, STM32CubeIDE) •...
  • Page 22 Samples demonstrations www.st.com Package structure Docs BSP, HAL Select: drivers FP-SNS-DATALOG2 Download & unpack Sample applications Visualize log of sensors data and Use the pre-compiled binaries or re-compile the code control the device customizing your device configuration...
  • Page 23 The default firmware for STWIN.box enables Bluetooth pairing via NFC and fast firmware over-the-air upgrade through the ST BLE Sensor app. By turning on Bluetooth and NFC on the smartphone and placing the smartphone on top of the NFC antenna of the STWIN.box, the smartphone reads the...
  • Page 24 Firmware Update – FFOTA for STWIN, STWIN.box and SensorTile.box PRO STWIN, STWIN.box, and SensorTile.box PRO can be connected to the ST BLE Sensor app by manually opening the application. During BLE pairing, if requested, you must insert the following PIN: 123456.
  • Page 25 Firmware Update – FFOTA for STWIN, STWIN.box and SensorTile.box PRO To update the firmware, you can simply follow the above procedure:...
  • Page 26 Firmware Update – FFOTA for STWIN, STWIN.box and SensorTile.box PRO Once the download is finished, the new firmware restarts automatically. To reconnect to the BLE Sensor app, restart the app if needed. In the Board Configuration tab, you can also swap between two firmware versions already loaded into the STWIN, STWIN.box, or SensorTile.box PRO flash, download new firmware, or upgrade the current firmware with the latest available.
  • Page 27 Firmware Update – ST-LINK An alternative way is to use the precompiled binary provided in the package (i.e., Projects\STM32U585AI- STWIN.box\Applications\PDetect\Binary) To update the firmware: • Connect the board to the preferred programmer (here we are using STLINK-V3MINIE). • Connect both boards to a PC through the proper USB cables.
  • Page 28 Firmware Update – USB STEVAL-STWINBX1, STEVAL-STWINKT1B, and STEVAL-MKBOXPRO can also be reprogrammed via USB using the STM32CubeProgrammer in USB mode. To enter firmware upgrade mode, follow the procedure below: 1. Unplug the core system board. 2. Press the USR button in STWIN and STWIN.box, or the DFU button in SensorTile.box PRO.
  • Page 29 Both banks can be used, but to debug the code using one of the compatible IDEs and debuggers, you need to ensure that the active flash bank is the first one by checking: Via ST BLESensor app in Board Via STM32CubeProgrammer app in Option bytes Configuration > Firmware Swap...
  • Page 30 2.1 – DATALOG2 and PDetect* Demonstration * PDetect available only for STWIN.box...
  • Page 31 2.1.1 - USB sensor data streaming Command Line Interface...
  • Page 32 cli_example overview • The command-line example is in the Utilities folder. It is available for Windows 32-bit and 64-bit, Linux, and Raspberry Pi platforms. • USB_DataLog_Run.bat and USB_DataLog_Run.sh scripts provide a ready-to-use example. • If needed, the application can receive the following parameters: timeout (-t), device configuration file (-f), and UCF file for the machine learning core or intelligent sensor processing unit (-u).
  • Page 33 Use one of the available device configuration examples in Utilities/STWIN.box_config_examples • Configure the board through ST BLE Sensor or Real Time Plot GUI For backward compatibility, it is still possible to define a custom sensor configuration by editing one of the available examples. Be aware that it is an Note: ODR (Output Data Rate) and FS (Full Scale) fields are error-prone procedure we do not recommend.
  • Page 34 Run the application • Double-click on the USB_DataLog_Run batch script. • The application starts, and the command line appears, showing information about the connected board. • Press [Enter] to start the acquisition. • The application stops automatically if a timeout is set. •...
  • Page 35 2.1.2 - USB sensor data streaming Real Time Plot...
  • Page 36 From HSDPython_SDK to STDATALOG-PYSDK • From FP-SNS-DATALOG2 v3.0.0, HSDPython_SDK has been expanded and moved to a separate software product: STDATALOG-PYSDK • The STDATALOG-PYSDK is a comprehensive Python framework designed to facilitate the capture, processing, and visualization of data from a wide range of sources, including sensors, algorithms, simulated signals, and telemetry from actuators.
  • Page 37 Execute stdatalog_GUI.py • stdatalog_GUI.py works within the STDATALOG-PYSDK, developed in Python 3.12 on Windows and Linux environments. • STDATALOG-PYSDK requires different Python modules. The package is distributed with installers that solve all the required dependencies • Please see the full documentation available on the STDATALOG-PYSDK landing page to install the SDK properly on your machine •...
  • Page 38 stdatalog_GUI.py • Once the connection is established, you can: • Enable or disable the needed sensors. • Set up data rate, full scale, and timestamps. • Retrieve sensor status. • Load UCF to set up an MLC (machine learning core) or an ISPU (intelligent sensor processing unit).
  • Page 39 stdatalog_GUI.py • Real Time Plot GUI also allows you to: • Send a UCF configuration file and visualize outputs. • Set up tag classes and handle data tagging and labeling of an ongoing acquisition. • Enable FFT calculation for accelerometers and microphones.
  • Page 40 stdatalog_GUI.py • FP-SNS-DATALOG2 also provides PDetect, a dedicated example for human presence and motion detection. • A new set of enriched widgets and sensor parameters has been added to fully support the available sensors.
  • Page 41 stdatalog_GUI.py • Furthermore, you can set up Automode to start the datalog operations or to pause all executions for specific periods. • Set up the desired values in the Automatic Mode widget • Automode section for further details...
  • Page 42 stdatalog_GUI.py • Once the test is concluded, you can also check and plot the entire dataset by clicking on the "Plot the last acquisition" button.
  • Page 43 2.1.3 – Data logging on SD card, configuration with BLE Sensor App * * Only for STWIN.box, STWIN and SensorTile.box PRO...
  • Page 44 ST BLE Sensor App: DATALOG2 tab • DATALOG2 and PDetect applications can be controlled via Bluetooth using the ST BLE Sensor app (for both Android and iOS – v5.2 and above), which lets you manage the board and sensor configurations, start/stop data acquisition on the SD card, and control data labeling.
  • Page 45 Configure MLC • You can also: • send a UCF configuration file to set up an MLC (Machine Learning Core) or an ISPU (Intelligent Sensor Processing Unit). The UCF file can be retrieved either from the smartphone memory or from cloud storage (e.g., Google Drive, Microsoft OneDrive, etc.)
  • Page 46 Acquisition settings and control • By clicking the tags button, you can switch to the acquisition settings and control tab to: • start and stop an acquisition (to an SD card) • choose which tag classes will be used for the next acquisition •...
  • Page 47 2.1.4 – Data logging on SD card, standalone mode * Only for STWIN.box, STWIN and SensorTile.box PRO...
  • Page 48 Start an acquisition in standalone mode • DATALOG2 and PDetect can also work standalone, saving all the sensor data at the highest possible rate onto the SD card. • DATALOG2 and PDetect can read a custom sensor configuration from the SD card root folder. To do so, you can simply save a JSON configuration file in the root folder of the SD card (same as described in 2.1.1).
  • Page 49 Automode • PDetect also features the automode, which can be initiated automatically at the device power-up or reset. • This mode can be used to start the datalog operations or to pause all the executions for a specific period by putting the sensor node in the "idle"...
  • Page 50 Automode • As for the standalone mode, to enable the automode you must set up the automode component properly in the device_config.json: • enabled: if true, the automode starts after the reset and node initialization. If false, automode is not executed. •...
  • Page 51 2.1.5 – FTP Data Retrieving over Wi-Fi * * Only for STWIN.box...
  • Page 52 ST BLE Sensor App: Wi-Fi configuration • On STWIN.box running the DATALOG2 example, the data stored on the SD card can be retrieved via the FTP protocol over Wi-Fi. • Default Wi-Fi firmware module can’t be compatible with DATALOG2 recent versions.
  • Page 53 ST BLE Sensor App: Wi-Fi configuration • Once the Wi-Fi connection is configured, an FTP server is automatically initialized in STWIN.box and the related IP address will be available in the IP field of the BLE widget. • To retrieve the data stored on the SD card, you can use any FTP client application.
  • Page 54 FTP Client – Connection settings • In this guide we use a Windows 10 PC with FileZilla FTP Client • filezilla-project.org • Go to “Site Manager” • “New Site” • Host: IP address from the mobile App • Logon Type: Normal •...
  • Page 55 FTP Client – Data transfer • The list of available folders and files appears on the right. • Right-click on one acquisition and click “Download.” • The folder will be copied to the selected folder on the PC (left). • It is recommended to transfer the entire folder and not just a single file.
  • Page 56 2.3 – UltrasoundFFT for STWIN.box...
  • Page 57 FP-SNS-DATALOG2 - UltrasoundFFT UltrasoundFFT example represents the evolution of the well-known example available for STEVAL-STWINKT1B in X-CUBE-MEMSMIC1 package. The example has been redesigned to support STEVAL-STWINBX1: → New FW: • Redesigned based on eLooM framework • SensorManager + EMData + DPU →...
  • Page 58 FP-SNS-DATALOG2 - UltrasoundFFT ultrasound_fft_app.py is based on the same Python SDK and modules developed for stdatalog_GUI.py. Following the same procedure described in 2.1.2, once launched the acquisition, you can: • Click on Connect button to allow the connection between the board and the PC •...
  • Page 59 3 - Documents & Related Resources...
  • Page 60 Documents & Related Resources FP-SNS-DATALOG2: • DB4865: STM32Cube function pack for high speed datalogging and ultrasound processing– databrief • UM3106: Getting started with the STM32Cube function pack for high speed datalogging and ultrasound processing – user manual STEVAL-STWINBX1: • Gerber files, BOM, Schematic •...
  • Page 61 • DB5041: iNemo inertial module with embedded ISPU and temperature sensor expansion kit – databrief • UM3192: Getting started with the STEVAL-C34KAT2, iNemo inertial module with embedded ISPU and temperature sensor expansion kit – user manual Visit www.st.com for the complete list...
  • Page 62 Gerber files, BOM, Schematic • DB4015: Motion MEMS and microphone MEMS expansion board for STM32 Nucleo – databrief • UM2633: Getting started with the X-NUCLEO-IKS02A1 industrial motion MEMS sensor expansion board for STM32 Nucleo – user manual Visit www.st.com for the complete list...
  • Page 63 4 - STM32 Open Development Environment: Overview...
  • Page 64 STM32Cube software. A set of free-of-charge tools and embedded software bricks to enable fast and easy development on the STM32, including a Hardware Abstraction Layer, middleware and the STM32CubeMX PC-based configurator and code generator...
  • Page 65 Touch controller ACCESS LED drivers • Select your development environment (IAR EWARM, Keil MDK, and GCC-based IDEs) and use the free STM32Cube tools and software. ACTUATE Stepper motor driver Move DC & BLDC motor driver •...
  • Page 66 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.