boards/st/stm32wb5mm_dk/doc/stm32wb5mm_dk.html · boards/st/stm32wb5mm_dk/doc/stm32wb5mm_dk.rst 공식 원문 ↗

Zephyr 3.7.0 · Boards · ST · Wireless

ST STM32WB5MM-DK

Dual-core wireless module과 coprocessor binary 호환성, LED 공유 조건을 설명합니다.

Official pathboards/st/stm32wb5mm_dk/doc/stm32wb5mm_dk.html
Source fileboards/st/stm32wb5mm_dk/doc/stm32wb5mm_dk.rst
Source versionZephyr 3.7.0
TranslationFull · reviewed

본문 기준: Zephyr 3.7.0 LTS3 · 이후 유지보수 패치는 별도입니다.

Part 1

요약·해설

지원표 2행, BLE radio 사양, Cube V1.13.2 제한과 JP4/JP5 조건을 보존했습니다.

Cores

M4 + M0+

Radio

BLE 5.4 · 802.15.4

Memory

1MB / 256KB

Clock

32MHz HSE

Part 2

접을 수 있는 영어 원문 전체

영어 원문 전체 펼치기
원문 SHA-256 DA581B2F9D6DD23FFF807288D655648D0D6CA3C274BFB85AD58ACBA5832B5955
.. _stm32wb5mm_dk_discovery_kit:

ST STM32WB5MM-DK
################

Overview
********

The STM32WB5MM-DK Discovery kit is designed as a complete demonstration
and development platform for the STMicroelectronics STM32W5MMG module based
on the Arm |reg| Cortex |reg|-M4 and Arm |reg|  Cortex |reg|-M0+ cores.
The STM32 device is a multi-protocol wireless and ultra-low-power device
embedding a powerful and ultra-low-power radio compliant with the
Bluetooth |reg| Low Energy (BLE) SIG specification v5.2 and with
IEEE 802.15.4-2011.


STM32WB5MM-DK supports the following features:

* STM32WB5MMG (1-Mbyte Flash memory, 256-Kbyte SRAM)
    - Dual-core 32‑bit (Arm |reg| Cortex |reg|-M4 and M0+)
    - 2.4 GHz RF transceiver
    - 0.96-inch 128x64 OLED display
    - 128-Mbit Quad-SPI NOR Flash Memory
    - Temperature sensor
    - Accelerometer/gyroscope sensor
    - Time-of-Flight and gesture-detection sensor
    - Digital microphone
    - RGB LED
    - Infrared LED
    - 3 push-buttons (2 users and 1 reset) and 1 touch key button

* Board connectors:
    - STMod+
    - ARDUINO |reg| Uno V3 expansion connector
    - USB user with Micro-B connector
    - TAG10 10-pin footprint

* Flexible power-supply options:
    - ST-LINK/V2-1 USB connector,
    - 5 V delivered by:
        - ARDUINO |reg|,
        - external connector,
        - USB charger, or USB power

* On-board ST-LINK/V2-1 debugger/programmer with USB re-enumeration
    - Virtual COM port and debug port


.. image:: ../../../../../../../boards/st/stm32wb5mm_dk/doc/img/STM32WB5MM_DK.jpg
   :align: center
   :alt: STM32WB5MM-DK

More information about the board can be found in `STM32WB5MM-DK on www.st.com`_.

Hardware
********

STM32WB5MMG is an ultra-low-power and small form factor certified 2.4 GHz
wireless module. It supports Bluetooth |reg| Low Energy 5.4, Zigbee |reg| 3.0,
OpenThread, dynamic, and static concurrent modes, and 802.15.4 proprietary
protocols.

Based on the STMicroelectronics STM32WB55VGY wireless microcontroller,
STM32WB5MMG provides best-in-class RF performance thanks to its high
receiver sensitivity and output power signal. Its low-power features
enable extended battery life, small coin-cell batteries, and energy harvesting.

- Ultra-low-power with FlexPowerControl
- Core: ARM |reg| 32-bit Cortex |reg|-M4 CPU with FPU
- Radio:

  - 2.4GHz
  - RF transceiver supporting:

    - Bluetooth |reg| 5.4 specification,
    - IEEE 802.15.4-2011 PHY and MAC,
    - Zigbee |reg| 3.0

  - RX sensitivity:

    - -96 dBm (Bluetooth |reg| Low Energy at 1 Mbps),
    - -100 dBm (802.15.4)

  - Programmable output power up to +6 dBm with 1 dB steps
  - Integrated balun to reduce BOM
  - Support for 2 Mbps
  - Support GATT caching
  - Support EATT (enhanced ATT)
  - Support advertising extension
  - Accurate RSSI to enable power control

- Clock Sources:

  - 32 MHz crystal oscillator with integrated
    trimming capacitors (Radio and CPU clock)
  - 32 kHz crystal oscillator for RTC (LSE)
  - Internal low-power 32 kHz (±5%) RC (LSI1)
  - Internal low-power 32 kHz (stability
    ±500 ppm) RC (LSI2)
  - Internal multispeed 100 kHz to 48 MHz
    oscillator, auto-trimmed by LSE (better than
    ±0.25% accuracy)
  - High speed internal 16 MHz factory
    trimmed RC (±1%)
  - 2x PLL for system clock, USB, SAI, ADC

More information about STM32WB55RG can be found here:

- `STM32WB5MM-DK on www.st.com`_
- `STM32WB5MMG datasheet`_

Supported Features
==================

The Zephyr STM32WB5MM-DK board configuration supports the following hardware features:

+-----------+------------+-------------------------------------+
| Interface | Controller | Driver/Component                    |
+===========+============+=====================================+
| UART      | on-chip    | serial port-polling;                |
|           |            | serial port-interrupt               |
+-----------+------------+-------------------------------------+
| I2C       | on-chip    | i2c                                 |
+-----------+------------+-------------------------------------+


Other hardware features are not yet supported on this Zephyr port.

The default configuration can be found in the defconfig file:
:zephyr_file:`boards/st/stm32wb5mm_dk/stm32wb5mm_dk_defconfig`

Bluetooth and compatibility with STM32WB Copro Wireless Binaries
================================================================

To operate bluetooth on STM32WB5MMG, Cortex-M0 core should be flashed with
a valid STM32WB Coprocessor binaries (either 'Full stack' or 'HCI Layer').
These binaries are delivered in STM32WB Cube packages, under
``Projects/STM32WB_Copro_Wireless_Binaries/STM32WB5x/``.

For compatibility information with the various versions of these binaries,
please check `modules/hal/stm32/lib/stm32wb/hci/README`_
in the ``hal_stm32`` repo.

Note that since STM32WB Cube package V1.13.2, `"full stack"` binaries are not
compatible anymore for a use in Zephyr and only `"HCI Only"` versions should be
used on the M0 side.

Connections and IOs
===================


Default Zephyr Peripheral Mapping:
----------------------------------

.. rst-class:: rst-columns

- UART_1 TX/RX : PB7/PB6 ( Connected to ST-Link VCP)
- LPUART_1 TX/RX : PA3/PA2
- USB : PA11/PA12
- SWD : PA13/PA14
- I2C3: SDA/SCL PB11/PB13 (Sensor I2C bus)

System Clock
------------

STM32WB5MMG System Clock could be driven by internal or external oscillator,
as well as main PLL clock. By default System clock is driven by HSE clock at 32MHz.

Serial Port
-----------

STM32WB5MM-DK board has 2 (LP)U(S)ARTs. The Zephyr console output is assigned to USART1.
Default settings are ``115200 8N1``.

LEDs
----
STM32WB5MM-DK has two types of LEDs, The resources coming from STM32WB5MMG are
shared between the RGB and IR LEDs. It is not possible to use them
simultaneously. The selection is done by JP4 and JP5 jumpers.
To use the RGB LED, JP5 must be ON and JP4 OFF. In this configuration,
GPIO_SELECT2 (PH1) is the chip select for this RGB device on SPI1.

Buttons
-------
STM32WB5MM-DK has two user buttons. The first button is mapped to PC12,
and the second to PC13. They have the aliases sw0 and sw1 respectively.

Programming and Debugging
*************************

Applications for the ``stm32wb5mm_dk`` board configuration can be built the
usual way (see :ref:`build_an_application`).

Flashing
========

STM32WB5MM-DK has an on-board ST-Link to flash and debug the firmware on the
module.


Flashing ``hello_world`` application to STM32WB5MM-DK
------------------------------------------------------

Connect the STM32WB5MM-DK to your host computer using the USB port (CN11).
Then build and flash an application. Here is an example for the ``hello_world``
application.

Run a serial host program to connect with your  STM32WB5MM-DK board:

.. code-block:: console

   $ minicom -D /dev/ttyACM0

Then first build and flash the application for the STM32WB5MM-DK board.

.. zephyr-app-commands::
   :zephyr-app: samples/hello_world
   :board: stm32wb5mm_dk
   :goals: build flash

Reset the board and you should see the following messages on the console:

.. code-block:: console

	Hello World! stm32w5mm_dk

Debugging
=========

You can debug an application in the usual way.  Here is an example for the
`Hello_World`_  application.

.. zephyr-app-commands::
   :zephyr-app: samples/hello_world
   :board: stm32wb5mm_dk
   :maybe-skip-config:
   :goals: debug

.. _STM32WB5MM-DK on www.st.com:
   https://www.st.com/en/evaluation-tools/stm32wb5mm-dk.html
.. _STM32WB5MMG datasheet:
   https://www.st.com/resource/en/datasheet/stm32wb5mmg.pdf
.. _modules/hal/stm32/lib/stm32wb/hci/README:
   https://github.com/zephyrproject-rtos/hal_stm32/blob/main/lib/stm32wb/hci/README
.. _Hello_World:
   https://docs.zephyrproject.org/latest/samples/hello_world/README.html

Part 3

한국어 전문 번역

STM32WB5MM-DK

개요

STM32WB5MM-DK는 Cortex-M4와 Cortex-M0+ 기반 STM32WB5MMG module의 complete demonstration/development platform입니다. BLE 5.2와 IEEE 802.15.4-2011 compliant multi-protocol ultra-low-power radio를 내장합니다.

  • STM32WB5MMG: Flash 1MB·SRAM 256KB
    • dual-core Cortex-M4 + M0+
    • 2.4GHz transceiver
    • 0.96-inch 128×64 OLED
    • 128Mbit Quad-SPI NOR
    • temperature sensor
    • accelerometer/gyroscope
    • ToF·gesture sensor
    • digital microphone
    • RGB LED
    • infrared LED
    • user 2개+reset 1개 push button과 touch key 1개
  • connector
    • STMod+
    • Arduino Uno V3
    • Micro-B user USB
    • TAG10 footprint
  • 전원
    • ST-LINK/V2-1 USB
    • Arduino/external connector/USB charger/USB power의 5V
  • VCP·debug port USB re-enumeration ST-LINK/V2-1

하드웨어

STM32WB55VGY 기반 STM32WB5MMG는 인증된 small-form-factor 2.4GHz module입니다. BLE 5.4, Zigbee 3.0, OpenThread, dynamic/static concurrent mode와 proprietary 802.15.4를 지원합니다. 높은 receiver sensitivity와 output power, coin-cell·energy harvesting을 지원하는 low-power 특성을 제공합니다.

  • FlexPowerControl ultra-low-power
  • FPU Cortex-M4
  • radio
    • 2.4GHz
    • Bluetooth 5.4
    • IEEE 802.15.4-2011 PHY·MAC
    • Zigbee 3.0
    • BLE 1Mbps -96dBm·802.15.4 -100dBm sensitivity
    • +6dBm까지 1dB step output
    • integrated balun
    • 2Mbps
    • GATT caching
    • EATT
    • advertising extension
    • power-control용 accurate RSSI
  • clock
    • integrated trimming capacitor 32MHz crystal
    • RTC 32kHz LSE
    • 32kHz ±5% LSI1
    • 32kHz ±500ppm LSI2
    • LSE auto-trimmed 100kHz~48MHz MSI, ±0.25%보다 우수
    • factory-trimmed 16MHz HSI ±1%
    • system·USB·SAI·ADC PLL 2개

Zephyr 지원 기능

인터페이스컨트롤러드라이버/컴포넌트
UARTon-chipserial port-polling; serial port-interrupt
I2Con-chipi2c

그 밖의 기능은 아직 지원되지 않습니다. 기본 설정은 boards/st/stm32wb5mm_dk/stm32wb5mm_dk_defconfig입니다.

Bluetooth coprocessor binary 호환성

Bluetooth를 사용하려면 Cortex-M0에 STM32WB Coprocessor binary를 flash해야 합니다. Cube package의 Projects/STM32WB_Copro_Wireless_Binaries/STM32WB5x/ 아래 Full stack 또는 HCI Layer가 해당됩니다.

연결과 I/O

기본 Zephyr 주변장치 매핑

  • UART_1 TX/RX : PB7/PB6 (ST-Link VCP)
  • LPUART_1 TX/RX : PA3/PA2
  • USB : PA11/PA12
  • SWD : PA13/PA14
  • I2C3 SDA/SCL : PB11/PB13 (sensor bus)

Clock·serial

기본 system clock은 32MHz HSE입니다. (LP)U(S)ART 2개 중 console은 USART1이며 115200 8N1입니다.

LED와 button

RGB와 IR LED는 STM32WB5MMG resource를 공유해 동시에 사용할 수 없습니다. RGB LED를 쓰려면 JP5 ON·JP4 OFF로 두며 이때 GPIO_SELECT2 (PH1)가 SPI1 RGB device chip-select입니다. User button 1은 PC12/sw0, button 2는 PC13/sw1입니다.

프로그래밍과 디버깅

CN11 USB와 on-board ST-Link를 사용합니다.

$ minicom -D /dev/ttyACM0
west build -b stm32wb5mm_dk samples/hello_world
west flash

reset 뒤 원문 출력은 보드 이름에서 b가 빠진 다음 문자열입니다.

Hello World! stm32w5mm_dk

debug

west build -b stm32wb5mm_dk samples/hello_world
west debug

참고 자료

Source

출처

영어 원문에는 문단, 문서 지시문, 표, 코드, 코드 심벌, 경로를 그대로 보존했습니다.