boards/st/stm32f072_eval/doc/index.rst
.. zephyr:board:: stm32f072_eval
Overview
The STM32F072-EVAL Discovery kit features an ARM Cortex-M0 based STM32F072VBT6 MCU with a wide range of connectivity support and configurations. Here are some highlights of the STM32F072-EVAL board:
Hardware
STM32F072-EVAL Discovery kit provides the following hardware components:
More information about STM32F072VB can be found here:
STM32F072VB on www.st.com_STM32F072 reference manual_.. zephyr:board-supported-hw::
STM32F072-EVAL Discovery kit has 6 GPIO controllers. These controllers are responsible for pin muxing, input/output, pull-up, etc.
For more details please refer to STM32F072-EVAL board User Manual.
STM32F072-EVAL System Clock could be driven by an internal or external oscillator, as well as the main PLL clock. By default the System clock is driven by the PLL clock at 48MHz, driven by an 8MHz high speed internal clock.
STM32F072-EVAL Discovery kit has up to 4 UARTs. The Zephyr console output is assigned to UART2. Default settings are 115200 8N1.
Programming and Debugging
.. zephyr:board-supported-runners::
STM32F072-EVAL Discovery kit includes an ST-LINK/V2 embedded debug tool interface.
Applications for the stm32f072_eval board configuration can be built and
flashed in the usual way (see :ref:build_an_application and
:ref:application_run for more details).
The board is configured to be flashed using west STM32CubeProgrammer_ runner,
so its :ref:installation <stm32cubeprog-flash-host-tools> is required.
Alternatively, OpenOCD or JLink can also be used to flash the board using
the --runner (or -r) option:
.. code-block:: console
$ west flash --runner openocd $ west flash --runner jlink
Here is an example for the :zephyr:code-sample:blinky application.
.. zephyr-app-commands:: :zephyr-app: samples/basic/blinky :board: stm32f072_eval :goals: build flash
You will see the LED blinking every second.
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: stm32f072_eval :maybe-skip-config: :goals: debug
.. _STM32F072VB on www.st.com: https://www.st.com/en/microcontrollers/stm32f072vb.html
.. _STM32F072 reference manual: https://www.st.com/resource/en/reference_manual/dm00031936.pdf
.. _STM32CubeProgrammer: https://www.st.com/en/development-tools/stm32cubeprog.html