STM32WBA65I Discovery kit

Overview

STM32WBA65I-DK1 is a Bluetooth® Low Energy, 802.15.4 and Zigbee® wireless and ultra-low-power board embedding a powerful and ultra-low-power radio compliant with the Bluetooth® Low Energy SIG specification v5.4 with IEEE 802.15.4-2015 and Zigbee® specifications.

The ARDUINO® Uno V3 connectivity support and the ST morpho headers allow the easy expansion of the functionality of the STM32 Discovery kit open development platform with a wide choice of specialized shields.

  • Ultra-low-power wireless STM32WBA65RI microcontroller based on the Arm® Cortex® ‑M33 core with TrustZone®, MPU, DSP, and FPU, that operates at a frequency of up to 100 MHz, featuring 2 Mbyte of flash memory and 512 Kbytes of SRAM in a VFQFPN68 package

  • MCU RF board (MB2130):

    • 2.4 GHz RF transceiver supporting Bluetooth® specification v5.4

    • Arm® Cortex® M33 CPU with TrustZone®, MPU, DSP, and FPU

    • Integrated PCB antenna

  • Three user LEDs (incl. one default not connected)

  • One reset push-buttons

  • One Joystick

  • Board connectors:

    • 2 USB Type-C

    • ARDUINO® Uno V3 expansion connector

    • ST morpho headers for full access to all STM32 I/Os

  • Flexible power-supply options: ST-LINK USB VBUS or external sources

  • On-board STLINK-V3MODS debugger/programmer with USB re-enumeration capability: mass storage, Virtual COM port, and debug port

Hardware

The STM32WBA65xx multiprotocol wireless and ultralow power devices embed a powerful and ultralow power radio compliant with the Bluetooth® SIG Low Energy specification 5.4.

  • Includes ST state-of-the-art patented technology

  • Ultra low power radio:

    • 2.4 GHz radio

    • RF transceiver supporting Bluetooth® Low Energy 5.4 specification IEEE 802.15.4-2015 PHY and MAC, supporting Thread, Matter and Zigbee®

    • Proprietary protocols

    • RX sensitivity: -96 dBm (Bluetooth® Low Energy at 1 Mbps) and -100 dBm (IEEE 802.15.4 at 250 kbps)

    • Programmable output power, up to +10 dBm with 1 dB steps

    • Support for external PA

    • Integrated balun to reduce BOM

    • Suitable for systems requiring compliance with radio frequency regulations ETSI EN 300 328, EN 300 440, FCC CFR47 Part 15 and ARIB STD-T66

  • Ultra low power platform with FlexPowerControl:

    • 1.71 to 3.6 V power supply

      • 40 °C to 85 °C temperature range

    • Autonomous peripherals with DMA, functional down to Stop 1 mode

    • 120 nA Standby mode (16 wake-up pins)

    • 1.68 µA Standby mode with 64 KB SRAM with RTC

    • 5.58 µA Stop 2 mode with 64 KB SRAM with RTC

    • 28.75 µA/MHz Run mode at 3.3 V

    • Radio: Rx 4.26 mA / Tx at 0 dBm 5.94 mA

  • ART Accelerator™: 8-Kbyte instruction cache allowing 0-wait-state execution from flash memory (frequency up to 100 MHz, 150 DMIPS)

  • Power management: embedded regulator LDO and SMPS step-down converter

  • Supporting switch on-the-fly and voltage scaling

  • Benchmarks:

    • 1.5 DMIPS/MHz (Drystone 2.1)

    • 410 CoreMark® (4.10 CoreMark/MHz)

  • Clock sources:

    • 32 MHz crystal oscillator

    • 32 kHz crystal oscillator (LSE)

    • Internal low-power 32 kHz (±5%) RC

    • Internal 16 MHz factory trimmed RC (±1%)

    • PLL for system clock and ADC

  • Memories:

    • 2 MB flash memory with ECC, including 256 Kbytes with 100 cycles

    • 512 KB SRAM, including 64 KB with parity check

    • 512-byte (32 rows) OTP

  • Rich analog peripherals (independent supply):

    • 12-bit ADC 2.5 Msps with hardware oversampling

  • Communication peripherals:

    • Four UARTs (ISO 7816, IrDA, modem)

    • Three SPIs

    • Four I2C Fm+ (1 Mbit/s), SMBus/PMBus®

  • System peripherals:

    • Touch sensing controller, up to 24 sensors, supporting touch key, linear,

      rotary touch sensors

    • One 16-bit, advanced motor control timer

    • Three 16-bit timers

    • Two 32-bit timer

    • Two low-power 16-bit timers (available in Stop mode)

    • Two Systick timers

    • RTC with hardware calendar and calibration

    • Two watchdogs

    • 8-channel DMA controller, functional in Stop mode

  • Security and cryptography:

    • Arm® TrustZone® and securable I/Os, memories, and peripherals

    • Flexible life cycle scheme with RDP and password protected debug

    • Root of trust thanks to unique boot entry and secure hide protection area (HDP)

    • SFI (secure firmware installation) thanks to embedded RSS (root secure services)

    • Secure data storage with root hardware unique key (RHUK)

    • Secure firmware upgrade support with TF-M

    • Two AES co-processors, including one with DPA resistance

    • Public key accelerator, DPA resistant

    • HASH hardware accelerator

    • True random number generator, NIST SP800-90B compliant

    • 96-bit unique ID

    • Active tampers

    • CRC calculation unit

  • Up to 86 I/Os (most of them 5 V-tolerant) with interrupt capability

  • Development support:

    • Serial wire debug (SWD), JTAG, Embedded Trace Macrocell™

  • ECOPACK2 compliant package

More information about STM32WBA series can be found here:

Supported Features

The stm32wba65i_dk1 board supports the hardware features listed below.

on-chip / on-board
Feature integrated in the SoC / present on the board.
2 / 2
Number of instances that are enabled / disabled.
Click on the label to see the first instance of this feature in the board/SoC DTS files.
vnd,foo
Compatible string for the Devicetree binding matching the feature.
Click on the link to view the binding documentation.

stm32wba65i_dk1/stm32wba65xx target

Type

Location

Description

Compatible

CPU

on-chip

ARM Cortex-M33 CPU1

arm,cortex-m33

ADC

on-chip

STM32 ADC1

st,stm32-adc

Bluetooth

on-chip

Bluetooth HCI driver for ST STM32WBA1

st,hci-stm32wba

Clock control

on-chip

STM32WBA RCC (Reset and Clock controller)1

st,stm32wba-rcc

on-chip

STM32WBA HSE Clock1

st,stm32wba-hse-clock

on-chip

Generic fixed-rate clock provider2

fixed-clock

on-chip

STM32 LSE Clock1

st,stm32-lse-clock

on-chip

STM32WBA PLL1

st,stm32wba-pll-clock

on-chip

STM32 Microcontroller Clock Output (MCO)1

st,stm32-clock-mco

Counter

on-chip

STM32 counters6

st,stm32-counter

DMA

on-chip

STM32U5 DMA controller1

st,stm32u5-dma

Flash controller

on-chip

STM32 Family flash controller1

st,stm32-flash-controller

GPIO & Headers

on-chip

STM32 GPIO Controller7

st,stm32-gpio

on-chip

Serial Wire - JTAG Connector1

swj-connector

on-board

GPIO pins exposed on Arduino Uno (R3) headers1

arduino-header-r3

I2C

on-chip

STM32 I2C V2 controller1 1

st,stm32-i2c-v2

IEEE 802.15.4

on-chip

ST STM32WBA IEEE 802.15.41

st,stm32wba-ieee802154

Input

on-board

Input driver for ADC attached resistor ladder buttons1

adc-keys

Interrupt controller

on-chip

ARMv8-M NVIC (Nested Vectored Interrupt Controller)1

arm,v8m-nvic

on-chip

STM32G0 External Interrupt Controller1

st,stm32g0-exti

LED

on-board

Group of GPIO-controlled LEDs1

gpio-leds

MMU / MPU

on-chip

ARMv8-M MPU (Memory Protection Unit)1

arm,armv8m-mpu

MTD

on-chip

STM32 flash memory1

st,stm32-nv-flash

on-board

Fixed partitions of a flash (or other non-volatile storage) memory1

fixed-partitions

Pin control

on-chip

STM32 Pin controller1

st,stm32-pinctrl

Power management

on-chip

STM32 power controller1

st,stm32-pwr

PWM

on-chip

STM32 PWM6

st,stm32-pwm

Reset controller

on-chip

STM32 Reset and Clock Control (RCC) Controller1

st,stm32-rcc-rctl

RNG

on-chip

STM32 Random Number Generator1

st,stm32-rng

RTC

on-chip

STM32 RTC1

st,stm32-rtc

Sensors

on-chip

STM32 family TEMP node for production calibrated sensors with two calibration temperatures1

st,stm32-temp-cal

Serial controller

on-chip

STM32 USART1 2

st,stm32-usart

on-chip

STM32 LPUART1

st,stm32-lpuart

SMbus

on-chip

STM32 SMBus controller2

st,stm32-smbus

SPI

on-chip

STM32H7 SPI controller1 2

st,stm32h7-spi

SRAM

on-chip

Generic on-chip SRAM1

mmio-sram

Timer

on-chip

ARMv8-M System Tick1

arm,armv8m-systick

on-chip

STM32 timers6

st,stm32-timers

on-chip

STM32 low-power timer (LPTIM)1 1

st,stm32-lptim

Watchdog

on-chip

STM32 watchdog1

st,stm32-watchdog

on-chip

STM32 system window watchdog1

st,stm32-window-watchdog

stm32wba65i_dk1/stm32wba65xx/ns target

Type

Location

Description

Compatible

CPU

on-chip

ARM Cortex-M33 CPU1

arm,cortex-m33

ADC

on-chip

STM32 ADC1

st,stm32-adc

Bluetooth

on-chip

Bluetooth HCI driver for ST STM32WBA1

st,hci-stm32wba

Clock control

on-chip

STM32WBA RCC (Reset and Clock controller)1

st,stm32wba-rcc

on-chip

STM32WBA HSE Clock1

st,stm32wba-hse-clock

on-chip

Generic fixed-rate clock provider2

fixed-clock

on-chip

STM32 LSE Clock1

st,stm32-lse-clock

on-chip

STM32WBA PLL1

st,stm32wba-pll-clock

on-chip

STM32 Microcontroller Clock Output (MCO)1

st,stm32-clock-mco

Counter

on-chip

STM32 counters6

st,stm32-counter

DMA

on-chip

STM32U5 DMA controller1

st,stm32u5-dma

Flash controller

on-chip

STM32 Family flash controller1

st,stm32-flash-controller

GPIO & Headers

on-chip

STM32 GPIO Controller7

st,stm32-gpio

on-chip

Serial Wire - JTAG Connector1

swj-connector

on-board

GPIO pins exposed on Arduino Uno (R3) headers1

arduino-header-r3

I2C

on-chip

STM32 I2C V2 controller1 1

st,stm32-i2c-v2

IEEE 802.15.4

on-chip

ST STM32WBA IEEE 802.15.41

st,stm32wba-ieee802154

Input

on-board

Input driver for ADC attached resistor ladder buttons1

adc-keys

Interrupt controller

on-chip

ARMv8-M NVIC (Nested Vectored Interrupt Controller)1

arm,v8m-nvic

on-chip

STM32G0 External Interrupt Controller1

st,stm32g0-exti

LED

on-board

Group of GPIO-controlled LEDs1

gpio-leds

MMU / MPU

on-chip

ARMv8-M MPU (Memory Protection Unit)1

arm,armv8m-mpu

MTD

on-chip

STM32 flash memory1

st,stm32-nv-flash

on-board

Fixed partitions of a flash (or other non-volatile storage) memory1

fixed-partitions

Pin control

on-chip

STM32 Pin controller1

st,stm32-pinctrl

Power management

on-chip

STM32 power controller1

st,stm32-pwr

PWM

on-chip

STM32 PWM6

st,stm32-pwm

Reset controller

on-chip

STM32 Reset and Clock Control (RCC) Controller1

st,stm32-rcc-rctl

RNG

on-chip

STM32 Random Number Generator1

st,stm32-rng

RTC

on-chip

STM32 RTC1

st,stm32-rtc

Sensors

on-chip

STM32 family TEMP node for production calibrated sensors with two calibration temperatures1

st,stm32-temp-cal

Serial controller

on-chip

STM32 USART1 2

st,stm32-usart

on-chip

STM32 LPUART1

st,stm32-lpuart

SMbus

on-chip

STM32 SMBus controller2

st,stm32-smbus

SPI

on-chip

STM32H7 SPI controller1 2

st,stm32h7-spi

Timer

on-chip

ARMv8-M System Tick1

arm,armv8m-systick

on-chip

STM32 timers6

st,stm32-timers

on-chip

STM32 low-power timer (LPTIM)1 1

st,stm32-lptim

Watchdog

on-chip

STM32 watchdog1

st,stm32-watchdog

on-chip

STM32 system window watchdog1

st,stm32-window-watchdog

Zephyr board options

Zephyr supports building both Secure and Non-Secure firmware for STM32WBA65I-DK1 board where TF-M is the embedded Secure firmware and Zephyr the Non-Secure firmware.

The BOARD options are summarized below:

BOARD

Description

stm32wba65i_dk1

For building TrustZone Disabled firmware

stm32wba65i_dk1/stm32wba65xx/ns

For building Non-Secure firmware

Here are the instructions to build Zephyr with a non-secure configuration, using TF-M IPC sample:

# From the root of the zephyr repository
west build -b stm32wba65i_dk1/stm32wba65xx/ns samples/tfm_integration/tfm_ipc

Once done, before flashing, you need to first run a generated script that will set platform Option Bytes config and erase internal flash (among others, Option Bit TZEN will be set).

$ ./build/tfm/api_ns/regression.sh
$ west flash

Please note that, after having programmed the board for a TrustZone enabled system (e.g. with ./build/tfm/api_ns/regression.sh), the SoC TZEN Option Byte is enabled and you will need to operate specific sequence to disable this TZEN Option Byte configuration to get your board back in normal state for booting with a TrustZone disabled system (e.g. without TF-M support). You can use STM32CubeProgrammer to disable the SoC TZEN Option Byte config. Refer to How to disable STM32WBA65 TZEN Option Byte.

Connections and IOs

STM32WBA65I-DK1 board has 4 GPIO controllers. These controllers are responsible for pin muxing, input/output, pull-up, etc.

Default Zephyr Peripheral Mapping:

  • USART_1 TX/RX : PB12/PA8

  • I2C_1_SCL : PB2

  • I2C_1_SDA : PB1

  • LD6 : PD8

  • SPI_1_NSS : PA12 (arduino_spi)

  • SPI_1_SCK : PB4 (arduino_spi)

  • SPI_1_MISO : PB3 (arduino_spi)

  • SPI_1_MOSI : PA15 (arduino_spi)

System Clock

STM32WBA65I-DK1 System Clock could be driven by internal or external oscillator, as well as main PLL clock. By default System clock is driven by HSE+PLL clock at 100MHz.

Serial Port

STM32WBA65I-DK1 board has 3 U(S)ARTs. The Zephyr console output is assigned to USART1. Default settings are 115200 8N1.

Programming and Debugging

The stm32wba65i_dk1 board supports the runners and associated west commands listed below.

flash debug rtt debugserver attach
openocd ✅ (default)
stm32cubeprogrammer ✅ (default)

STM32WBA65I-DK1 board includes an ST-LINK/V3 embedded debug tool interface. It could be used for flash and debug using STM32Cube ecosystem tools.

Flashing

The board is configured to be flashed using west STM32CubeProgrammer runner, so its installation is required.

Flashing an application to a STM32WBA65I-DK1

Here is an example for the Blinky application.

# From the root of the zephyr repository
west build -b stm32wba65i_dk1 samples/basic/blinky
west flash

You will see the LED blinking every second.

Debugging

Debugging using OpenOCD

You can debug an application in the usual way using OpenOCD. Here is an example for the Blinky application.

# From the root of the zephyr repository
west build -b stm32wba65i_dk1 samples/basic/blinky
west debug