STM32F030 DEMO BOARD

This board has the bare minimum components required to power on the STM32F030F4P6 MCU. Most of the GPIOs on the STM32 SoC have been exposed in the external headers with silk screen labels that match the SoC’s pin names.

For practical use, you’ll need to add additional components and circuits using a breadboard, for example.

More information about the board can be found at the stm32-base.org website [1].

More information about STM32F030F4P6 can be found here:

Hardware

  • STM32F030F4P6 ARM Cortex-M0 processor, frequency up to 48 MHz

  • 16 KiB of flash memory and 4 KiB of RAM

  • 8 MHz quartz crystal

  • 1 user LED

  • One reset button

  • 2-way jumper (BOOT0)

  • Serial (1x4 male dupont (2.54mm))

  • SWD (1x4 male dupont (2.54mm))

  • USB port (power only)

Supported Features

The stm32f030_demo board supports the hardware features listed below.

on-chip / on-board
Feature integrated in the SoC / present on the board.
2 / 2
Number of instances that are enabled / disabled.
Click on the label to see the first instance of this feature in the board/SoC DTS files.
vnd,foo
Compatible string for the Devicetree binding matching the feature.
Click on the link to view the binding documentation.

stm32f030_demo/stm32f030x6 target

Type

Location

Description

Compatible

CPU

on-chip

ARM Cortex-M0 CPU1

arm,cortex-m0

ADC

on-chip

STM32 ADC1

st,stm32-adc

Clock control

on-chip

STM32F0/G0 RCC (Reset and Clock controller)1

st,stm32f0-rcc

on-chip

STM32 HSE Clock1

st,stm32-hse-clock

on-chip

Generic fixed-rate clock provider3

fixed-clock

on-chip

STM32 LSE Clock1

st,stm32-lse-clock

on-chip

STM32F0/F3 Main PLL1

st,stm32f0-pll-clock

Counter

on-chip

STM32 counters4

st,stm32-counter

DMA

on-chip

STM32 DMA controller (V2bis) for the stm32F0, stm32F1 and stm32L1 soc families1

st,stm32-dma-v2bis

Flash controller

on-chip

STM32 Family flash controller1

st,stm32-flash-controller

GPIO & Headers

on-chip

STM32 GPIO Controller2 3

st,stm32-gpio

I2C

on-chip

STM32 I2C V2 controller1

st,stm32-i2c-v2

Interrupt controller

on-chip

ARMv6-M NVIC (Nested Vectored Interrupt Controller) controller1

arm,v6m-nvic

on-chip

STM32 External Interrupt Controller1

st,stm32-exti

LED

on-board

Group of GPIO-controlled LEDs1

gpio-leds

MTD

on-chip

STM32 flash memory1

st,stm32-nv-flash

Pin control

on-chip

STM32 Pin controller1

st,stm32-pinctrl

PWM

on-chip

STM32 PWM5

st,stm32-pwm

Reset controller

on-chip

STM32 Reset and Clock Control (RCC) Controller1

st,stm32-rcc-rctl

RTC

on-chip

STM32 RTC1

st,stm32-rtc

Sensors

on-chip

STM32 VREF+1

st,stm32-vref

on-chip

STM32 TEMP for production calibrated sensors with a single calibration temperature1

st,stm32c0-temp-cal

Serial controller

on-chip

STM32 USART1

st,stm32-usart

SMbus

on-chip

STM32 SMBus controller1

st,stm32-smbus

SPI

on-chip

STM32 SPI controller with embedded Rx and Tx FIFOs1

st,stm32-spi-fifo

SRAM

on-chip

Generic on-chip SRAM description1

mmio-sram

Timer

on-chip

ARMv6-M System Tick1

arm,armv6m-systick

on-chip

STM32 timers5

st,stm32-timers

Watchdog

on-chip

STM32 watchdog1

st,stm32-watchdog

on-chip

STM32 system window watchdog1

st,stm32-window-watchdog

Pin Mapping

Default Zephyr Peripheral Mapping:

  • UART_1 TX/RX : PA9/PA10

  • LED : PA4

Programming and Debugging

Applications for the stm32f030_demo board configuration can be built and flashed in the usual way (see Building an Application and Run an Application for more details).

Flashing

The board can be flashed by using ST-LINKV2 in-circuit debugger and programmer. This interface is supported by the openocd version included in the Zephyr SDK.

Flashing an application to STM32F030 DEMO BOARD

Here is an example for the Blinky application.

# From the root of the zephyr repository
west build -b stm32f030_demo samples/basic/blinky
west flash

You will see the LED blinking every second.

Debugging

You can debug an application in the usual way. Here is an example for the Blinky application.

# From the root of the zephyr repository
west build -b stm32f030_demo samples/basic/blinky
west debug

References