boards/others/stm32_min_dev/doc/index.rst
.. zephyr:board:: stm32_min_dev
Overview
The STM32 Minimum Development Board, is a popular and inexpensive
breadboard-friendly breakout board for the STM32F103x8_ CPU. There
are two variants of the board:
Zephyr applications can use the stm32_min_dev@blue or stm32_min_dev@black board configuration to use these boards.
As the name suggests, these boards have the bare minimum components required to power on the CPU. For practical use, you'll need to add additional components and circuits using a breadboard, for example.
This port is a starting point for your own customizations and not a complete port for a specific board. Most of the GPIOs on the STM32 SoC has been exposed in the external header with silk screen labels that match the SoC's pin names.
Each board vendor has their own variations in pin mapping on their boards' external connectors and placement of components. Many vendors use port PC13/PB12 for connecting an LED, so only this device is supported by our Zephyr port. Additional device support is left for the user to implement.
More information on hooking up peripherals and lengthy how to articles can be
found at EmbedJournal_.
The pinout diagram of STM32 Minimum Development Blue Pill board can be seen below. The Black Pill's one is similar:
.. figure:: img/stm32_min_dev_pinout_blue.jpg :align: center :alt: Pinout for STM32 Minimum Development Blue Pill Board
Pinout for STM32 Minimum Development Blue Pill Board
The board can be flashed by using STLinkV2 with the following connections.
+--------+---------------+ | Pin | STLINKv2 | +========+===============+ | G | GND | +--------+---------------+ | CLK | Clock | +--------+---------------+ | IO | SW IO | +--------+---------------+ | V3 | VCC | +--------+---------------+
The boot configuration for this board is configured through jumpers on B0 (Boot 0) and B1 (Boot 1). The pins B0 and B1 are present in between logic 0 and 1 lines. The silk screen on the PCB reads BX- or BX+ to indicate 0 and 1 logic lines for B0 and B1 respectively.
+--------+--------+-------------------+---------------------------------------------+ | Boot 1 | Boot 0 | Boot Mode | Aliasing | +========+========+===================+=============================================+ | X | 0 | Main Flash Memory | Main flash memory is selected as boot space | +--------+--------+-------------------+---------------------------------------------+ | 0 | 1 | System Memory | System memory is selected as boot space | +--------+--------+-------------------+---------------------------------------------+ | 1 | 1 | Embedded SRAM | Embedded SRAM is selected as boot space | +--------+--------+-------------------+---------------------------------------------+
.. zephyr:board-supported-hw::
The on-board 8Mhz crystal is used to produce a 72Mhz system clock with PLL.
STM32 Minimum Development Board has 3 U(S)ARTs. The Zephyr console output is assigned to UART_1. Default settings are 115200 8N1.
The board has one on-board LED that is connected to PB12/PC13 on the black/blue variants respectively.
Programming and Debugging
.. zephyr:board-supported-runners::
Applications for the stm32_min_dev@(blue|black) board configuration can be
built and flashed in the usual way (see :ref:build_an_application and
:ref:application_run for more details).
Here is an example for the :zephyr:code-sample:blinky application.
.. zephyr-app-commands:: :zephyr-app: samples/basic/blinky :board: stm32_min_dev :goals: build flash
You can debug an application in the usual way. Here is an example for the
:zephyr:code-sample:hello_world application.
.. zephyr-app-commands:: :zephyr-app: samples/hello_world :board: stm32_min_dev :maybe-skip-config: :goals: debug
.. _STM32F103x8: https://www.st.com/resource/en/datasheet/stm32f103c8.pdf .. _EmbedJournal: https://embedjournal.com/tag/stm32-min-dev/