1.. zephyr:board:: stm32f030_demo
2
3This board has the bare minimum components required to power on
4the STM32F030F4P6 MCU. Most of the GPIOs on the STM32 SoC have
5been exposed in the external headers with silk screen labels
6that match the SoC's pin names.
7
8For practical use, you'll need to add additional components
9and circuits using a breadboard, for example.
10
11More information about the board can be found at the `stm32-base.org website`_.
12
13More information about STM32F030F4P6 can be found here:
14
15- `STM32F030 reference manual`_
16- `STM32F030 data sheet`_
17
18Hardware
19********
20
21- STM32F030F4P6 ARM Cortex-M0 processor, frequency up to 48 MHz
22- 16 KiB of flash memory and 4 KiB of RAM
23- 8 MHz quartz crystal
24- 1 user LED
25- One reset button
26- 2-way jumper (BOOT0)
27- Serial (1x4 male dupont (2.54mm))
28- SWD (1x4 male dupont (2.54mm))
29- USB port (power only)
30
31Supported Features
32==================
33
34The Zephyr stm32f030_demo board configuration supports the following
35hardware features:
36
37+-----------+------------+-------------------------------------+
38| Interface | Controller | Driver/Component                    |
39+===========+============+=====================================+
40| NVIC      | on-chip    | nested vector interrupt controller  |
41+-----------+------------+-------------------------------------+
42| UART      | on-chip    | serial port                         |
43+-----------+------------+-------------------------------------+
44| PINMUX    | on-chip    | pinmux                              |
45+-----------+------------+-------------------------------------+
46| GPIO      | on-chip    | gpio                                |
47+-----------+------------+-------------------------------------+
48| WATCHDOG  | on-chip    | independent watchdog                |
49+-----------+------------+-------------------------------------+
50| die-temp  | on-chip    | die temperature sensor              |
51+-----------+------------+-------------------------------------+
52
53Other hardware features are not yet supported on this Zephyr porting.
54
55The default configuration can be found in
56:zephyr_file:`boards/others/stm32f030_demo/stm32f030_demo_defconfig`
57
58Pin Mapping
59===========
60
61Default Zephyr Peripheral Mapping:
62----------------------------------
63
64- UART_1 TX/RX : PA9/PA10
65- LED : PA4
66
67Programming and Debugging
68*************************
69
70Applications for the ``stm32f030_demo`` board configuration can be built and
71flashed in the usual way (see :ref:`build_an_application` and
72:ref:`application_run` for more details).
73
74Flashing
75========
76
77The board can be flashed by using ST-LINKV2 in-circuit debugger and programmer.
78This interface is supported by the openocd version included in the Zephyr SDK.
79
80Flashing an application to STM32F030 DEMO BOARD
81-----------------------------------------------
82
83Here is an example for the :zephyr:code-sample:`blinky` application.
84
85.. zephyr-app-commands::
86   :zephyr-app: samples/basic/blinky
87   :board: stm32f030_demo
88   :goals: build flash
89
90You will see the LED blinking every second.
91
92Debugging
93=========
94
95You can debug an application in the usual way. Here is an example for the
96:zephyr:code-sample:`blinky` application.
97
98.. zephyr-app-commands::
99   :zephyr-app: samples/basic/blinky
100   :board: stm32f030_demo
101   :maybe-skip-config:
102   :goals: debug
103
104References
105**********
106
107.. target-notes::
108
109.. _stm32-base.org website:
110   https://stm32-base.org/boards/STM32F030F4P6-STM32F030-DEMO-BOARD-V1.1
111
112.. _STM32F030 reference manual:
113   https://www.st.com/resource/en/reference_manual/dm00091010.pdf
114
115.. _STM32F030 data sheet:
116   https://www.st.com/resource/en/datasheet/stm32f030f4.pdf
117