Mainstream ARM Cortex-M0 Access line MCU with 16 Kbytes Flash, 48 MHz CPU

The STM32F031x4/x6 microcontrollers incorporate the high-performance ARM®Cortex®-M0 32-bit RISC core operating at up to 48 MHz frequency, high-speed embedded memories (up to 32 Kbytes of Flash memory and 4 Kbytes of SRAM), and an extensive range of enhanced peripherals and I/Os. All devices offer standard communication interfaces (one I2C, one SPI/ I2S and one USART), one 12-bit ADC, five 16-bit timers, one 32-bit timer and an advanced-control PWM timer.

The STM32F031x4/x6 microcontrollers operate in the -40 to +85 °C and -40 to +105 °C temperature ranges, from a 2.0 to 3.6 V power supply. A comprehensive set of power-saving modes allows the design of low-power applications.

The STM32F031x4/x6 microcontrollers include devices in six different packages ranging from 20 pins to 48 pins with a die form also available upon request. Depending on the device chosen, different sets of peripherals are included.

These features make the STM32F031x4/x6 microcontrollers suitable for a wide range of applications such as application control and user interfaces, hand-held equipment, A/V receivers and digital TV, PC peripherals, gaming and GPS platforms, industrial applications, PLCs, inverters, printers, scanners, alarm systems, video intercoms and HVACs.

Key Features

  • Core: ARM® 32-bit Cortex® -M0 CPU, frequency up to 48 MHz
  • Memories
    • 16 to 32 Kbytes of Flash memory
    • 4 Kbytes of SRAM with HW parity
  • CRC calculation unit
  • Reset and power management
    • Digital and I/Os supply: 2.0 to 3.6 V
    • Analog supply: VDDA = from VDD to 3.6 V
    • Power-on/Power-down reset (POR/PDR)
    • Programmable voltage detector (PVD)
    • Low power modes: Sleep, Stop and Standby
    • VBAT supply for RTC and backup registers
  • Clock management
    • 4 to 32 MHz crystal oscillator
    • 32 kHz oscillator for RTC with calibration
    • Internal 8 MHz RC with x6 PLL option
    • Internal 40 kHz RC oscillator
  • Up to 39 fast I/Os
    • All mappable on external interrupt vectors
    • Up to 26 I/Os with 5 V tolerant capability
  • 5-channel DMA controller
  • 1 × 12-bit, 1.0 μs ADC (up to 10 channels)
    • Conversion range: 0 to 3.6V
    • Separate analog supply from 2.4 up to 3.6 V
  • Up to 9 timers
    • 1 x 16-bit 7-channel advanced-control timer for 6 channels PWM output, with deadtime generation and emergency stop
    • 1 x 32-bit and 1 x 16-bit timer, with up to 4 IC/OC, usable for IR control decoding
    • 1 x 16-bit timer, with 2 IC/OC, 1 OCN, deadtime generation and emergency stop
    • 1 x 16-bit timer, with IC/OC and OCN, deadtime generation, emergency stop and modulator gate for IR control
    • 1 x 16-bit timer with 1 IC/OC
    • Independent and system watchdog timers
    • SysTick timer: 24-bit downcounter
  • Calendar RTC with alarm and periodic wakeup from Stop/Standby
  • Communication interfaces
    • 1 x I2 C interface, supporting Fast Mode Plus (1 Mbit/s) with 20 mA current sink, SMBus/PMBus, and wakeup from Stop mode
    • 1 x USART supporting master synchronous SPI and modem control, ISO7816 interface, LIN, IrDA capability, auto baud rate detection and wakeup feature
    • 1 x SPI (18 Mbit/s) with 4 to 16 programmable bit frames, with I2S interface multiplexed
  • Serial wire debug (SWD)
  • 96-bit unique ID
  • Extended temperature range: -40 to +105°C
  • All packages ECOPACK® 2

Circuit Diagram

Resources

Technical Documentation

Product Specifications
Description Version Size
DS10111 DS10111: ARM®-based 32-bit MCU with up to 32 Kbyte Flash, 9 timers, ADC and communication interfaces, 2.0 - 3.6 V 6.0 1 MB
Application Notes
Description Version Size
AN3126 AN3126: Audio and waveform generation using the DAC in STM32 microcontrollers 3.0 816 KB
AN4775 AN4775: Basics and low-cost solution proposals to move from legacy USB2.0 connector to USB Type-C™ connector with STM32 devices 1.0 443 KB
AN4067 AN4067: Calibrating STM32F0x1, STM32F0x2 and STM32F0x8 lines internal RC oscillators 2.0 511 KB
AN1709 AN1709: EMC design guide for ST microcontrollers 2.0 843 KB
AN3960 AN3960: ESD considerations for touch sensing applications on MCUs 2.0 353 KB
AN1181 AN1181: Electrostatic discharge sensitivity measurement 1.6 49 KB
AN4566 AN4566: Extending the DAC performance of STM32 microcontrollers 2.0 365 KB
AN4776 AN4776: General-purpose timer cookbook 2.0 1 MB
AN4080 AN4080: Getting started with STM32F0x1/x2/x8 hardware development 4.0 568 KB
AN4312 AN4312: Guidelines for designing touch sensing applications with surface sensors 3.0 1 MB
AN4299 AN4299: Guidelines to improve conducted noise robustness on STM32F0/F3, STM32L0/L4 series touch sensing applications 3.0 613 KB
AN3236 AN3236: Guidelines to increase the number of touch sensing touchkeys 4.0 300 KB
AN4750 AN4750: Handling of soft errors in STM32 applications 2.1 410 KB
AN4803 AN4803: High-speed SI simulations using IBIS and board-level simulations using HyperLynx SI on STM32 32-bit ARM® Cortex® MCUs 1.1 2 MB
AN2834 AN2834: How to get the best ADC accuracy in STM32 microcontrollers 3.1 1 MB
AN4229 AN4229: How to implement a vocoder solution using STM32 microcontrollers 1.1 466 KB
AN4991 AN4991: How to wake up an STM32F0/F3/L0/L4 microcontroller from low-power mode with the USART or the LPUART 1.0 317 KB
AN4099 AN4099: Implementation of transmitters and receivers for infrared remote control protocols with MCUs of the STM32F0 and STM32F3 Series 3.0 750 KB
AN3070 AN3070: Managing the Driver Enable signal for RS-485 and IO-Link communications with the STM32™’s USART 1.3 191 KB
AN4617 AN4617: Migrating between STM32F0 and STM32L0 microcontrollers 1.0 461 KB
AN4088 AN4088: Migrating between STM32F1 and STM32F0 series microcontrollers 3.0 1 MB
AN3364 AN3364: Migration and compatibility guidelines for STM32 microcontroller applications 3.1 127 KB
AN4705 AN4705: Migration guidelines from PIC18 to STM32F0 Series with software expansion for STM32Cube 2.0 1 MB
AN2867 AN2867: Oscillator design guide for STM8AF/AL/S and STM32 microcontrollers 11.0 2 MB
AN4908 AN4908: STM32 USART automatic baud rate detection 1.0 268 KB
AN4013 AN4013: STM32 cross-series timer overview 6.0 555 KB
AN4989 AN4989: STM32 microcontroller debug toolbox 2.0 5 MB
AN2606 AN2606: STM32 microcontroller system memory boot mode 31.0 3 MB
AN4735 AN4735: STM32Cube firmware examples for STM32F0 Series 6.0 421 KB
AN4062 AN4062: STM32F0DISCOVERY peripheral firmware examples 3.1 511 KB
AN2945 AN2945: STM8S and STM32™ MCUs: a consistent 8/32-bit product line for painless migration 1.3 212 KB
AN4310 AN4310: Sampling capacitor selection guide for MCU based touch sensing applications 3.0 208 KB
AN4316 AN4316: Tuning a STMTouch-based application 3.0 783 KB
AN3155 AN3155: USART protocol used in the STM32 bootloader 7.0 617 KB
AN4277 AN4277: Using STM32 device PWM shut-down features for motor control and digital power conversion 4.0 834 KB
AN4104 AN4104: Using the STM32F0xx DMA controller 1.1 89 KB
AN3371 AN3371: Using the hardware real-time clock (RTC) in STM32 F0, F2, F3, F4 and L1 series of MCUs 5.1 421 KB
AN4759 AN4759: Using the hardware real-time clock (RTC) in low-power modes with STM32 microcontrollers 3.0 1 MB
AN4655 AN4655: Virtually increasing the number of serial communication peripherals in STM32 applications 1.1 338 KB
Technical Notes & Articles
Description Version Size
TN1163 TN1163: Description of WLCSP for microcontrollers and recommendations for its use 4.0 1 MB
TN0830 TN0830: How to use EWARM 6.2x with projects built with EWARM 6.1 and previous versions 1.2 97 KB
TN1204 TN1204: Tape and reel shipping media for STM32 microcontrollers in BGA packages 2.1 745 KB
TN1205 TN1205: Tape and reel shipping media for STM8 and STM32 microcontrollers in FPN packages 3.0 753 KB
TN1206 TN1206: Tape and reel shipping media for STM8 and STM32 microcontrollers in QFP packages 3.0 830 KB
TN1207 TN1207: Tape and reel shipping media for STM8 and STM32 microcontrollers in SO packages 1.0 755 KB
TN1208 TN1208: Tape and reel shipping media for STM8 and STM32 microcontrollers in TSSOP and SSOP packages 1.0 743 KB
Reference Manuals
Description Version Size
RM0091 RM0091: STM32F0x1/STM32F0x2/STM32F0x8 advanced ARM®-based 32-bit MCUs 9.0 13 MB
Programming Manuals
Description Version Size
PM0215 PM0215: STM32F0xxx Cortex-M0 programming manual 1.1 822 KB
Errata Sheets
Description Version Size
ES0236 ES0236: STM32F031x4/x6 device limitations 3.0 423 KB
Device Option Lists
Description Version Size
STM32F031 option list - 32 Kbytes 1.0 1 KB

HW Model, CAD Libraries & SVD

HW Model, CAD Libraries & SVD
Description Version Size
STM32F0 CAD Symbol and Footprint files 1.1 2 MB
STM32F0 IBIS models 1.0 8 MB
STM32F0 System View Description 1.3 211 KB

Presentations & Training Material

Presentations
Description Version Size
Discover the STM32 with a free 32-bit Cortex-M0/0+ MCU Professional Developer’s Package: FAQ 1.0 290 KB
Discover the STM32 with a free 32-bit Cortex-M0/0+ MCU Professional Developer’s Package: Webinar Presentation 1.0 4 MB
Getting started with STM32F0 or STM32L0 series 1.0.0 606 KB
STM32 - 32-bit ARM Cortex-M MCUs 3.0 1 MB
STM32 and STM8 Functional Safety Packages 2 1 MB

Publications and Collaterals

Flyers
Description Version Size
Get ready for the largest IoT development ecosystem 17.02 741 KB
STM32 GUI solutions - Avanced HMI now achievable on embedded systems 17.02 1 MB
STM32 Nucleo boards - Unified scalable offering 17.11 1 MB
STM32 for makers - Releasing your creativity 17.06 2 MB
Brochures
Description Version Size
STM32 32-bit MCU family - Leading supplier of ARM® Cortex®-M microcontrollers 17.10 2 MB
STM32F0 Series - Mainstream 32-bit MCUs 17.07 1 MB
STM32F3 series - Mainstream 32-bit MCUs 17.09 2 MB

Quality & Reliability

Product Certifications
Description Version Size
STM32 CAN conformance test authentication sheet 1.0 182 KB

Tools and Software

Development Tools
Hardware Development Tools
Software Development Tools
Embedded Software
MCUs Embedded Software