Flashing SensorTile Firmware¶
Data Collection Firmware
In the links below you can find the firmware for flashing a SensorTile device with data collection firmware for use with SensiML Data Capture Lab.
Accelerometer/Gyroscope (1660, 833, 416, 208, 104, 52, 26 Hz) Audio (16 Khz)
Accelerometer/Gyroscope (416, 208, 104, 52, 26 Hz) Audio (16 Khz)
Data Collection Firmware is required to record data with Data Capture Lab. Data collection firmware uses large portions of RAM to enable SD card collection, and is disabled when running a Knowledge Pack.
Firmware Source Code
Firmware source code for both data capture and recognition can be found on Bitbucket at https://bitbucket.org/sensimldevteam/sensiml_sensortile_project/src/master.
Configuring your Nucleo Board for the first time¶
Obtain ST-LINK device such as a STM32 Nucleo board, which bundles an ST-LINK V2.1 debugger and programmer.
Download and install ST-Link Utility from STMicro for flashing
When you first receive your Nucleo board there is a first time setup step. (Full Documentation: STM SensorTile Documentation under UM2101 user manuals)
Nucleo Boards First Time Setup
Ensure that both jumpers on CN2 are OFF
Connect an external ST-LINK to the SWD connector on the cradle paying attention to the polarity of the connectors. (a 5-pin flat cable is provided in the SensorTile Kit package)
Pin 1 on the STM and Sensor Tile is identified by:
A small circle on the PCB silkscreen – STM32 Nucleo board and SensorTile cradle expansion
The square shape of the soldering pad – connector on the SensorTile cradle
Pin 1 on the flat-cable is identified by a small triangle on the connector
STM32 Nucleo board, cradle and cradle expansion SWD connectors
SWD connections with 5-pin flat cable
Connecting to the SensorTile Board¶
See Pictures for the connection between your Nucleo board and your assembled SensorTile.
Nucleo and connected SensorTile
Close up view of SensorTile connection
Viewing Knowledge Pack Recognition Results¶
When a Knowledge Pack is flashed on the board, the classification results can be viewed by connecting to the virtual COM port in a terminal application. Follow the steps below for viewing the recognition results:
Plug in your SensorTile device via serial USB cable
Open a terminal emulator (such as Tera Term)
Set your serial speed to 115200
Create a new connection to your SensorTile device COM port
You will now see classification results printed in the terminal
Advanced: SensorTile SDK Integration¶
(Optional) See the Building a Knowledge Pack Library tutorial and IAR with SensorTile setup steps for how to integrate SensiML application code into the SensorTile SDK using IAR. This allows you to call Knowledge Pack APIs directly at the firmware level or customize your data collection firmware.