Part 1
요약·해설
지원표 15행, pin 34개, F3 sensor·USB·CAN 구조와 PCB E용 별도 build/debug target까지 보존했습니다.
STM32F303VC
72MHz
Gyro · Accel · Mag
A/B · C · E+
Part 2
접을 수 있는 영어 원문 전체
영어 원문 전체 펼치기
70EEB9FA7066D696892ADD2C45532864FE96D2076566F8DEED37B67A00163F12
.. _stm32f3_disco_board:
ST STM32F3 Discovery
####################
Overview
********
The STM32F3DISCOVERY Discovery kit features an ARM Cortex-M4 based STM32F303VC
MCU with everything required for beginners and experienced users to get
started quickly. Here are some highlights of the STM32F3DISCOVERY board:
- STM32 microcontroller in LQFP100 package
- Extension header for all LQFP100 I/Os for quick connection to prototyping
board and easy probing
- On-board, ST-LINK/V2 for PCB version A or B or ST-LINK/V2-B for PCB version
C and newer, debugger/programmer with SWD connector
- Board power supply: through USB bus or from an external 3 V or 5 V supply
voltage
- External application power supply: 3 V and 5 V
- Ten LEDs:
- 3.3 V power on (LD1)
- USB communication (LD2)
- Eight user LEDs: red (LD3/LD10), blue (LD4/LD9), orange (LD5/LD9)
and green (LD6/LD7)
- Two push-buttons: USER and RESET
- USB USER with Mini-B connector
- L3GD20 or I3G4250D, ST MEMS motion sensor, 3-axis digital output gyroscope
- LSM303DLHC or LSM303AGR, ST MEMS system-in-package featuring a 3D digital linear
acceleration sensor and a 3D digital magnetic sensor;
.. HINT::
Recent PCB revisions (E and newer) are shipped with I3G4250D and LSM303AGR.
.. image:: ../../../../../../../boards/st/stm32f3_disco/doc/img/stm32f3_disco.jpg
:align: center
:alt: STM32F3DISCOVERY
More information about the board can be found at the
`STM32F3DISCOVERY website`_.
Hardware
********
STM32F3DISCOVERY Discovery kit provides the following hardware components:
- STM32F303VCT6 in LQFP100 package
- ARM |reg| 32-bit Cortex |reg| -M4 CPU with FPU
- 72 MHz max CPU frequency
- VDD from 2.0 V to 3.6 V
- 256 KB Flash
- 40 KB SRAM
- Routine booster: 8 Kbytes of SRAM on instruction and data bus
- GPIO with external interrupt capability
- 4x12-bit ADC with 39 channels
- 2x12-bit D/A converters
- RTC
- General Purpose Timers (13)
- USART/UART (5)
- I2C (2)
- SPI (3)
- CAN
- USB 2.0 full speed interface
- Infrared transmitter
- DMA Controller
More information about STM32F303VC can be found here:
- `STM32F303VC on www.st.com`_
- `STM32F303xC reference manual`_
Supported Features
==================
The Zephyr stm32f3_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 |
+-----------+------------+-------------------------------------+
| I2C | on-chip | i2c |
+-----------+------------+-------------------------------------+
| SPI | on-chip | spi |
+-----------+------------+-------------------------------------+
| USB | on-chip | USB device |
+-----------+------------+-------------------------------------+
| CAN | on-chip | CAN |
+-----------+------------+-------------------------------------+
| IWDG | on-chip | Independent WatchDoG |
+-----------+------------+-------------------------------------+
| PWM | on-chip | pwm |
+-----------+------------+-------------------------------------+
| ADC | on-chip | adc |
+-----------+------------+-------------------------------------+
| DAC | on-chip | dac |
+-----------+------------+-------------------------------------+
| DMA | on-chip | Direct Memory Access |
+-----------+------------+-------------------------------------+
| die-temp | on-chip | die temperature sensor |
+-----------+------------+-------------------------------------+
| RTC | on-chip | rtc |
+-----------+------------+-------------------------------------+
Other hardware features are not yet supported on Zephyr porting.
The default configuration can be found in
:zephyr_file:`boards/st/stm32f3_disco/stm32f3_disco_defconfig`
Pin Mapping
===========
STM32F3DISCOVERY Discovery kit has 6 GPIO controllers. These controllers are
responsible for pin muxing, input/output, pull-up, etc.
For more details please refer to `STM32F3DISCOVERY board User Manual`_.
Default Zephyr Peripheral Mapping:
----------------------------------
.. rst-class:: rst-columns
- UART_1_TX : PC4
- UART_1_RX : PC5
- UART_2_TX : PA2
- UART_2_RX : PA3
- UART_4_TX : PC10
- UART_4_RX : PC11
- I2C1_SCL : PB6
- I2C1_SDA : PB7
- I2C2_SCL : PA9
- I2C2_SDA : PA10
- SPI1_NSS : PA4
- SPI1_SCK : PA5
- SPI1_MISO : PA6
- SPI1_MOSI : PA7
- SPI2_NSS : PB12
- SPI2_SCK : PB13
- SPI2_MISO : PB14
- SPI2_MOSI : PB15
- CAN1_RX : PD0
- CAN1_TX : PD1
- USB_DM : PA11
- USB_DP : PA12
- USER_PB : PA0
- LD3 : PE9
- LD4 : PE8
- LD5 : PE10
- LD6 : PE15
- LD7 : PE11
- LD8 : PE14
- LD9 : PE12
- LD10 : PE13
- PWM : PA8
- ADC1 : PA0
- DAC1 : PA4
System Clock
============
STM32F3DISCOVERY 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 8 MHz MCO from the ST Link.
Serial Port
===========
STM32F3DISCOVERY Discovery kit has up to 5 UARTs. The Zephyr console output
is assigned to UART1. Default settings are 115200 8N1.
I2C
===
STM32F3DISCOVERY has up to 2 I2Cs. I2C1 is connected to the LSM303DLHC and is
an ultra-compact low-power system-in-package featuring a 3D digital linear
acceleration sensor and a 3D digital magnetic sensor.
USB
===
STM32F3DISCOVERY has a USB 2.0 full-speed device interface available through
its mini USB connector (USB USER).
CAN
===
The STM32F3DISCOVERY does not have an onboard CAN transceiver. In
order to use the CAN bus on the this board, an external CAN bus
transceiver must be connected to ``PD0`` (``CAN1_RX``) and ``PD1``
(``CAN1_TX``).
Programming and Debugging
*************************
Flashing
========
STM32F3DISCOVERY Discovery kit includes a ST-LINK/V2 or ST-LINK/V2-B embedded
debug tool interface.
Applications for the ``stm32f3_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 an application to STM32F3DISCOVERY
-------------------------------------------
First, connect the STM32F3DISCOVERY 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: stm32f3_disco
:goals: build flash
In case you are using a recent PCB revision (E or newer), you have to use an
adapted board definition:
.. zephyr-app-commands::
:zephyr-app: samples/hello_world
:board: stm32f3_disco@E
:goals: build flash
Run a serial host program to connect with your board. For PCB version A or B a
TTL(3.3V) serial adapter is required. For PCB version C and newer a Virtual Com
Port (VCP) is available on the USB ST-LINK port.
.. code-block:: console
$ minicom -D /dev/<tty device>
Replace <tty_device> with the port where the STM32F3DISCOVERY board 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: stm32f3_disco
:goals: debug
Again you have to use the adapted command for newer PCB revisions (E and newer):
.. zephyr-app-commands::
:zephyr-app: samples/hello_world
:board: stm32f3_disco@E
:goals: debug
.. _STM32F3DISCOVERY website:
https://www.st.com/en/evaluation-tools/stm32f3discovery.html
.. _STM32F3DISCOVERY board User Manual:
https://www.st.com/resource/en/user_manual/dm00063382.pdf
.. _STM32F303VC on www.st.com:
https://www.st.com/en/microcontrollers/stm32f303vc.html
.. _STM32F303xC reference manual:
https://www.st.com/resource/en/reference_manual/dm00043574.pdf
Part 3
한국어 전문 번역

개요
STM32F3DISCOVERY Discovery kit는 ARM Cortex-M4 기반 STM32F303VC MCU를 사용하며, 입문자와 숙련자가 빠르게 시작하는 데 필요한 구성을 갖춥니다.
- LQFP100 package STM32 microcontroller
- LQFP100 I/O 전체를 꺼낸 extension header: prototyping board 연결과 probing 지원
- PCB A/B는 on-board ST-LINK/V2, PCB C 이상은 ST-LINK/V2-B debugger/programmer와 SWD connector
- USB bus 또는 외부 3V/5V board power
- 외부 application용 3V·5V power
- LED 10개
- 3.3V power LD1
- USB communication LD2
- user LED 8개: red LD3/LD10, blue LD4/LD9, orange LD5/LD9, green LD6/LD7
- USER·RESET push-button
- Mini-B connector USB USER
- L3GD20 또는 I3G4250D 3-axis digital gyroscope
- LSM303DLHC 또는 LSM303AGR 3D acceleration·3D magnetic sensor SiP
Hardware
- STM32F303VCT6, LQFP100
- FPU를 갖춘 ARM 32-bit Cortex-M4 CPU
- 최대 CPU 72MHz
- VDD 2.0~3.6V
- Flash 256KB
- SRAM 40KB
- instruction/data bus에 연결된 SRAM 8KB routine booster
- external interrupt가 가능한 GPIO
- 39-channel 12-bit ADC 4개
- 12-bit DAC 2개
- RTC
- general-purpose timer 13개
- USART/UART 5개
- I2C 2개
- SPI 3개
- CAN
- USB 2.0 full-speed interface
- infrared transmitter
- DMA controller
Zephyr 지원 기능
| 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 |
| I2C | on-chip | i2c |
| SPI | on-chip | spi |
| USB | on-chip | USB device |
| CAN | on-chip | CAN |
| IWDG | on-chip | Independent WatchDoG |
| PWM | on-chip | pwm |
| ADC | on-chip | adc |
| DAC | on-chip | dac |
| DMA | on-chip | Direct Memory Access |
| die-temp | on-chip | die temperature sensor |
| RTC | on-chip | rtc |
표 밖 하드웨어는 아직 Zephyr port에서 지원하지 않습니다. 기본 설정은 boards/st/stm32f3_disco/stm32f3_disco_defconfig입니다.
Pin mapping
GPIO controller 6개가 pin muxing, input/output, pull-up 등을 담당합니다.
기본 Zephyr peripheral mapping
UART_1_TX : PC4UART_1_RX : PC5UART_2_TX : PA2UART_2_RX : PA3UART_4_TX : PC10UART_4_RX : PC11I2C1_SCL : PB6I2C1_SDA : PB7I2C2_SCL : PA9I2C2_SDA : PA10SPI1_NSS : PA4SPI1_SCK : PA5SPI1_MISO : PA6SPI1_MOSI : PA7SPI2_NSS : PB12SPI2_SCK : PB13SPI2_MISO : PB14SPI2_MOSI : PB15CAN1_RX : PD0CAN1_TX : PD1USB_DM : PA11USB_DP : PA12USER_PB : PA0LD3 : PE9LD4 : PE8LD5 : PE10LD6 : PE15LD7 : PE11LD8 : PE14LD9 : PE12LD10 : PE13PWM : PA8ADC1 : PA0DAC1 : PA4
System clock
내부·외부 oscillator 또는 main PLL을 사용할 수 있습니다. 기본 system clock은 ST-LINK의 8MHz MCO를 입력으로 한 PLL 72MHz입니다.
Serial·I2C·USB·CAN
- UART는 최대 5개이며 Zephyr console은 UART1, 기본 통신은 115200 8N1입니다.
- I2C는 최대 2개입니다. I2C1은 저전력 3D digital acceleration·magnetic sensor SiP인 LSM303DLHC에 연결됩니다.
- USB USER Mini-B connector로 USB 2.0 full-speed device interface를 제공합니다.
- on-board CAN transceiver는 없습니다. CAN bus를 쓰려면 PD0(CAN1_RX)·PD1(CAN1_TX)에 external CAN transceiver를 연결해야 합니다.
Programming and debugging
PCB A/B의 ST-LINK/V2 또는 PCB C 이상의 ST-LINK/V2-B로 application을 build·flash합니다. PCB E 이상은 sensor 구성이 달라 별도 board revision을 지정해야 합니다.
기본 PCB
west build -b stm32f3_disco samples/hello_world
west flashPCB E 이상
west build -b stm32f3_disco@E samples/hello_world
west flash
PCB A/B는 TTL 3.3V serial adapter가 필요하고, PCB C 이상은 USB ST-LINK의 Virtual COM Port를 사용할 수 있습니다.
$ minicom -D /dev/<tty device><tty_device>는 board port로 바꿉니다. Linux 예시는 /dev/ttyUSB0입니다.
Hello World! arm
Debug
west build -b stm32f3_disco samples/hello_world
west debugwest build -b stm32f3_disco@E samples/hello_world
west debug
참고 자료
Source
출처
영어 원문에는 문단, 문서 지시문, 표, 코드, 코드 심벌, 경로를 그대로 보존했습니다.