|
| 1 | +.. _sensortile_box: |
| 2 | + |
| 3 | +ST SensorTile.box |
| 4 | +################# |
| 5 | + |
| 6 | +Overview |
| 7 | +******** |
| 8 | + |
| 9 | +The STEVAL-MKSBOX1V1 (SensorTile.box) is a ready-to-use box kit for wireless |
| 10 | +IoT and wearable sensor platforms to help you use and develop apps based on |
| 11 | +remote motion and environmental sensor data. |
| 12 | +The SensorTile.box board fits into a small plastic box with a long-life rechargeable |
| 13 | +battery, and communicates with a standard smartphone through its Bluetooth interface, |
| 14 | +providing data coming from the sensors. |
| 15 | + |
| 16 | +.. image:: img/sensortile_box.jpg |
| 17 | + :width: 784px |
| 18 | + :align: center |
| 19 | + :height: 643px |
| 20 | + :alt: SensorTile.box |
| 21 | + |
| 22 | +More information about the board can be found at the `SensorTile.box website`_. |
| 23 | + |
| 24 | +Hardware |
| 25 | +******** |
| 26 | + |
| 27 | +SensorTile.box provides the following hardware components: |
| 28 | + |
| 29 | +- Ultra low-power STM32L4R9ZI System on Chip |
| 30 | + |
| 31 | + - LQFP144 package |
| 32 | + - Core: ARM |reg| 32-bit Cortex |reg|-M4 CPU with FPU, adaptive |
| 33 | + real-time accelerator (ART Accelerator) allowing 0-wait-state |
| 34 | + execution from Flash memory, frequency up to 120 MHz, MPU, 150 |
| 35 | + DMIPS/1.25 DMIPS/MHz (Dhrystone 2.1), and DSP instructions |
| 36 | + - Clock Sources: |
| 37 | + |
| 38 | + - 16 MHz crystal oscillator |
| 39 | + - 32 kHz crystal oscillator for RTC (LSE) |
| 40 | + |
| 41 | +- Communication |
| 42 | + |
| 43 | + - Bluetooth Smart connectivity v4.2 (SPBTLE-1S) |
| 44 | + - 1 x USB OTG FS (SoC) with micro-B connector |
| 45 | + (USB device role only) |
| 46 | + |
| 47 | +- Internal Busses |
| 48 | + |
| 49 | + - 3 x SPI bus |
| 50 | + - 3 x I2C bus |
| 51 | + |
| 52 | +- micro-SD connector |
| 53 | + |
| 54 | +- On board sensors: |
| 55 | + |
| 56 | + - Digital temperature sensor (STTS751) |
| 57 | + - 6-axis inertial measurement unit (LSM6DSOX) |
| 58 | + - 3-axis accelerometers (LIS2DW12 and LIS3DHH) |
| 59 | + - 3-axis magnetometer (LIS2MDL) |
| 60 | + - Altimeter / pressure sensor (LPS22HH) |
| 61 | + - Microphone / audio sensor (MP23ABS1) |
| 62 | + - Humidity sensor (HTS221) |
| 63 | + |
| 64 | +- HCP602535ZC LI-ion rechargable battery (3.7V 500mAh) |
| 65 | +- FTSH107 connector for SWD debugging and UART Tx/Rx |
| 66 | + |
| 67 | +Supported Features |
| 68 | +================== |
| 69 | + |
| 70 | +The SensorTile.box provides motion, environmental, and audio |
| 71 | +sensor data through either the BLE or USB protocols to a host application running |
| 72 | +on a smartphone/PC to implement applications such as: |
| 73 | + |
| 74 | +- Pedometer optimized for belt positioning |
| 75 | +- Baby crying detection with Cloud AI learning |
| 76 | +- Barometer / environmental monitoring |
| 77 | +- Vehicle / goods tracking |
| 78 | +- Vibration monitoring |
| 79 | +- Compass and inclinometer |
| 80 | +- Sensor data logger |
| 81 | + |
| 82 | +Connections and IOs |
| 83 | +=================== |
| 84 | + |
| 85 | +LED |
| 86 | +--- |
| 87 | + |
| 88 | +- Blue LED = PB15 |
| 89 | +- Green LED = PF2 |
| 90 | + |
| 91 | +Push buttons |
| 92 | +------------ |
| 93 | + |
| 94 | +- BUTTON = BOOT |
| 95 | + (used to let the SensorTile.box enter DFU mode. See `Programming and Debugging`_ |
| 96 | + section) |
| 97 | +- BUTTON = PWR |
| 98 | + (used to Power on/off the board when battery is connected) |
| 99 | + |
| 100 | +System Clock |
| 101 | +============ |
| 102 | + |
| 103 | +SensorTile.box System Clock could be driven by internal or external |
| 104 | +oscillator, as well as main PLL clock. By default, the System clock is |
| 105 | +driven by the PLL clock at 80MHz, driven by the 16MHz external oscillator. |
| 106 | +The system clock can be boosted to 120MHz. |
| 107 | +The internal AHB/APB1/APB2 AMBA busses are all clocked at 80MHz. |
| 108 | + |
| 109 | +Serial Port |
| 110 | +=========== |
| 111 | + |
| 112 | +There are two possible options for Zephyr console output: |
| 113 | + |
| 114 | +- using USART1 which is available on FTSH107 connector. In this case a JTAG adapter |
| 115 | + can be used to connect SensorTile.box to STLINK-V2 and have both SWD and console lines |
| 116 | + available on PC. |
| 117 | +- using the USB connector, which may be used to make the console available on PC as |
| 118 | + USB CDC class. |
| 119 | + |
| 120 | +Console default settings are 115200 8N1. |
| 121 | + |
| 122 | +USB interface |
| 123 | +============= |
| 124 | + |
| 125 | +SensorTile.box can be connected as a USB device to a PC host through its micro-B connector. |
| 126 | +The final application may use it to declare SensorTile.box device as belonging to a |
| 127 | +certain standard or vendor class, e.g. a CDC, a mass storage or a composite device with both |
| 128 | +functions. |
| 129 | + |
| 130 | +Programming and Debugging |
| 131 | +************************* |
| 132 | + |
| 133 | +There are 2 main entry points for flashing STM32FL4Rx SoCs, one using the ROM |
| 134 | +bootloader, and another by using the SWD debug port (which requires additional |
| 135 | +hardware) on FTSH107 connector. |
| 136 | +Flash using the ROM bootloader by powering on the board |
| 137 | +while keeping the BOOT0 button pressed. |
| 138 | +The ROM bootloader supports flashing via USB (DFU), UART, I2C and SPI. |
| 139 | +You can read more about how to enable and use the ROM bootloader by checking |
| 140 | +the application note `AN2606`_ (STM32L4Rx section). |
| 141 | + |
| 142 | +Flashing |
| 143 | +======== |
| 144 | + |
| 145 | +Installing dfu-util |
| 146 | +------------------- |
| 147 | + |
| 148 | +It is recommended to use at least v0.8 of dfu-util. The package available in |
| 149 | +Debian and Ubuntu can be quite old, so you might have to build dfu-util from source. |
| 150 | +Information about how to get the source code and how to build it can be found |
| 151 | +at the `DFU-UTIL website`_ |
| 152 | + |
| 153 | +Flashing an Application to SensorTile.box |
| 154 | +----------------------------------------- |
| 155 | + |
| 156 | +While pressing the BOOT0 button, connect the |
| 157 | +micro-USB cable to the USB OTG SensorTile.box |
| 158 | +port and to your computer. The board should be |
| 159 | +forced to enter DFU mode. |
| 160 | + |
| 161 | +Confirm that the board is in DFU mode: |
| 162 | + |
| 163 | +.. code-block:: console |
| 164 | +
|
| 165 | + $ sudo dfu-util -l |
| 166 | + dfu-util 0.9 |
| 167 | +
|
| 168 | + Copyright 2005-2009 Weston Schmidt, Harald Welte and OpenMoko Inc. |
| 169 | + Copyright 2010-2019 Tormod Volden and Stefan Schmidt |
| 170 | + This program is Free Software and has ABSOLUTELY NO WARRANTY |
| 171 | + Please report bugs to http://sourceforge.net/p/dfu-util/tickets/ |
| 172 | +
|
| 173 | + Found DFU: [0483:df11] ver=2200, devnum=74, cfg=1, intf=0, path="2-2", alt=2, name="@OTP Memory /0x1FFF7000/01*0001Ke", serial="204A325D574D" |
| 174 | + Found DFU: [0483:df11] ver=2200, devnum=74, cfg=1, intf=0, path="2-2", alt=1, name="@Option Bytes /0x1FF00000/01*040 e/0x1FF01000/01*040 e", serial="204A325D574D" |
| 175 | + Found DFU: [0483:df11] ver=2200, devnum=74, cfg=1, intf=0, path="2-2", alt=0, name="@Internal Flash /0x08000000/512*0004Kg", serial="204A325D574D" |
| 176 | +
|
| 177 | +You should see following confirmation on your Linux host: |
| 178 | + |
| 179 | +.. code-block:: console |
| 180 | +
|
| 181 | + $ dmesg |
| 182 | + usb 2-2: new full-speed USB device number 74 using xhci_hcd |
| 183 | + usb 2-2: New USB device found, idVendor=0483, idProduct=df11 |
| 184 | + usb 2-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3 |
| 185 | + usb 2-2: Product: STM32 BOOTLOADER |
| 186 | + usb 2-2: Manufacturer: STMicroelectronics |
| 187 | + usb 2-2: SerialNumber: 204A325D574D |
| 188 | +
|
| 189 | +You can build and flash the provided sample application |
| 190 | +(:ref:`sensortile_box sensors`) that reads sensors data and outputs |
| 191 | +values on the console. |
| 192 | + |
| 193 | +References |
| 194 | +********** |
| 195 | + |
| 196 | +.. target-notes:: |
| 197 | + |
| 198 | +.. _SensorTile.box website: |
| 199 | + https://www.st.com/en/evaluation-tools/steval-mksbox1v1.html |
| 200 | + |
| 201 | +.. _AN2606: |
| 202 | + http://www.st.com/content/ccc/resource/technical/document/application_note/b9/9b/16/3a/12/1e/40/0c/CD00167594.pdf/files/CD00167594.pdf/jcr:content/translations/en.CD00167594.pdf |
| 203 | + |
| 204 | +.. _DFU-UTIL website: |
| 205 | + http://dfu-util.sourceforge.net/ |
| 206 | + |
0 commit comments