boards/others/stm32f103_mini/doc/index.rst
.. zephyr: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:: img/stm32f103_mini_yellow.jpg :align: center :alt: STM32F103 Mini Yellow
.. image:: 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:
Two LEDs:
USB re-enumeration capability:
More information about STM32F103RC can be found here:
STM32F103 reference manual_STM32F103 data sheet_.. zephyr:board-supported-hw::
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.
.. image:: img/stm32f103_mini_pin.jpg :align: center :alt: Nucleo F103RB connectors
The on-board 8MHz crystal is used to produce a 72MHz system clock with PLL.
Programming and Debugging
.. zephyr:board-supported-runners::
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).
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.
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.
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