Cirkit Designer Logo
Cirkit Designer
Your all-in-one circuit design IDE
Home / 
Component Documentation

How to Use STM32WB55RG: Examples, Pinouts, and Specs

Image of STM32WB55RG
Cirkit Designer LogoDesign with STM32WB55RG in Cirkit Designer

Introduction

The STM32WB55RG is a dual-core microcontroller developed by STMicroelectronics. It features an Arm Cortex-M4 core for high-performance application processing and an Arm Cortex-M0+ core dedicated to managing low-power tasks. This microcontroller is designed for IoT applications, offering integrated Bluetooth 5.0 connectivity, advanced security features, and a wide range of peripherals. Its versatility makes it suitable for applications such as smart home devices, wearable technology, industrial automation, and medical devices.

Explore Projects Built with STM32WB55RG

Use Cirkit Designer to design, explore, and prototype these projects online. Some projects support real-time simulation. Click "Open Project" to start designing instantly!
STM32F103C8T6-Based Spectral Sensor with ST7735S Display and Pushbutton Control
Image of ColorSensor: A project utilizing STM32WB55RG in a practical application
This circuit features an STM32F103C8T6 microcontroller interfaced with a China ST7735S 160x128 display and two spectral sensors (Adafruit AS7262 and AS7261). It also includes two pushbuttons for user input, with the microcontroller managing the display and sensor data processing.
Cirkit Designer LogoOpen Project in Cirkit Designer
Solar-Powered STM32-Based Automation System with Matrix Keypad and RTC
Image of soloar cleaner : A project utilizing STM32WB55RG in a practical application
This circuit features an STM32F103C8T6 microcontroller interfaced with a membrane matrix keypad for input, an RTC DS3231 for real-time clock functionality, and a 16x2 I2C LCD for display. It controls four 12V geared motors through two MD20 CYTRON motor drivers, with the motor power supplied by a 12V battery regulated by a buck converter. The battery is charged via a solar panel connected through a solar charge controller, ensuring a renewable energy source for the system.
Cirkit Designer LogoOpen Project in Cirkit Designer
STM32F4-Based Multi-Sensor GPS Tracking System
Image of Phase 1 fc: A project utilizing STM32WB55RG in a practical application
This circuit integrates an STM32F4 microcontroller with a GPS module (NEO 6M), an accelerometer and gyroscope (MPU-6050), a barometric pressure sensor (BMP280), and a compass (HMC5883L). The microcontroller communicates with the sensors via I2C and the GPS module via UART, enabling it to gather and process environmental and positional data.
Cirkit Designer LogoOpen Project in Cirkit Designer
Battery-Powered Health Monitoring System with Nucleo WB55RG and OLED Display
Image of Pulsefex: A project utilizing STM32WB55RG in a practical application
This circuit is a multi-sensor data acquisition system that uses a Nucleo WB55RG microcontroller to interface with a digital temperature sensor (TMP102), a pulse oximeter and heart-rate sensor (MAX30102), and a 0.96" OLED display via I2C. Additionally, it includes a Sim800l module for GSM communication, powered by a 3.7V LiPo battery.
Cirkit Designer LogoOpen Project in Cirkit Designer

Explore Projects Built with STM32WB55RG

Use Cirkit Designer to design, explore, and prototype these projects online. Some projects support real-time simulation. Click "Open Project" to start designing instantly!
Image of ColorSensor: A project utilizing STM32WB55RG in a practical application
STM32F103C8T6-Based Spectral Sensor with ST7735S Display and Pushbutton Control
This circuit features an STM32F103C8T6 microcontroller interfaced with a China ST7735S 160x128 display and two spectral sensors (Adafruit AS7262 and AS7261). It also includes two pushbuttons for user input, with the microcontroller managing the display and sensor data processing.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of soloar cleaner : A project utilizing STM32WB55RG in a practical application
Solar-Powered STM32-Based Automation System with Matrix Keypad and RTC
This circuit features an STM32F103C8T6 microcontroller interfaced with a membrane matrix keypad for input, an RTC DS3231 for real-time clock functionality, and a 16x2 I2C LCD for display. It controls four 12V geared motors through two MD20 CYTRON motor drivers, with the motor power supplied by a 12V battery regulated by a buck converter. The battery is charged via a solar panel connected through a solar charge controller, ensuring a renewable energy source for the system.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of Phase 1 fc: A project utilizing STM32WB55RG in a practical application
STM32F4-Based Multi-Sensor GPS Tracking System
This circuit integrates an STM32F4 microcontroller with a GPS module (NEO 6M), an accelerometer and gyroscope (MPU-6050), a barometric pressure sensor (BMP280), and a compass (HMC5883L). The microcontroller communicates with the sensors via I2C and the GPS module via UART, enabling it to gather and process environmental and positional data.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of Pulsefex: A project utilizing STM32WB55RG in a practical application
Battery-Powered Health Monitoring System with Nucleo WB55RG and OLED Display
This circuit is a multi-sensor data acquisition system that uses a Nucleo WB55RG microcontroller to interface with a digital temperature sensor (TMP102), a pulse oximeter and heart-rate sensor (MAX30102), and a 0.96" OLED display via I2C. Additionally, it includes a Sim800l module for GSM communication, powered by a 3.7V LiPo battery.
Cirkit Designer LogoOpen Project in Cirkit Designer

Technical Specifications

The STM32WB55RG microcontroller is packed with features that make it a powerful and flexible choice for embedded systems. Below are its key technical specifications:

General Specifications

  • Core Architecture: Dual-core (Arm Cortex-M4 @ 64 MHz and Arm Cortex-M0+ @ 32 MHz)
  • Flash Memory: 1 MB
  • RAM: 256 KB
  • Bluetooth Version: Bluetooth 5.0 (LE)
  • Operating Voltage: 1.71 V to 3.6 V
  • Operating Temperature: -40°C to +85°C
  • Package: LQFP64 (64-pin)

Peripherals

  • Communication Interfaces:
    • 1x USB 2.0 Full-Speed
    • 2x SPI/I2S
    • 3x I2C
    • 1x CAN
    • 1x USART and 2x UART
  • Timers:
    • 1x Advanced Timer
    • 4x General-Purpose Timers
    • 2x Low-Power Timers
  • Analog:
    • 1x 12-bit ADC (up to 16 channels)
    • 1x 12-bit DAC
  • GPIOs: Up to 46 configurable GPIO pins
  • Security Features:
    • Secure firmware update
    • Hardware encryption (AES, RSA, SHA)
    • True Random Number Generator (TRNG)

Pin Configuration

The STM32WB55RG comes in a 64-pin LQFP package. Below is a table summarizing the key pin functions:

Pin Number Pin Name Function
1 VDD Power Supply (1.71 V to 3.6 V)
2 PA0 GPIO/ADC Input/Timer Input
3 PA1 GPIO/ADC Input/Timer Input
4 PA2 GPIO/UART2_TX
5 PA3 GPIO/UART2_RX
6 PA4 GPIO/SPI1_NSS/ADC Input
... ... ...
64 VSS Ground

For the complete pinout, refer to the STM32WB55RG datasheet.

Usage Instructions

How to Use the STM32WB55RG in a Circuit

  1. Power Supply: Ensure the microcontroller is powered within its operating voltage range (1.71 V to 3.6 V). Use decoupling capacitors (e.g., 0.1 µF) close to the VDD and VSS pins to stabilize the power supply.
  2. Clock Configuration: The STM32WB55RG supports internal and external clock sources. For precise timing, connect an external crystal oscillator to the HSE pins.
  3. Programming: Use the SWD (Serial Wire Debug) interface for programming and debugging. Tools like ST-Link or J-Link are commonly used.
  4. Bluetooth Configuration: The integrated Bluetooth 5.0 stack can be configured using the STM32CubeWB software package. Ensure the RF antenna is properly connected to the RF pin for optimal performance.
  5. Peripheral Setup: Configure the desired peripherals (e.g., UART, SPI, I2C) using STM32CubeMX or directly in your firmware.

Important Considerations

  • Power Management: Utilize the low-power modes (e.g., Stop, Standby) of the Cortex-M0+ core to optimize energy consumption in battery-powered applications.
  • GPIO Configuration: Set unused GPIO pins to analog mode to reduce power leakage.
  • Firmware Updates: Use the secure firmware update feature to ensure the integrity of your application.

Example: Interfacing STM32WB55RG with Arduino UNO

Below is an example of using the STM32WB55RG to send data to an Arduino UNO via UART:

// STM32WB55RG UART Example
// This code configures UART2 on the STM32WB55RG to send "Hello, Arduino!" 
// to an Arduino UNO. Ensure the TX pin of STM32WB55RG is connected to the 
// RX pin of the Arduino UNO.

#include "stm32wbxx_hal.h"

UART_HandleTypeDef huart2;

void SystemClock_Config(void);
void MX_USART2_UART_Init(void);

int main(void) {
    HAL_Init(); // Initialize the HAL Library
    SystemClock_Config(); // Configure the system clock
    MX_USART2_UART_Init(); // Initialize UART2

    char message[] = "Hello, Arduino!\r\n";

    while (1) {
        HAL_UART_Transmit(&huart2, (uint8_t *)message, sizeof(message) - 1, HAL_MAX_DELAY);
        HAL_Delay(1000); // Send message every 1 second
    }
}

void MX_USART2_UART_Init(void) {
    huart2.Instance = USART2;
    huart2.Init.BaudRate = 9600;
    huart2.Init.WordLength = UART_WORDLENGTH_8B;
    huart2.Init.StopBits = UART_STOPBITS_1;
    huart2.Init.Parity = UART_PARITY_NONE;
    huart2.Init.Mode = UART_MODE_TX_RX;
    huart2.Init.HwFlowCtl = UART_HWCONTROL_NONE;
    huart2.Init.OverSampling = UART_OVERSAMPLING_16;
    HAL_UART_Init(&huart2);
}

// Add SystemClock_Config() function here as per your clock setup

Troubleshooting and FAQs

Common Issues

  1. Microcontroller Not Responding:

    • Cause: Incorrect power supply or missing decoupling capacitors.
    • Solution: Verify the power supply voltage and add decoupling capacitors near the VDD pins.
  2. Bluetooth Connectivity Issues:

    • Cause: Improper antenna connection or incorrect Bluetooth stack configuration.
    • Solution: Check the RF antenna connection and ensure the Bluetooth stack is properly initialized in the firmware.
  3. Programming Failure:

    • Cause: Faulty SWD connection or incorrect programming tool settings.
    • Solution: Verify the SWD connections and ensure the programming tool is configured for the STM32WB55RG.

FAQs

  1. Can I use the STM32WB55RG without Bluetooth?

    • Yes, the Bluetooth functionality is optional. You can use the microcontroller for general-purpose applications without enabling Bluetooth.
  2. What development tools are recommended?

    • Use STM32CubeIDE for development and STM32CubeMX for peripheral configuration. For debugging, ST-Link or J-Link is recommended.
  3. How do I update the firmware securely?

    • Use the secure firmware update feature provided by STMicroelectronics. Refer to the STM32WB55RG reference manual for detailed instructions.

By following this documentation, you can effectively integrate the STM32WB55RG into your projects and troubleshoot common issues. For more details, consult the official datasheet and reference manual from STMicroelectronics.