Page 1
The package also enables advanced functions, such as presence detection inside a fixed range distance. This package, together with the suggested combination of the STM32 and ST devices, can be used to develop wearable applications or smart thing applications in general.
UM2026 Acronyms and abbreviations Acronyms and abbreviations Table 1. Acronyms and abbreviations Acronym Description Bluetooth low energy Time-of-Flight UM2026 - Rev 11 page 2/38...
UM2026 FP-SNS-FLIGHT1 software description FP-SNS-FLIGHT1 software description Overview The key features of the FP-SNS-FLIGHT1 package are: • Complete firmware to develop an IoT node with BLE connectivity, and Time-of-Flight sensors • Compatible with STBLESensor application for Android/iOS to perform distance data reading and firmware update (FOTA) •...
Figure 1. FP-SNS-FLIGHT1 software architecture Folder structure Figure 2. FP-SNS-FLIGHT1 package folder structure The following folders are included in the software package: • Documentation: contains a compiled HTML file generated from the source code, detailing the software components and APIs.
UM2026 FP-SNS-FLIGHT1 software description Flash management For NUCLEO-F401RE, NUCLEO-L476RG and NUCLEO-U575ZI-Q the FP-SNS-FLIGHT1 uses the Flash memory to: 1. Save firmware information (node name, firmware ID, etc.) in the dedicate flash address. 2. Allow the Firmware-Over-The-Air update. For NUCLEO-F401RE and NUCLEO-L476RG, to enable these features, the whole Flash is divided into the following distinct regions: 1.
2. replaces its content with the FOTA 3. erases the “magic number” used to check FOTA presence 4. restarts the board If there is no FOTA available, the boot loader jumps directly to the FP-SNS-FLIGHT1 firmware. UM2026 - Rev 11 page 6/38...
UM2026 FP-SNS-FLIGHT1 software description Figure 5. FP-SNS-FLIGHT1 Flash structure 2.5.2 NUCLEO-U575ZI-Q boot process The FLIGHT1 firmware uses the dual bank flash features to allow firmware over-the-air update of a running program without using the bootloader. For the first installation, after the full flash erases (suggest procedure), use...
• precompiled FLIGHT1 plus BootLoader firmware to be directly flashed to a supported STM32 Nucleo development board with the ST-LINK or via drag and drop (STM32 Nucleo boards only) Note: This precompiled binary is not compatible with the FOTA update procedure.
To update the firmware, the STBLESensor application sends the update size (bytes) and its associated CRC (cyclic redundancy check) value to the FP-SNS-FLIGHT1. Once the update has been received, the FP-SNS- FLIGHT1 uses the hardware CRC calculation unit included in the processor to check update integrity.
UM2026 FP-SNS-FLIGHT1 software description APIs Detailed technical information regarding the APIs available to the user can be found in a compiled HTML file located inside the “Documentation” folder of the software package, where all the functions and parameters are fully described.
UM2026 FP-SNS-FLIGHT1 software description Figure 12. UART console output When an Android/iOS device is connected to the NUCLEO-F401RE or NUCLEO-L476RG or NUCLEO-U575ZI-Q board, it is possible to control data transmitted by the board (see the following figure). UM2026 - Rev 11...
UM2026 FP-SNS-FLIGHT1 software description Figure 16. STBLESensor (Android version) menu selection If the debug console is enabled, stdin is displayed and any message written triggers a reply with the same message if the command line is not recognized, as shown below.
UM2026 FP-SNS-FLIGHT1 software description Figure 18. STBLESensor (Android version) Debug console - help command [ToF Objects Detection] shows the distances of the detected objects (up to four objects) or the person presence. UM2026 - Rev 11 page 18/38...
UM2026 FP-SNS-FLIGHT1 software description Figure 20. STBLESensor (Android version) ToF Objects Detection - presence The presence is identified inside a fixed range distance that can be modified by the following defines: • #define PRESENCE_MIN_DISTANCE_RANGE 300 • #define PRESENCE_MAX_DISTANCE_RANGE 800 in Applications\FLIGHT1\Inc\FLIGHT1_config.h.
UM2026 FP-SNS-FLIGHT1 software description Figure 21. STBLESensor (Android version) LED switch page With the board configuration page a few firmware details can be shown. The image below shows the available commands: Figure 22. STBLESensor (Android version) Board Configuration UM2026 - Rev 11...
UM2026 FP-SNS-FLIGHT1 software description Figure 23. STBLESensor (Android version) Board Configuration - Commad Version Firmware, Info, Help A new IoT node name can selected and firmware download or swap memory bank can be do, too. Figure 24. STBLESensor (Android version) Board Configuration - Commad Firmware Download, Swap...
UM2026 FP-SNS-FLIGHT1 software description 2.11 Firmware over-the-air (FOTA) update with STBLESensor If the Firmware upgrade option menu is selected in the STBLESensor main application page, the following page appears. Figure 25. STBLESensor (Android version) firmware upgrade page STBLESensor application shows which version of the...
Figure 26. STBLESensor (Android version) firmware update file selection STBLESensor sends an update of a certain byte size and corresponding CRC value to FP-SNS-FLIGHT1. The figure below shows the terminal window with the debug information returned during FOTA for the STM32...
UM2026 FP-SNS-FLIGHT1 software description Figure 27. Terminal window information during FOTA During the FOTA procedure, the STBLESensor application shows the remaining packets to be sent and the total update time when the procedure ends. UM2026 - Rev 11 page 25/38...
STM32 microcontroller line. The Arduino connectivity support and ST morpho connectors make it easy to expand the functionality of the STM32 Nucleo open development platform with a wide range of specialized expansion boards to choose from.
The expansion board features the Bluetooth v5.2 compliant and FCC certified BlueNRG-M2SP application processor module based on the ST BlueNRG-2 System-on-Chip. This SoC manages the complete Bluetooth® Low Energy stack and protocols on its Cortex-M0 core and programmable flash memory, which can accommodate custom applications developed using the SDK.
X-NUCLEO-53L3A2 expansion board X-NUCLEO-53L3A2 expansion board is designed around the VL53L3CX ranging sensor and is based on the ST patented FlightSense technology. The expansion board is delivered with two VL53L3CX breakout boards. To allow the user to validate the VL53L3CX...
STM32 Nucleo equipped with time-of-flight sensor and BlueNRG expansion boards: • FP-SNS-FLIGHT1: a Bluetooth low energy and Time-of-Flight sensors software for STM32Cube. The SNS-FLIGHT1 firmware and related documentation is available on www.st.com. • Development tool-chain and Compiler: The...
STM32 Nucleo and sensor expansion board setup STM32 Nucleo development board integrates the ST-LINK/V2-1 debugger/programmer. You can download the relevant version of the ST-LINK/V2-1 USB driver by searching STSW-LINK008 or STSW-LINK009 www.st.com (based on your version of Microsoft Windows). Connect the expansion boards through the Arduino UNO R3 extension connector as shown in the following pictures.
UM2026 System setup guide Figure 34. STM32 Nucleo development board plus X-NUCLEO-BNNRG2A1 and X-NUCLEO-53L3A2 expansion boards Note: You must connect the boards in the sequence shown above to optimize the performance of the BlueNRG-2 module on the X-NUCLEO-BNRG2A1 expansion board and to reduce interference from its antenna. UM2026 - Rev 11 page 32/38...
UM2026 List of tables List of tables Table 1. Acronyms and abbreviations ............2 Table 2.
Page 37
BootLoader and FP-SNS-FLIGHT1 installation ........
Page 38
ST’s terms and conditions of sale in place at the time of order acknowledgment. Purchasers are solely responsible for the choice, selection, and use of ST products and ST assumes no liability for application assistance or the design of purchasers’...
Need help?
Do you have a question about the FP-SNS-FLIGHT1 and is the answer not in the manual?
Questions and answers