Skip to content

Latest commit

 

History

History
63 lines (40 loc) · 2.25 KB

File metadata and controls

63 lines (40 loc) · 2.25 KB
page_type description languages products
sample
Connecting an STMicroelectronics L4S5I-IOT01A device to Azure IoT using Azure RTOS
c
azure-iot
azure-iot-pnp
azure-rtos
azure-iot-central

Connect an STMicroelectronics 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-L4S5I-IOT0A1\app\azure_config.h

  4. Build the binary image:

    getting-started\STMicroelectronics\B-L4S5I-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-L4S5I-IOT0A1\build\app\stm32l4S5_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.