Connect an STMicroelectronics B-L475E-IOT01A / B-L4S5I-IOTOA1 Discovery kit to Azure IoT
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.
What you need
- The B-L475E-IOT01A Devkit
- Wi-Fi 2.4 GHz
- USB 2.0 A male to Micro USB male cable
Steps
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-L475E-IOT0A1\app\azure_config.h
Build the binary image:
getting-started\STMicroelectronics\B-L475E-IOT0A1\tools\rebuild.bat
Flash the image to the device by copying the image file to the DIS_L4IOT drive:
getting-started\STMicroelectronics\B-L475E-IOT0A1\build\app\stm32l475_azure_iot.bin
Configure a serial port app at baud rate 115,200 to monitor the device output.
Debugging with VSCode or Visual Studio
The following guides are available on how to build, flash and debug the devkit using some popular development environments:
STM32CubeMX configuration
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.