STM32F072 Evaluation

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:

  • Four 5 V power supply options: power jack, ST-LINK/V2 USB connector, user USB connector, or daughter board

  • Stereo audio jack, which supports a headset with microphone connected to DAC and ADC of STM32F072VBT6.

  • 2G Byte (or more) SPI interface MicroSD card

  • I2C compatible serial interface temperature sensor

  • RF E2PROM

  • RS232 and RS485 communication

  • IrDA transceiver

  • IR LED and IR receiver

  • SWD debug support, ST-LINK/V2 embedded

  • 240x320 TFT color LCD connected to SPI interface of STM32F072VBT6

  • Joystick with 4-direction control and selector

  • Reset and tamper buttons

  • Four color user LEDs and two LEDs as MCU low power alarm

  • Extension connector for daughter board or wrapping board

  • MCU voltage choice: fixed 3.3 V or adjustable from 1.65 V to 3.6 V

  • USB full-speed connector

  • Touch sensing buttons

  • RTC with backup battery

  • CAN2.0A/B compliant connector

  • Light Dependent Resistor (LDR)

  • Potentiometer

  • Two HDMI connectors with DDC and CEC

  • Smart Card slot

  • Motor control connector

Hardware

STM32F072-EVAL Discovery kit provides the following hardware components:

  • STM32F072VBT6 in LQFP100 package

  • ARM® 32-bit Cortex® -M0 CPU

  • 48 MHz max CPU frequency

  • VDD from 2.0 V to 3.6 V

  • 128 KB Flash

  • 16 KB SRAM with HW parity

  • GPIO with external interrupt capability

  • one 12-bit ADC with 16 channels

  • one 12-bit D/A converters with 2 channels

  • RTC

  • Advanced-control Timer

  • General Purpose Timers (8)

  • Watchdog Timers (2)

  • USART (4)

  • I2C (2)

  • SPI (2)

  • CAN

  • USB 2.0 OTG FS with on-chip PHY

  • CRC calculation unit

  • DMA Controller

  • HDMI CEC Controller

  • 24 capacitive sensing channels for touchkey, linear, and rotary touch sensors

  • Up to 87 fast I/Os: 68 I/Os with 5V tolerant capability and 19 with independent supply

More information about STM32F072VB can be found here:

Supported Features

The stm32f072_eval 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.
stm32f072_eval
/
stm32f072xb

Type

Location

Description

Compatible

CPU

on-chip

ARM Cortex-M0 CPU1

arm,cortex-m0

ADC

on-chip

STM32 ADC1

st,stm32-adc

CAN

on-chip

STM32 CAN controller1

st,stm32-bxcan

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 provider4

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 counters5

st,stm32-counter

DAC

on-chip

STM32 family DAC1

st,stm32-dac

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 Controller6

st,stm32-gpio

I2C

on-chip

STM32 I2C V2 controller2

st,stm32-i2c-v2

Input

on-board

Group of GPIO-bound input keys1

gpio-keys

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

Memory controller

on-chip

STM32 Battery Backed RAM1

st,stm32-bbram

MTD

on-chip

STM32 flash memory1

st,stm32-nv-flash

PHY

on-chip

This binding is to be used by all the usb transceivers which are built-in with USB IP1

usb-nop-xceiv

Pin control

on-chip

STM32 Pin controller1

st,stm32-pinctrl

PWM

on-chip

STM32 PWM7

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 family TEMP node for production calibrated sensors with two calibration temperatures1

st,stm32-temp-cal

on-chip

STM32 VBAT1

st,stm32-vbat

Serial controller

on-chip

STM32 USART1 3

st,stm32-usart

SMbus

on-chip

STM32 SMBus controller2

st,stm32-smbus

SPI

on-chip

STM32 SPI controller with embedded Rx and Tx FIFOs2

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 timers9

st,stm32-timers

USB

on-chip

STM32 USB controller1

st,stm32-usb

Watchdog

on-chip

STM32 watchdog1

st,stm32-watchdog

on-chip

STM32 system window watchdog1

st,stm32-window-watchdog

Pin Mapping

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.

Default Zephyr Peripheral Mapping:

  • UART_2_TX : PD5

  • UART_2_RX : PD6

  • TAMPER_PB : PC13

  • JOYSTICK_RIGHT_PB : PE3

  • JOYSTICK_LEFT_PB : PF2

  • JOYSTICK_UP_PB : PF9

  • JOYSTICK_DOWN_PB : PF10

  • JOYSTICK_SEL_PB : PA0

  • LD1 : PD8

  • LD2 : PD9

  • LD3 : PD10

  • LD4 : PD11

System Clock

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.

Serial Port

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

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 Building an Application and Run an Application for more details).

Flashing

The board is configured to be flashed using west STM32CubeProgrammer runner, so its installation is required.

Alternatively, OpenOCD or JLink can also be used to flash the board using the --runner (or -r) option:

$ west flash --runner openocd
$ west flash --runner jlink

Flashing an application to STM32F072-EVAL

Here is an example for the Blinky application.

# From the root of the zephyr repository
west build -b stm32f072_eval 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 stm32f072_eval samples/basic/blinky
west debug