page_type | description | languages | products | |||||
---|---|---|---|---|---|---|---|---|
sample |
Connecting an STMicroelectronics L4S5I-IOT01A device to Azure IoT using Azure RTOS |
|
|
The Quickstart button above provides the complete steps for creating an IoT Hub application and then configuring, building and flashing the device.
For guidance on connecting additional devices, see Getting started with IoT device development.
- The B-L4S5I-IOT01A devkit
- Wi-Fi 2.4 GHz
- USB 2.0 A male to Micro USB male cable
-
Recursively clone the repository:
git clone --recursive https://github.com/azure-rtos/getting-started.git
-
Install the development tools:
getting-started\tools\get-toolchain.bat
-
Add Wi-Fi and Azure IoT configuration to the config file:
getting-started\STMicroelectronics\B-L4S5I-IOT0A1\app\azure_config.h
-
Build the binary image:
getting-started\STMicroelectronics\B-L4S5I-IOT0A1\tools\rebuild.bat
-
Flash the image to the device by copying the image file to the DIS_L4IOT drive:
getting-started\STMicroelectronics\B-L4S5I-IOT0A1\build\app\stm32l4S5_azure_iot.bin
-
Configure a serial port app at baud rate 115,200 to monitor the device output.
The following guides are available on how to build, flash and debug the devkit using some popular development environments:
The board specific code was creating using STM32CubeMX. The project file can be found in the lib/stmcubel4/stmcubemx directory if further customization is needed.