Summary of X-CUBE-AZURE – MICROSOFT AZURE SOFTWARE EXPANSION FOR STM32CUBE
The X-CUBE-AZURE Expansion Package provides libraries and examples for STM32L4, F4, and F7 microcontrollers to connect with Microsoft Azure IoT Hub. It supports Wi-Fi, Ethernet, and cellular connectivity across four specific platforms. The sample application demonstrates publishing telemetry, receiving commands, and managing device twins securely via TLS encryption and X509 authentication.
Parts used in the X-CUBE-AZURE Project:
- STM32L4 Series microcontrollers
- STM32F4 Series microcontrollers
- STM32F7 Series microcontrollers
- B-L475E-IOT01A board
- 32F413HDISCOVERY board
- 32F769IDISCOVERY board
- P-L496G-CELL02 pack
- Inventek module
- Quectel BG96 modem
- Microsoft Azure IoT Hub
The X-CUBE-AZURE Expansion Package consists of a set of libraries and application examples for STM32L4 Series, STM32F4 Series, and STM32F7 Series microcontrollers acting as end devices.

X-CUBE-AZURE runs on four platforms. The B-L475E-IOT01A and 32F413HDISCOVERY boards support Wi-Fi® connectivity with an on-board Inventek module. The 32F769IDISCOVERY board provides a native Ethernet interface. The P-L496G-CELL02 pack includes an STM32L496AGI6-based low-power Discovery board equipped with Quectel’s BG96 modem (LTE Cat M1/NB/2G fallback) for cellular connectivity.
For the four platforms, a sample application configures the network connectivity parameters, and illustrates the various ways for a device to interact with Microsoft® Azure® IoT Hub. The application shows how a simple client application connects to the Azure® IoT Hub in order to publish device state and telemetry data, and receive device configuration from the cloud.
The application handles Azure® messages, methods and twin update commands. This allows, from the Azure IoT console, the remote control of the user LED state, the change of the telemetry interval, or the trigger of remote firmware update.
Key Features
- Ready-to-run firmware example using cellular, Wi-Fi®, and Ethernet connectivity to support quick evaluation and development of Microsoft® Azure® cloud-connected applications
- Board configuration interface for connection to the Azure® IoT Hub
- Secure Boot and Secure Firmware Update
- TLS encryption
- Azure® IoT Hub, and bidirectional communication examples implemented
- Azure® X509 device authentication and Azure® Device Provisioning Service (DPS)
- Connection to an Azure® IoT central demonstration
- Connection to STMicroelectronics dashboard for Azure®, for easy sensor data visualization and device control
- Specific features on the B-L475E-IOT01A board such as measurement of humidity, temperature, 3-axis magnetic data, 3-axis acceleration, 3-axis gyroscope data, atmospheric pressure, and time-of-flight
Read more: X-CUBE-AZURE – MICROSOFT AZURE SOFTWARE EXPANSION FOR STM32CUBE
- Which microcontroller series are supported by X-CUBE-AZURE?
The package supports STM32L4 Series, STM32F4 Series, and STM32F7 Series microcontrollers. - What types of network connectivity does the package support?
The application supports cellular, Wi-Fi, and Ethernet connectivity. - Can I control user LED state remotely using this package?
Yes, the application allows remote control of the user LED state from the Azure IoT console. - How does the package ensure secure communication?
It utilizes TLS encryption and Azure X509 device authentication. - Does the B-L475E-IOT01A board include sensors?
Yes, it includes sensors for humidity, temperature, 3-axis magnetic data, 3-axis acceleration, 3-axis gyroscope data, atmospheric pressure, and time-of-flight. - Is firmware update capability included in the solution?
Yes, the package features Secure Boot and Secure Firmware Update capabilities. - What is the role of the Quectel BG96 modem?
It is part of the P-L496G-CELL02 pack and provides LTE Cat M1/NB/2G fallback cellular connectivity. - Can the system connect to an Azure IoT Central demonstration?
Yes, the application includes a connection to an Azure IoT central demonstration.
