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

Zephyr 3.7.0 · Boards · ST · Cortex-M0 Discovery

ST STM32F072B Discovery

L3GD20·touch·CAN board의 peripheral mapping과 원문 clock 충돌을 확인합니다.

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

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

Part 1

요약·해설

지원표 9행, gyroscope·touch·LED, UART·I2C·SPI·CAN pin, external transceiver와 48/72MHz 원문 충돌을 보존했습니다.

MCU

STM32F072RB

Sensor

L3GD20

CAN

External transceiver

Source note

48MHz vs 72MHz

Part 2

접을 수 있는 영어 원문 전체

영어 원문 전체 펼치기
원문 SHA-256 64E69BE1C76E9D70B0322E2B99A53056783B29AA88326E1C7E68C0A5FACED4C9
.. _stm32f072b_disco_board:

ST STM32F072B Discovery
#######################

Overview
********

The STM32F072B-DISCO Discovery kit features an ARM Cortex-M0 based STM32F072RB
MCU with everything required for beginners and experienced users to get
started quickly. Here are some highlights of the STM32F072B-DISCO board:

- STM32 microcontroller in LQFP64 package
- Extension header for LQFP64 I/Os for a quick connection to the prototyping
  board and easy probing
- On-board ST-LINK/V2, debugger/programmer with SWD connector
- Board power supply: through USB bus or from an external 5 V supply voltage
- External application power supply: 3 V and 5 V

- Six LEDs:

  - LD1 (red/green) for USB communication
  - LD2 (red) for 3.3 V power on
  - Four user LEDs: LD3 (orange), LD4 (green), LD5 (red) and LD6 (blue)

- Two push-buttons: USER and RESET
- USB USER with Mini-B connector
- L3GD20, ST MEMS motion sensor, 3-axis digital output gyroscope
- One linear touch sensor or four touch keys
- RF EEprom daughter board connector

.. image:: ../../../../../../../boards/st/stm32f072b_disco/doc/img/stm32f072b_disco.jpg
     :align: center
     :alt: STM32F072B-DISCO

More information about the board can be found at the
`STM32F072B-DISCO website`_.

Hardware
********

STM32F072B-DISCO Discovery kit provides the following hardware components:

- STM32F072RBTT6 in LQFP64 package
- ARM |reg| 32-bit Cortex |reg| -M0 CPU
- 48 MHz max CPU frequency
- VDD from 2.0 V to 3.6 V
- 128 KB Flash
- 16 KB SRAM
- GPIO with external interrupt capability
- 12-bit ADC with 39 channels
- 12-bit D/A converters
- RTC
- General Purpose Timers (12)
- USART/UART (4)
- I2C (2)
- SPI (2)
- CAN
- USB 2.0 full speed interface
- DMA Controller
- 24 capacitive sensing channels for touchkey, linear and rotary touch sensors

More information about STM32F072RB can be found here:
       - `STM32F072RB on www.st.com`_
       - `STM32F072xB reference manual`_

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

The Zephyr stm32f072b_disco 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               |
+-----------+------------+-------------------------------------+
| PINMUX    | on-chip    | pinmux                              |
+-----------+------------+-------------------------------------+
| GPIO      | on-chip    | gpio                                |
+-----------+------------+-------------------------------------+
| CLOCK     | on-chip    | reset and clock control             |
+-----------+------------+-------------------------------------+
| WATCHDOG  | on-chip    | independent watchdog                |
+-----------+------------+-------------------------------------+
| I2C       | on-chip    | i2c controller                      |
+-----------+------------+-------------------------------------+
| SPI       | on-chip    | SPI controller                      |
+-----------+------------+-------------------------------------+
| CAN       | on-chip    | CAN controller                      |
+-----------+------------+-------------------------------------+

.. note:: CAN feature requires CAN transceiver, such as `SK Pang CAN breakout board`_.

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

The default configuration can be found in
:zephyr_file:`boards/st/stm32f072b_disco/stm32f072b_disco_defconfig`


Pin Mapping
===========

STM32F072B-DISCO Discovery kit has 6 GPIO controllers. These controllers are
responsible for pin muxing, input/output, pull-up, etc.

For more details please refer to `STM32F072B-DISCO board User Manual`_.

Default Zephyr Peripheral Mapping:
----------------------------------
- UART_1_TX : PB6
- UART_1_RX : PB7
- I2C1_SCL : PB8
- I2C1_SDA : PB9
- I2C2_SCL : PB10
- I2C2_SDA : PB11
- SPI1_SCK : PB3
- SPI1_MISO : PB4
- SPI1_MOSI : PB5
- USER_PB : PA0
- LD3 : PC6
- LD4 : PC8
- LD5 : PC9
- LD6 : PC7
- CAN_RX : PB8
- CAN_TX : PB9

System Clock
============

STM32F072B-DISCO System Clock could be driven by internal or external
oscillator, as well as main PLL clock. By default System clock is driven
by PLL clock at 72 MHz, driven by internal 8 MHz oscillator.

Serial Port
===========

STM32F072B-DISCO Discovery kit has up to 4 UARTs. The Zephyr console output
is assigned to UART 1. Default settings are 115200 8N1.

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

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

Flashing
========

STM32F072B-DISCO board includes an ST-LINK/V2 embedded debug tool interface.
This interface is supported by the openocd version included in the Zephyr SDK.


Flashing an application to STM32F072B-DISCO
-------------------------------------------

First, connect the STM32F072B-DISCO Discovery kit to your host computer using
the USB port to prepare it for flashing. Then build and flash your application.

Here is an example for the :ref:`hello_world` application.

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

Run a serial host program to connect with your board. A TTL(3.3V) serial
adapter is required.

.. code-block:: console

   $ minicom -D /dev/<tty device>

Replace <tty_device> with the port where the serial adapter can be found.
For example, under Linux, /dev/ttyUSB0.

You should see the following message on the console:

.. code-block:: console

   Hello World! arm


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: stm32f072b_disco
   :goals: debug

References
**********

.. target-notes::

.. _STM32F072B-DISCO website:
   https://www.st.com/en/evaluation-tools/32f072bdiscovery.html


.. _STM32F072B-DISCO board User Manual:
   https://www.st.com/resource/en/user_manual/dm00099401.pdf

.. _STM32F072RB on www.st.com:
   https://www.st.com/en/microcontrollers/stm32f072rb.html

.. _STM32F072xB reference manual:
   https://www.st.com/resource/en/reference_manual/dm00031936.pdf

.. _SK Pang CAN breakout board:
   https://www.skpang.co.uk/products/can-bus-can-fd-breakout-board-5v-supply-and-5v-logic

Part 3

한국어 전문 번역

STM32F072B-DISCO

개요

STM32F072B-DISCO는 초보자와 숙련자가 빠르게 시작할 수 있는 Cortex-M0 STM32F072RB Discovery kit입니다.

  • LQFP64 STM32 MCU와 모든 I/O용 extension header
  • SWD connector가 있는 ST-LINK/V2
  • USB bus 또는 external 5V board power, application용 3V·5V
  • LED 6개
    • LD1 red/green USB communication
    • LD2 red 3.3V power
    • LD3 orange·LD4 green·LD5 red·LD6 blue user LED
  • USER·RESET button
  • Mini-B user USB
  • L3GD20 3-axis digital gyroscope
  • Linear touch sensor 1개 또는 touch key 4개
  • RF EEPROM daughterboard connector

Hardware

  • LQFP64 STM32F072RBTT6 Cortex-M0, 최대 48MHz
  • VDD 2.0~3.6V
  • Flash 128KB, SRAM 16KB
  • External-interrupt GPIO
  • 39-channel 12-bit ADC와 12-bit DAC
  • RTC, general-purpose timer 12개
  • USART/UART 4개, I2C 2개, SPI 2개, CAN
  • USB 2.0 full-speed, DMA
  • Touchkey·linear·rotary용 capacitive channel 24개

Zephyr 지원 기능

InterfaceControllerDriver/Component
NVICon-chipnested vector interrupt controller
UARTon-chipserial port-polling; serial port-interrupt
PINMUXon-chippinmux
GPIOon-chipgpio
CLOCKon-chipreset and clock control
WATCHDOGon-chipindependent watchdog
I2Con-chipi2c controller
SPIon-chipSPI controller
CANon-chipCAN controller

CAN에는 SK Pang CAN breakout 같은 external transceiver가 필요합니다. 표 밖 기능은 아직 지원하지 않습니다. 기본 설정은 boards/st/stm32f072b_disco/stm32f072b_disco_defconfig입니다.

Pin mapping

GPIO controller 6개가 pin muxing, input/output, pull-up 등을 담당합니다.

기본 Zephyr peripheral mapping

  • UART_1_TX : PB6
  • UART_1_RX : PB7
  • I2C1_SCL : PB8
  • I2C1_SDA : PB9
  • I2C2_SCL : PB10
  • I2C2_SDA : PB11
  • SPI1_SCK : PB3
  • SPI1_MISO : PB4
  • SPI1_MOSI : PB5
  • USER_PB : PA0
  • LD3 : PC6
  • LD4 : PC8
  • LD5 : PC9
  • LD6 : PC7
  • CAN_RX : PB8
  • CAN_TX : PB9

Clock과 serial

원문은 최대 CPU frequency를 48MHz라고 설명하면서 기본 system clock은 internal 8MHz oscillator가 구동하는 PLL의 72MHz라고 적습니다. 수치 충돌을 임의 수정하지 않았습니다. UART는 최대 4개이며 console은 UART1, 115200 8N1입니다.

Programming and debugging

On-board ST-LINK/V2는 Zephyr SDK OpenOCD가 지원합니다. Console에는 TTL 3.3V serial adapter가 필요합니다.

west build -b stm32f072b_disco samples/hello_world
west flash
$ minicom -D /dev/<tty device>

<tty_device>를 adapter port로 바꿉니다. Linux 예시는 /dev/ttyUSB0입니다.

Hello World! arm

Debugging

west build -b stm32f072b_disco samples/hello_world
west debug

참고 자료

Source

출처

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