Skip to content

Latest commit

 

History

History
 
 

readme.md

page_type sample
description Connecting an STMicroelectronics B-L475E-IOT01A device to Azure IoT using Azure RTOS
languages
c
products
azure-iot
azure-iot-pnp
azure-rtos
azure-iot-central

Connect an STMicroelectronics B-L475E-IOT01A / B-L4S5I-IOTOA1 Discovery kit to Azure IoT

Quickstart article Documentation

The Quickstart button above provides the complete steps for creating an IoT Central application and then configuring, building and flashing the device.

For guidance on connecting additional devices, see the Embedded device quickstarts.

What you need

Steps

  1. Recursively clone the repository:

    git clone --recursive https://github.com/azure-rtos/getting-started.git
  2. Install the development tools:

    getting-started\tools\get-toolchain.bat

  3. Add Wi-Fi and Azure IoT configuration to the config file:

    getting-started\STMicroelectronics\B-L475E-IOT0A1\app\azure_config.h

  4. Build the binary image:

    getting-started\STMicroelectronics\B-L475E-IOT0A1\tools\rebuild.bat

  5. 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

  6. 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.