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

Zephyr 3.7.0 · Boards · ST · Dual USB-C

ST STM32G081B Evaluation

45W DRP와 sink-only port, legacy·USB-C daughterboard 구성을 설명합니다.

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

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

Part 1

요약·해설

지원표 6행, motherboard와 daughterboard 전체, 12개 pin mapping과 표 오기를 보존했습니다.

MCU

STM32G081RB

Port 1

DRP · 45W

Port 2

Sink

PD

USB PD 3.0

Part 2

접을 수 있는 영어 원문 전체

영어 원문 전체 펼치기
원문 SHA-256 B376222D96305E753A9EAA837E5739F6181F1EC333937D941D46A5BCB3DD102A
.. _stm32g081b_eval_board:

ST STM32G081B Evaluation
########################

Overview
********
The STM32G081B-EVAL Evaluation board is a high-end development platform, for
Arm Cortex-M0+ core-based STM32G081RBT6 microcontroller, with USB Type-C and
power delivery controller interfaces (UCPD), compliant with USB type-C r1.2
and USB PD specification r3.0, two I2Cs, two SPIs, five USARTs, one LP UART,
one 12-bit ADC, two 12-bit DACs, two GP comparators, two LP timers, internal
32 KB SRAM and 128 KB Flash, CEC, SWD debugging support. The full range of
hardware features on the STM32G081B-EVAL Evaluation board includes a mother
board, a legacy peripheral daughterboard and a USB-C and Power Delivery
daughterboard, which help to evaluate all peripherals (USB Type-C connector
with USB PD, motor control connector, RS232, RS485, Audio DAC, microphone ADC,
TFT LCD, IrDA, IR LED, IR receiver, LDR, MicroSD card, CEC on two HDMI
connectors, smart card slot, RF E2PROM & Temperature sensor…), and to develop
applications.

The board integrates an ST-LINK/V2-1 as an embedded in-circuit debugger and
programmer for the STM32 MCU. The daughterboard and extension connectors
provide an easy way to connect a daughterboard or wrapping board for the
user's specific applications.

The USB-C and Power Delivery daughterboard
features two independent USB-C ports controlled by an STM32G0. USB-C port 1
is dual role power (DRP) and can provide up-to 45 W. USB-C Port 2 is sink
only. Both support USB PD protocol and alternate mode functionality.

Application firmware examples are provided to evaluate the USB-C technology
through various use cases.



- Mother board
    - STM32G081RBT6 microcontroller with 128 Kbytes of Flash memory and
      32 Kbytes of RAM in LQFP64 package
    - MCU voltage choice fixed 3.3 V or adjustable from 1.65 V to 3.6 V
    - I2C compatible serial interface
    - RTC with backup battery
    - 8-Gbyte or more SPI interface microSD card
    - Potentiometer
    - 4 color user LEDs and one LED as MCU low-power alarm
    - Reset, Tamper and User buttons
    - 4-direction control and selection joystick
    - Board connectors:
        - 5 V power jack
        - RS-232 and RS485 communications
        - Stereo audio jack including analog microphone input
        - microSD card
        - Extension I2C connector
        - Motor-control connector
    - Board extension connectors:
        - Daughterboard connectors for legacy peripheral daughter board or
          USB-C daughterboard
        - Extension connectors for daughterboard or wire-wrap board
    - Flexible power-supply options:
        - 5 V power jack
        - ST-LINK/V2-1 USB connector
        - Daughterboard
    - On-board ST-LINK/V2-1 debugger/programmer with USB re-enumeration
      capability: mass storage, virtual COM port and debug port
    - Legacy peripheral daughterboard
        - IrDA transceiver
        - IR LED and IR receiver
        - Light dependent resistor (LDR)
        - Temperature Sensor
        - Board connectors:
            - Two HDMI connectors with DDC and CEC
            - Smart card slot
    - USB-C and Power Delivery daughterboard
        - Mux for USB3.1 Gen1 / DisplayPort input and Type-C port1 output
        - Mux for Type-C port2 input and DisplayPort output / USB2.0
        - VCONN on Type-C port1
        - USB PD on Type-C port1
        - Board connectors:
            - Type-C port1 DRP (dual-role port)
            - Type-C port2 Sink
            - DisplayPort input
            - DisplayPort output
            - USB 3.1 Gen1 Type-B receptacle
            - USB2.0 Type-A receptacle
            - 19 V power jack for USB PD

.. image:: ../../../../../../../boards/st/stm32g081b_eval/doc/img/stm32g081b_eval.jpg
   :align: center
   :alt: STM32G081B-EVAL

More information about the board can be found at the `STM32G081B-EVAL website`_.


More information about STM32G081RB can be found here:

- `G081RB on www.st.com`_
- `STM32G081 reference manual`_


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

The Zephyr stm32g081b_eval board configuration supports the following hardware features:

+-----------+------------+-------------------------------------+
| Interface | Controller | Driver/Component                    |
+===========+============+=====================================+
| NVIC      | on-chip    | nested vector interrupt controller  |
+-----------+------------+-------------------------------------+
| UART      | on-chip    | serial port-polling;                |
|           |            | serial port-interrupt               |
+-----------+------------+-------------------------------------+
| UCPD      | on-chip    + ucpd                                |
+-----------+------------+-------------------------------------+
| ADC       | on-chip    | adc                                 |
+-----------+------------+-------------------------------------+
| GPIO      | on-chip    | gpio                                |
+-----------+------------+-------------------------------------+
| WATCHDOG  | on-chip    | independent watchdog                |
+-----------+------------+-------------------------------------+

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

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

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

Each of the GPIO pins can be configured by software as output (push-pull or open-drain), as
input (with or without pull-up or pull-down), or as peripheral alternate function. Most of the
GPIO pins are shared with digital or analog alternate functions. All GPIOs are high current
capable except for analog inputs.

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

- UART_3 TX/RX       : PC10/PC11 (ST-Link Virtual Port Com)
- UCPD2              : PD0/PD2
- BUTTON (JOY_SEL)   : PA0
- BUTTON (JOY_LEFT)  : PC8
- BUTTON (JOY_DOWN)  : PC3
- BUTTON (JOY_RIGHT) : PC7
- BUTTON (JOY_UP)    : PC2
- VBUS DISCHARGE     : PB14
- LED1        : PD5
- LED2        : PD6
- LED3        : PD8
- LED4        : PD9

For more details please refer to `STM32G0 Evaluation board User Manual`_.

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

Applications for the ``stm32g081b_eval`` board configuration can be built and
flashed in the usual way (see :ref:`build_an_application` and
:ref:`application_run` for more details).

Flashing
========

The STM32G081B Evaluation board includes an ST-LINK/V2-1 embedded debug tool interface.

.. code-block:: console

   $ west flash

Flashing an application to the STM32G081B_EVAL
----------------------------------------------

Here is an example for the :zephyr:code-sample:`blinky` application.

.. zephyr-app-commands::
   :zephyr-app: samples/basic/blinky
   :board: stm32g081b_eval
   :goals: build flash

You will see the LED blinking every second.

Debugging
=========

You can debug an application in the usual way.  Here is an example for the
:ref:`hello_world` application.

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

References
**********

.. target-notes::

.. _STM32G081B-EVAL website:
   https://www.st.com/en/evaluation-tools/stm32g081b-eval.html

.. _STM32G081 reference manual:
   https://www.st.com/resource/en/reference_manual/rm0444-stm32g0x1-advanced-armbased-32bit-mcus-stmicroelectronics.pdf

.. _STM32G0 Evaluation board User Manual:
   https://www.st.com/resource/en/user_manual/um2403-evaluation-board-with-stm32g081rb-mcu-stmicroelectronics.pdf

.. _G081RB on www.st.com:
   https://www.st.com/en/microcontrollers/stm32g081rb.html

Part 3

한국어 전문 번역

STM32G081B-EVAL

개요

STM32G081B-EVAL은 Cortex-M0+ STM32G081RBT6을 위한 high-end evaluation platform입니다. USB Type-C r1.2·USB PD r3.0 UCPD, I2C 2개, SPI 2개, USART 5개, LPUART 1개, 12-bit ADC 1개, 12-bit DAC 2개, comparator 2개, low-power timer 2개, SRAM 32KB, Flash 128KB, CEC, SWD를 제공합니다. motherboard, legacy peripheral daughterboard, USB-C/PD daughterboard로 구성되어 USB PD, motor control, RS232/485, audio, TFT LCD, IrDA/IR, LDR, microSD, HDMI CEC, smart card, RF EEPROM·temperature sensor 등을 평가합니다.

ST-LINK/V2-1이 embedded debugger/programmer 역할을 하며 daughterboard와 extension connector로 사용자 회로를 연결합니다. USB-C/PD daughterboard의 port 1은 최대 45W를 공급하는 DRP이고 port 2는 sink-only입니다. 두 port 모두 USB PD와 alternate mode를 지원하며 use-case firmware example이 제공됩니다.

Board 구성

  • Motherboard
    • LQFP64 STM32G081RBT6: Flash 128KB, RAM 32KB
    • MCU voltage 3.3V 고정 또는 1.65~3.6V 조절
    • I2C-compatible serial interface
    • backup battery RTC
    • 8GB 이상 SPI microSD
    • potentiometer
    • color user LED 4개와 MCU low-power alarm LED
    • Reset·Tamper·User button
    • 4-direction+select joystick
    • connector
      • 5V power jack
      • RS-232·RS485
      • analog microphone input 포함 stereo audio jack
      • microSD
      • I2C extension
      • motor-control
    • extension
      • legacy 또는 USB-C daughterboard connector
      • daughterboard/wire-wrap extension connector
    • 5V jack·ST-LINK USB·daughterboard flexible power
    • mass storage·VCP·debug re-enumeration ST-LINK/V2-1
  • Legacy peripheral daughterboard
    • IrDA transceiver
    • IR LED·receiver
    • LDR
    • temperature sensor
    • DDC·CEC HDMI connector 2개
    • smart-card slot
  • USB-C/Power Delivery daughterboard
    • USB3.1 Gen1/DisplayPort input→Type-C port1 mux
    • Type-C port2 input→DisplayPort output/USB2.0 mux
    • port1 VCONN·USB PD
    • Type-C port1 DRP
    • Type-C port2 Sink
    • DisplayPort input·output
    • USB 3.1 Gen1 Type-B receptacle
    • USB2.0 Type-A receptacle
    • USB PD용 19V power jack

Zephyr 지원 기능

InterfaceControllerDriver/Component
NVICon-chipnested vector interrupt controller
UARTon-chipserial port-polling; serial port-interrupt
UCPDon-chipucpd
ADCon-chipadc
GPIOon-chipgpio
WATCHDOGon-chipindependent watchdog

기본 설정은 boards/st/stm32g081b_eval/stm32g081b_eval_defconfig입니다.

Connections and I/O

GPIO는 push-pull/open-drain output, pull-up/down input, peripheral alternate function으로 구성할 수 있습니다. analog input을 제외하면 high-current capable입니다.

기본 Zephyr peripheral mapping

  • UART_3 TX/RX : PC10/PC11 (ST-Link Virtual Port Com)
  • UCPD2 : PD0/PD2
  • BUTTON (JOY_SEL) : PA0
  • BUTTON (JOY_LEFT) : PC8
  • BUTTON (JOY_DOWN) : PC3
  • BUTTON (JOY_RIGHT) : PC7
  • BUTTON (JOY_UP) : PC2
  • VBUS DISCHARGE : PB14
  • LED1 : PD5
  • LED2 : PD6
  • LED3 : PD8
  • LED4 : PD9

Programming and debugging

embedded ST-LINK/V2-1을 사용합니다.

$ west flash
west build -b stm32g081b_eval samples/basic/blinky
west flash

LED가 1초마다 깜박입니다.

Debug

west build -b stm32g081b_eval samples/hello_world
west debug

참고 자료

Source

출처

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