Skip to main content

STM32G071R8

ARM Cortex-M0+ 32-bit MCU

The STM32G071R8 is a arm cortex-m0+ 32-bit mcu from STMicroelectronics. View the full STM32G071R8 datasheet below including absolute maximum ratings.

Manufacturer

STMicroelectronics

Overview

Part: STM32G071x8/xB

Type: Arm Cortex-M0+ 32-bit MCU

Description: 32-bit Arm Cortex-M0+ MCU with CPU frequency up to 64 MHz, up to 128 KB Flash memory, 36 KB SRAM, and a 1.7 V to 3.6 V operating voltage range.

Operating Conditions:

  • Supply voltage: 1.7 V to 3.6 V
  • Operating temperature: -40°C to 125°C
  • Max CPU frequency: 64 MHz

Absolute Maximum Ratings:

  • Max supply voltage: 4.0 V (VDD, VDDIOx, VDDA)
  • Max junction/storage temperature: 125 °C (Junction), 150 °C (Storage)

Key Specs:

  • Core: Arm 32-bit Cortex-M0+ CPU
  • Flash memory: Up to 128 Kbytes
  • SRAM: 36 Kbytes (32 Kbytes with HW parity check)
  • ADC: 12-bit, 0.4 μs, up to 16 external channels, 0 to 3.6V conversion range
  • DAC: Two 12-bit DACs
  • I2C interfaces: Two, supporting Fast-mode Plus (1 Mbit/s)
  • USARTs: Four, with master/slave synchronous SPI
  • SPIs: Two (32 Mbit/s) with 4- to 16-bit programmable bitframe

Features:

  • CRC calculation unit
  • Power-on/Power-down reset (POR/PDR)
  • Programmable Brownout reset (BOR)
  • Low-power modes: Sleep, Stop, Standby, Shutdown
  • VBAT supply for RTC and backup registers
  • Up to 60 fast I/Os, multiple 5 V-tolerant I/Os
  • 7-channel DMA controller
  • Two fast low-power analog comparators
  • 14 timers (two 128 MHz capable)
  • Calendar RTC with alarm and periodic wakeup
  • One low-power UART
  • HDMI CEC interface
  • USB Type-C Power Delivery controller
  • Serial wire debug (SWD)
  • 96-bit unique ID

Applications:

Package:

  • WLCSP25
  • UFQFPN28
  • LQFP32
  • UFQFPN32
  • LQFP48
  • UFQFPN48
  • LQFP64
  • UFBGA64

Features

  • Includes ST state-of-the-art patented technology
  • Core: Arm ® 32-bit Cortex ® -M0+ CPU, frequency up to 64 MHz
  • -40°C to 85°C/105°C/125°C operating temperature
  • Memories
  • -36 Kbytes of SRAM (32 Kbytes with HW parity check)
  • -Up to 128 Kbytes of flash memory with protection and securable area
  • CRC calculation unit
  • Reset and power management
  • -Power-on/Power-down reset (POR/PDR)
  • -Voltage range: 1.7 V to 3.6 V
  • -Programmable Brownout reset (BOR)
  • -Low-power modes:
  • -Programmable voltage detector (PVD)
  • Sleep, Stop, Standby, Shutdown
  • -VBAT supply for RTC and backup registers
  • Clock management
  • -32 kHz crystal oscillator with calibration
  • -4 to 48 MHz crystal oscillator
  • -Internal 16 MHz RC with PLL option (±1 %)
  • -Internal 32 kHz RC oscillator (±5 %)
  • Up to 60 fast I/Os
  • -Multiple 5 V-tolerant I/Os
  • -All mappable on external interrupt vectors
  • 7-channel DMA controller with flexible mapping
  • 12-bit, 0.4 μs ADC (up to 16 ext. channels)
  • -Conversion range: 0 to 3.6V
  • -Up to 16-bit with hardware oversampling
  • Two 12-bit DACs, low-power sample-and-hold
  • Two fast low-power analog comparators, with programmable input and output, rail-to-rail
  • 14 timers (two 128 MHz capable): 16-bit for advanced motor control, one 32-bit and five 16bit general-purpose, two basic 16-bit, two lowpower 16-bit, two watchdogs, SysTick timer
  • Calendar RTC with alarm and periodic wakeup from Stop/Standby/Shutdown

Pin Configuration

The devices housed in 28-pin and 32-pin packages come in two variants - 'GP' and 'N' (the latter with ordering code having N behind the temperature range digit). Refer to Table 2: Features and peripheral counts for differences.

Figure 3. STM32G071Ex WLCSP25 ballout

Figure 4. STM32G071GxU UFQFPN28 pinout

48

Figure 5. STM32G071KxT LQFP32 pinout

Figure 6. STM32G071KxU UFQFPN32 pinout

48

Figure 7. STM32G071CxT LQFP48 pinout

Figure 8. STM32G071CxU UFQFPN48 pinout

Figure 9. STM32G071RxT LQFP64 pinout

Figure 10. STM32G071RxI UFBGA64 ballout

48

Table 11. Terms and symbols used in Pin assignment and description table

ColumnColumnSymbolDefinition
Pin namePin nameTerminal name corresponds to its by-default function at reset, unless otherwise specified in parenthesis under the pin name.Terminal name corresponds to its by-default function at reset, unless otherwise specified in parenthesis under the pin name.
SSupply pin
Pin typeI I/OInput only pin Input / output pin
I/O structure NoteI/O structure Note_f _a _c _d Upon reset, all I/Os are setOptions for TT or FT I/Os I/O, Fm+ capable I/O, with analog switch function I/O, USB Type-C PD capable I/O, USB Type-C PD Dead Battery function as analog inputs, unless otherwise specified.
Pin functions
Alternate functions
Functions directly selected/enabled through peripheral registers
Functions selected through GPIOx_AFR registersFunctions selected through GPIOx_AFR registers
Additional functions
Pin numberPin numberPin numberPin numberPin numberPin numberPin numberPin number
WLCSP25UFQFPN28 - GPUFQFPN28 - NLQFP32 / UFQFPN32 - GPLQFP32 / UFQFPN32 - NLQFP48 / UFQFPN48UFBGA64LQFP64
----- -A11
----- -B22
----- 1C23

Table 12. Pin assignment and description

Table 12. Pin assignment and description (continued)

Pin numberPin numberPin numberPin numberPin numberPin numberPin numberPin numberPin number
WLCSP25UFQFPN28 - GPUFQFPN28 - NLQFP32 / UFQFPN32 - GPLQFP32 / UFQFPN32 - NLQFP48 / UFQFPN48UFBGA64LQFP64Pin name (function upon reset)
-----2C14PC14- OSC32_IN (PC14)
A51122---PC14- OSC32_IN (PC14)
B522333B15PC15- OSC32_OUT (PC15)
-----4D36VBAT
-----5D27VREF+
C533446D18VDD/VDDA
D544557E19VSS/VSSA
-----8F110PF0-OSC_IN (PF0)
-----9G111PF1- OSC_OUT (PF1)
E5556610E212PF2 - NRST
------E313PC0
------F214PC1
------G215PC2
------H116PC3
C4667711H217PA0

Table 12. Pin assignment and description (continued)

48

Table 12. Pin assignment and description (continued)

Pin numberPin numberPin numberPin numberPin numberPin numberPin numberPin numberPin number
WLCSP25UFQFPN28 - GPUFQFPN28 - NLQFP32 / UFQFPN32 - GPLQFP32 / UFQFPN32 - NLQFP48 / UFQFPN48UFBGA64LQFP64Pin name (function upon reset)
D4778812H318PA1
E4889913G319PA2
C399101014F320PA3
-----15H421PA4
D310101111---PA4
E31111121216G422PA5
C21212131317F423PA6
D21313141418E424PA7
------H525PC4

Table 12. Pin assignment and description (continued)

Table 12. Pin assignment and description (continued)

Pin numberPin numberPin numberPin numberPin numberPin numberPin numberPin number
WLCSP25UFQFPN28 - GPUFQFPN28 - NLQFP32 / UFQFPN32 - GPLQFP32 / UFQFPN32 - NLQFP48 / UFQFPN48UFBGA64LQFP64
----- -H626
E214-151519F527
--14-----
E115-161620G528
---17-21H729
-----22G630
-----23H831
-----24G732
-----25G833

Table 12. Pin assignment and description (continued)

48

Table 12. Pin assignment and description (continued)

Pin numberPin numberPin numberPin numberPin numberPin numberPin numberPin number
WLCSP25UFQFPN28 - GPUFQFPN28 - NLQFP32 / UFQFPN32 - GPLQFP32 / UFQFPN32 - NLQFP48 / UFQFPN48UFBGA64LQFP64
----- 26F634
--15-1727F735
D11616181828F836
---191929E637
-17-202030E738
--17-----
-----31E539
------E840
------D841
---212132D642
C11818222233C843
B11919232334B844

Table 12. Pin assignment and description (continued)

Table 12. Pin assignment and description (continued)

Pin numberPin numberPin numberPin numberPin numberPin numberPin numberPin numberPin number
WLCSP25UFQFPN28 - GPUFQFPN28 - NLQFP32 / UFQFPN32 - GPLQFP32 / UFQFPN32 - NLQFP48 / UFQFPN48UFBGA64LQFP64Pin name (function upon reset)
B22020242435D745PA13
A22121252536C746PA14-BOOT0
A122-26-37C647PA15
------A848PC8
------B749PC9
--22-2638A750PD0
--23-2739B651PD1
--24-2840A652PD2
--25-2941D553PD3
------C554PD4
------B555PD5
------A556PD6
-23-27-42B457PB3
-24-28-43C458PB4

Table 12. Pin assignment and description (continued)

48

Table 12. Pin assignment and description (continued)

Pin numberPin numberPin numberPin numberPin numberPin numberPin numberPin number
WLCSP25UFQFPN28 - GPUFQFPN28 - NLQFP32 / UFQFPN32 - GPLQFP32 / UFQFPN32 - NLQFP48 / UFQFPN48UFBGA64LQFP64
A325-29-44D459
B32626303045A460
A42727313146A361
B42828323247B362
---1148C363
------A264
  1. PC13, PC14 and PC15 are supplied through the power switch. Since the switch only sinks a limited amount of current (3 mA), the use of GPIOs PC13 to PC15 in output mode is limited:
  • These GPIOs must not be used as current sources (for example to drive a LED).
  • The speed should not exceed 2 MHz with a maximum load of 30 pF
  1. After an RTC domain power-up, PC13, PC14 and PC15 operate as GPIOs. Their function then depends on the content of the RTC registers. The RTC registers are not reset upon system reset. For details on how to manage these GPIOs, refer to the RTC domain and RTC register descriptions in the RM0444 reference manual.
  2. RST I/O structure when the PF2-NRST pin is configured as reset (input or input/output mode), FT I/O structure when the PF2-NRST pin is configured as GPIO.
  3. Upon reset, a pull-down resistor might be present on PA8, PB15, PD0, or PD2, depending on the voltage level on PA9/PC6, PA10/PB0, PD1, and PD3, respectively. In order to disable this resistor, strobe the UCPDx_STROBE bit of the SYSCFG_CFGR1 register during start-up sequence.
  4. Pins PA9/PA10 can be remapped in place of pins PA11/PA12 (default mapping), using SYSCFG_CFGR1 register.
  5. Upon reset, these pins are configured as SW debug alternate functions, and the internal pull-up on PA13 pin and the internal pull-down on PA14 pin are activated.

Table 13. Port A alternate function mapping

Table 13. Port A alternate function mapping

PortAF0AF1AF2AF3AF4AF5AF6AF7
PA0SPI2_SCKUSART2_CTSTIM2_CH1_ETR-USART4_TXLPTIM1_OUTUCPD2_FRSTXCOMP1_OUT
PA1SPI1_SCK/ I2S1_CKUSART2_RTS _DE_CKTIM2_CH2-USART4_RXTIM15_CH1NI2C1_SMBAEVENTOUT
PA2SPI1_MOSI/ I2S1_SDUSART2_TXTIM2_CH3-UCPD1_FRSTXTIM15_CH1LPUART1_TXCOMP2_OUT
PA3SPI2_MISOUSART2_RXTIM2_CH4-UCPD2_FRSTXTIM15_CH2LPUART1_RXEVENTOUT
PA4SPI1_NSS/ I2S1_WSSPI2_MOSI--TIM14_CH1LPTIM2_OUTUCPD2_FRSTXEVENTOUT
PA5SPI1_SCK/ I2S1_CKCECTIM2_CH1_ETR-USART3_TXLPTIM2_ETRUCPD1_FRSTXEVENTOUT
PA6SPI1_MISO/ I2S1_MCKTIM3_CH1TIM1_BKIN-USART3_CTSTIM16_CH1LPUART1_CTSCOMP1_OUT
PA7SPI1_MOSI/ I2S1_SDTIM3_CH2TIM1_CH1N-TIM14_CH1TIM17_CH1UCPD1_FRSTXCOMP2_OUT
PA8MCOSPI2_NSSTIM1_CH1--LPTIM2_OUT-EVENTOUT
PA9MCOUSART1_TXTIM1_CH2-SPI2_MISOTIM15_BKINI2C1_SCLEVENTOUT
PA10SPI2_MOSIUSART1_RXTIM1_CH3--TIM17_BKINI2C1_SDAEVENTOUT
PA11SPI1_MISO/ I2S1_MCKUSART1_CTSTIM1_CH4--TIM1_BKIN2I2C2_SCLCOMP1_OUT
PA12SPI1_MOSI/ I2S1_SDUSART1_RTS _DE_CKTIM1_ETR--I2S_CKINI2C2_SDACOMP2_OUT
PA13SWDIOIR_OUT-----EVENTOUT
PA14SWCLKUSART2_TX-----EVENTOUT
PA15SPI1_NSS/ I2S1_WSUSART2_RXTIM2_CH1_ETR-USART4_RTS _DE_CKUSART3_RTS _DE_CK-EVENTOUT

Table 13. Port A alternate function mapping

Table 14. Port B alternate function mapping

PortAF0AF1AF2AF3AF4AF5AF6AF7
PB0SPI1_NSS/ I2S1_WSTIM3_CH3TIM1_CH2N-USART3_RXLPTIM1_OUTUCPD1_FRSTXCOMP1_OUT
PB1TIM14_CH1TIM3_CH4TIM1_CH3N-USART3_RTS _DE_CKLPTIM2_IN1LPUART1_RTS _DEEVENTOUT
PB2-SPI2_MISO--USART3_TXLPTIM1_OUT-EVENTOUT
PB3SPI1_SCK/ I2S1_CKTIM1_CH2TIM2_CH2-USART1_RTS _DE_CK--EVENTOUT
PB4SPI1_MISO/ I2S1_MCKTIM3_CH1--USART1_CTSTIM17_BKIN-EVENTOUT
PB5SPI1_MOSI/ I2S1_SDTIM3_CH2TIM16_BKIN--LPTIM1_IN1I2C1_SMBACOMP2_OUT
PB6USART1_TXTIM1_CH3TIM16_CH1N-SPI2_MISOLPTIM1_ETRI2C1_SCLEVENTOUT
PB7USART1_RXSPI2_MOSITIM17_CH1N-USART4_CTSLPTIM1_IN2I2C1_SDAEVENTOUT
PB8CECSPI2_SCKTIM16_CH1-USART3_TXTIM15_BKINI2C1_SCLEVENTOUT
PB9IR_OUTUCPD2_FRSTXTIM17_CH1-USART3_RXSPI2_NSSI2C1_SDAEVENTOUT
PB10CECLPUART1_RXTIM2_CH3-USART3_TXSPI2_SCKI2C2_SCLCOMP1_OUT
PB11SPI2_MOSILPUART1_TXTIM2_CH4-USART3_RX-I2C2_SDACOMP2_OUT
PB12SPI2_NSSLPUART1_RTS _DETIM1_BKIN--TIM15_BKINUCPD2_FRSTXEVENTOUT
PB13SPI2_SCKLPUART1_CTSTIM1_CH1N-USART3_CTSTIM15_CH1NI2C2_SCLEVENTOUT
PB14SPI2_MISOUCPD1_FRSTXTIM1_CH2N-USART3_RTS _DE_CKTIM15_CH1I2C2_SDAEVENTOUT
PB15SPI2_MOSI-TIM1_CH3N-TIM15_CH1NTIM15_CH2-EVENTOUT

Table 14. Port B alternate function mapping

Table 15. Port C alternate function mapping

PortAF0AF1AF2AF3AF4AF5AF6AF7
PC0LPTIM1_IN1LPUART1_RXLPTIM2_IN1-----
PC1LPTIM1_OUTLPUART1_TXTIM15_CH1-----
PC2LPTIM1_IN2SPI2_MISOTIM15_CH2-----
PC3LPTIM1_ETRSPI2_MOSILPTIM2_ETR-----
PC4USART3_TXUSART1_TXTIM2_CH1_ETR-----
PC5USART3_RXUSART1_RXTIM2_CH2-----
PC6UCPD1_FRSTXTIM3_CH1TIM2_CH3-----
PC7UCPD2_FRSTXTIM3_CH2TIM2_CH4-----
PC8UCPD2_FRSTXTIM3_CH3TIM1_CH1-----
PC9I2S_CKINTIM3_CH4TIM1_CH2-----
PC10USART3_TXUSART4_TXTIM1_CH3-----
PC11USART3_RXUSART4_RXTIM1_CH4-----
PC12LPTIM1_IN1UCPD1_FRSTXTIM14_CH1-----
PC13--TIM1_BKIN-----
PC14--TIM1_BKIN2-----
PC15OSC32_ENOSC_ENTIM15_BKIN-----

Table 15. Port C alternate function mapping

Absolute Maximum Ratings

Stresses above the absolute maximum ratings listed in Table 18 , Table 19 and Table 20 may cause permanent damage to the device. These are stress ratings only and functional operation of the device at these conditions is not implied. Exposure to maximum rating conditions for extended periods may affect device reliability. The device mission profile (application conditions) is compliant with the JEDEC JESD47 qualification standard.

All voltages are defined with respect to V SS .

Table 18. Voltage characteristics

SymbolRatingsMinMaxUnit
V DDExternal supply voltage-0.34.0V
V BATExternal supply voltage on VBAT pin-0.34.0V
V REF+External voltage on VREF+ pin-0.3Min(V DD + 0.4, 4.0)V
V IN (1)Input voltage on FT_xx pins except FT_c-0.3V DD + 4.0 (2)(3)V
V IN (1)Input voltage on FT_c pins-0.35.5V
V IN (1)Input voltage on any other pin-0.34.0V
  1. Refer to Table 19 for the maximum allowed injected current values.
  2. To sustain a voltage higher than 4 V the internal pull-up/pull-down resistors must be disabled.
  3. When an FT_a pin is used by an analog peripheral such as ADC, the maximum V IN is 4 V.

Table 19. Current characteristics

SymbolRatingsMaxUnit
I VDD/VDDACurrent into VDD/VDDA power pin (source) (1)100mA
I VSS/VSSACurrent out of VSS/VSSA ground pin (sink) (2)100mA
I IO(PIN)Output current sunk by any I/O and control pin except FT_f15mA
I IO(PIN)Output current sunk by any FT_f pin20mA
I IO(PIN)Output current sourced by any I/O and control pin15mA

Table 19. Current characteristics

110

Table 19. Current characteristics (continued)

SymbolRatingsMaxUnit
∑ I IO(PIN)Total output current sunk by sum of all I/Os and control pins80mA
∑ I IO(PIN)Total output current sourced by sum of all I/Os and control pins80mA
I INJ(PIN) (2)Injected current on a FT_xx pin-5 / NA (3)mA
I INJ(PIN) (2)Injected current on a TT_a pin (4)-5 / 0mA
∑ |I INJ(PIN) |Total injected current (sum of all I/Os and control pins) (5)25mA
  1. Positive injection is not possible on these I/Os and does not occur for input voltages lower than the specified maximum value.
  2. On these I/Os, any current injection disturbs the analog performances of the device.
  3. When several inputs are submitted to a current injection, the maximum ∑ |I INJ(PIN) | is the absolute sum of the negative injected currents (instantaneous values).

Table 20. Thermal characteristics

SymbolRatingsValueUnit
T STGStorage temperature range-65 to +150°C
T JMaximum junction temperature150°C

Thermal Information

The operating junction temperature T J must never exceed the maximum given in Table 21: General operating conditions .

The maximum junction temperature in °C that the device can reach if respecting the operating conditions, is:T _ { J } ( max ) = T _ { A } ( max ) + P _ { D } ( max ) × Θ _ { J A }$

Package Information

In order to meet environmental requirements, ST offers these devices in different grades of ECOPACK packages, depending on their level of environmental compliance. ECOPACK specifications, grade definitions and product status are available at: www.st.com . ECOPACK is an ST trademark.

Related Variants

The following components are covered by the same datasheet.

Part NumberManufacturerPackage
STM32G071STMicroelectronics
STM32G071C8STMicroelectronics
STM32G071CBSTMicroelectronics
STM32G071CBT6STMicroelectronics
STM32G071CXTSTMicroelectronics
STM32G071CXUSTMicroelectronics
STM32G071EBSTMicroelectronics
STM32G071EXSTMicroelectronics
STM32G071G8STMicroelectronics
STM32G071GBSTMicroelectronics
STM32G071GXUSTMicroelectronics
STM32G071K8STMicroelectronics
STM32G071KBSTMicroelectronics
STM32G071KXTSTMicroelectronics
STM32G071KXUSTMicroelectronics
STM32G071RBSTMicroelectronics
STM32G071RXISTMicroelectronics
STM32G071RXTSTMicroelectronics
STM32G071X8STMicroelectronics
STM32G071X8/XBSTMicroelectronics
STM32G071XBSTMicroelectronics
Data on this page is extracted from publicly available manufacturer datasheets using automated tools including AI. It may contain errors or omissions. Always verify specifications against the official manufacturer datasheet before making design or purchasing decisions. See our Terms of Service. Rights holders can submit a takedown request.

Get structured datasheet data via API

Get started free