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

Zephyr 3.7.0 · Boards · ST · Mini Board

STM32F103 Mini

Yellow·blue STM32F103 Mini의 SPI·USB pinout과 ROM/SWD flash 경로를 연결합니다.

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

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

Part 1

요약·해설

지원표 12행, variant image 2개와 pinout, UART·SPI·I2C·PWM·USB mapping, BOOT0 ROM bootloader와 alt-text 오기를 보존했습니다.

MCU

STM32F103RC

Core

Cortex-M3

Clock

72MHz

Flash

ROM / SWD

Part 2

접을 수 있는 영어 원문 전체

영어 원문 전체 펼치기
원문 SHA-256 F36F17E3D2C6C042D9D4AB99EAEB7F2245A1F0DA3216449FC83504B22A242669
.. _stm32f103_mini_board:

STM32F103 Mini
################

Overview
********

The STM32F103_MINI board features an ARM Cortex-M3 based STM32F103RC MCU
with a wide range of connectivity support and configurations. There are
multiple version of this board like ``stm32f103_mini``.

.. image:: ../../../../../../../boards/st/stm32f103_mini/doc/img/stm32f103_mini_yellow.jpg
   :align: center
   :alt: STM32F103 Mini Yellow

.. image:: ../../../../../../../boards/st/stm32f103_mini/doc/img/stm32f103_mini_blue.jpg
   :align: center
   :alt: STM32F103 Mini Blue

Hardware
********
STM32F103 Mini provides the following hardware components:

- STM32 microcontroller in QFP64 package

- Flexible board power supply:

  - USB VBUS or external source (3.3V, 5V, 7 - 12V)
  - Power management access point

- Two LEDs:

  - User LED (LD1), power LED (LD2)

- USB re-enumeration capability:

  - Mass storage

More information about STM32F103RC can be found here:

- `STM32F103 reference manual`_
- `STM32F103 data sheet`_

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

The Zephyr stm32f103_mini 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             |
+-----------+------------+-------------------------------------+
| FLASH     | on-chip    | flash memory                        |
+-----------+------------+-------------------------------------+
| WATCHDOG  | on-chip    | independent watchdog                |
+-----------+------------+-------------------------------------+
| ADC       | on-chip    | ADC Controller                      |
+-----------+------------+-------------------------------------+
| PWM       | on-chip    | pwm                                 |
+-----------+------------+-------------------------------------+
| SPI       | on-chip    | spi                                 |
+-----------+------------+-------------------------------------+
| USB       | on-chip    | USB device                          |
+-----------+------------+-------------------------------------+
| COUNTER   | on-chip    | rtc                                 |
+-----------+------------+-------------------------------------+

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

The default configuration can be found in
:zephyr_file:`boards/st/stm32f103_mini/stm32f103_mini_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.

Board connectors:
-----------------
.. image:: ../../../../../../../boards/st/stm32f103_mini/doc/img/stm32f103_mini_pin.jpg
   :align: center
   :alt: Nucleo F103RB connectors

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

- UART_1 TX/RX: PA9/PA10
- UART_2 TX/RX: PA2/PA3 (ST-Link Virtual COM Port)
- SPI1 NSS/SCK/MISO/MOSI: PA4/PA5/PA6/PA7
- SPI2 NSS/SCK/MISO/MOSI: PB12/PB13/PB14/PB15
- I2C1 SDA/SCL: PB9/PB8
- PWM1_CH1: PA8
- USER_PB: PC13
- LD1: PA5
- USB_DC DM/DP: PA11/PA12

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

The on-board 8MHz crystal is used to produce a 72MHz system clock with PLL.

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

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

Flashing
========

There are 2 main entry points for flashing STM32F1X SoCs, one using the ROM
bootloader, and another by using the SWD debug port (which requires additional
hardware such as ST-Link). Flashing using the ROM bootloader requires a special activation
pattern, which can be triggered by using the BOOT0 pin.

Flashing an application to stm32f103 mini
-----------------------------------------

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

.. zephyr-app-commands::
   :zephyr-app: samples/basic/blinky
   :board: stm32f103_mini
   :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
:zephyr:code-sample:`blinky` application.

.. zephyr-app-commands::
   :zephyr-app: samples/basic/blinky
   :board: stm32f103_mini
   :maybe-skip-config:
   :goals: debug

References
**********

.. target-notes::

.. _STM32F103 reference manual:
   https://www.st.com/resource/en/reference_manual/cd00171190.pdf

.. _STM32F103 data sheet:
   https://www.st.com/resource/en/datasheet/stm32f103rc.pdf

Part 3

한국어 전문 번역

STM32F103 Mini yellow
STM32F103 Mini blue

개요

STM32F103 Mini는 Cortex-M3 STM32F103RC 기반 compact board이며 stm32f103_mini를 포함한 여러 version이 존재합니다.

Hardware

  • QFP64 STM32 MCU
  • USB VBUS 또는 external 3.3V·5V·7~12V와 power-management access point
  • LD1 user LED와 LD2 power LED
  • USB mass-storage re-enumeration

Zephyr 지원 기능

InterfaceControllerDriver/Component
NVICon-chipnested vector interrupt controller
UARTon-chipserial port-polling; serial port-interrupt
PINMUXon-chippinmux
GPIOon-chipgpio
CLOCKon-chipreset and clock control
FLASHon-chipflash memory
WATCHDOGon-chipindependent watchdog
ADCon-chipADC Controller
PWMon-chippwm
SPIon-chipspi
USBon-chipUSB device
COUNTERon-chiprtc

표 밖 기능은 아직 지원하지 않습니다. 기본 설정은 boards/st/stm32f103_mini/stm32f103_mini_defconfig입니다.

Connection과 I/O

각 GPIO는 push-pull/open-drain output, pull-up/pull-down 선택 input 또는 peripheral alternate function으로 설정할 수 있습니다. 대부분 digital/analog alternate function과 공유되며 analog input을 제외한 GPIO는 high-current capable입니다.

STM32F103 Mini pinout

원문 주의: pinout image의 alt text는 다른 board명인 “Nucleo F103RB connectors”라고 적혀 있습니다.

기본 Zephyr peripheral mapping

  • UART_1 TX/RX : PA9/PA10
  • UART_2 TX/RX : PA2/PA3 (ST-Link Virtual COM Port)
  • SPI1 NSS/SCK/MISO/MOSI : PA4/PA5/PA6/PA7
  • SPI2 NSS/SCK/MISO/MOSI : PB12/PB13/PB14/PB15
  • I2C1 SDA/SCL : PB9/PB8
  • PWM1_CH1 : PA8
  • USER_PB : PC13
  • LD1 : PA5
  • USB_DC DM/DP : PA11/PA12

System clock

On-board 8MHz crystal과 PLL로 72MHz system clock을 만듭니다.

Programming and debugging

STM32F1X flash 경로는 BOOT0 activation pattern으로 시작하는 ROM bootloader와 추가 ST-Link hardware가 필요한 SWD 두 가지입니다.

Flashing

west build -b stm32f103_mini samples/basic/blinky
west flash

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

Debugging

west build -b stm32f103_mini samples/basic/blinky
west debug

참고 자료

Source

출처

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