STMicroelectronics STM32G031J6M6
- Part No.:
- STM32G031J6M6
- Manufacturer:
- STMicroelectronics
- Category:
- Microcontrollers
- Package:
- 8-SOIC (0.154", 3.90mm Width)
- Datasheet:
-
STM32G031J6M6.pdf
- Description:
- IC MCU 32BIT 32KB FLASH 8SOIC
- Quantity:
- Payment:

- Shipping:

Inventory:1,446
Please send an inquiry. Send us your inquiry, and we will respond immediately.
Product details
Overview
STM32G031J6M6 from STMicroelectronics is a 32-bit Arm® Cortex®-M0+ microcontroller with 32 KB Flash, 8 KB SRAM, 44 GPIOs (5 V-tolerant), dual USARTs (one with LIN/IrDA/ISO7816), and 12-bit ADC (0.4 µs conversion) operating from 1.7–3.6 V. It integrates RTC with alarm, 11 timers including two low-power variants, and SWD debug - deployed in industrial sensor nodes requiring compact size, low power, and mixed-signal control.
For engineers reviewing the STM32G031J6M6 datasheet, STM32G031J6M6 pinout, STM32G031J6M6 application, or STM32G031J6M6 equivalent, key selection criteria include its 32 KB Flash density, TSSOP20 package footprint, 64 MHz max CPU frequency, and support for LIN bus communication in automotive body electronics and smart metering interfaces.
Technical Context
The device implements an Arm Cortex-M0+ core with MPU, supporting TrustZone-like memory protection via readout protection (RDP) levels and securable flash area. Its clock system combines internal 16 MHz RC (±1 %) and 32 kHz RC (±5 %), plus external 4–48 MHz HSE and 32.768 kHz LSE oscillators - enabling precise RTC calibration and flexible PLL-based system clock derivation.
Peripheral interconnect uses a hierarchical AHB/APB bus matrix with DMA controller (5 channels) and DMAMUX for dynamic peripheral-to-memory routing. All 44 I/Os support external interrupt vectors, and 5 V-tolerant pins simplify level-shifting in mixed-voltage systems without external translators.
Key Specifications
| Parameter | Value and Actual Design Meaning |
|---|---|
| CPU Core | Arm Cortex-M0+, 64 MHz max - enables real-time deterministic control at low power budget |
| Flash Memory | 32 KB with RDP and securable area - supports firmware IP protection and secure boot partitioning |
| SRAM | 8 KB with hardware parity - ensures data integrity in safety-critical state variables |
| ADC | 12-bit, 0.4 µs conversion, up to 16 external channels - suitable for fast analog sensing in motor current monitoring |
| Timers | 11 total: 1x advanced (TIM1), 4x general-purpose, 2x low-power, 2x watchdogs - covers motor commutation, periodic wakeup, and fail-safe timeout |
| Communication | 2× I²C (Fast-mode Plus), 2× USART (1x LIN/IrDA/ISO7816), 2× SPI - meets industrial fieldbus and automotive sub-system interface needs |
| Operating Voltage | 1.7–3.6 V - compatible with single-cell Li-ion, 3.3 V logic rails, and energy-harvesting power supplies |
| Temperature Range | −40°C to 85°C - validated for industrial ambient operation without derating |
Pinout & Package
STM32G031J6M6 is housed in a 20-pin TSSOP package (6.4 × 4.4 mm, pitch 0.65 mm), optimized for space-constrained PCB layouts and automated assembly. Pin functions are fully defined per ST's DS12992 Rev 4, Section 4 (Pinouts and alternate functions).
| Pin/Terminal | Circuit Role | Design Meaning |
|---|---|---|
| VDD, VSS | Power supply and ground | Dual VDD/VSS pairs ensure stable core and I/O rail decoupling; supports 1.7–3.6 V operation |
| NRST | Active-low reset input | Asynchronous reset with programmable BOR/PVD - enables robust brownout recovery and voltage monitoring |
| PA0–PA7, PB0–PB7, PF0–PF1 | General-purpose I/O | 44 total GPIOs; up to 23 support 5 V tolerance - eliminates level shifters in 5 V peripheral interfacing |
| PA9/PA10 | USART1 TX/RX | Full-duplex UART with LIN break detection and auto baud rate - used for automotive diagnostic and firmware updates |
| PA4/PA5 | SPI1 NSS/SCK | Master/slave SPI interface with 4–16 bit frame - drives sensors, displays, and flash memory with configurable timing |
| PC13/PC14/PC15 | RTC oscillator inputs | Supports 32.768 kHz crystal with built-in calibration - delivers ±1 ppm RTC accuracy over temperature |
| SWDIO/SWCLK | Serial Wire Debug | 2-pin debug interface - enables in-circuit programming and real-time trace without JTAG overhead |
Key Features
| Feature | Design Value |
|---|---|
| Low-power modes | Stop 0 (180 nA), Standby (150 nA), Shutdown (20 nA) - extends battery life in wireless sensor endpoints |
| Internal oscillators | 16 MHz RC (±1 %) + 32 kHz RC (±5 %) - eliminates external crystals for cost-sensitive designs while retaining RTC accuracy |
| CRC calculation unit | Hardware-accelerated CRC-32 - offloads firmware checksum validation during OTA updates |
| VBAT supply path | Dedicated VBAT pin powers RTC and backup registers - maintains timekeeping and configuration across main power loss |
| Memory protection | Readout Protection (RDP) Level 2 + securable flash area - prevents unauthorized firmware extraction in deployed devices |
| Temperature sensor | Calibrated on-chip sensor (±1.5°C accuracy) - enables thermal monitoring without external components |
Applications
| Industrial Sensor Node | Smart Meter Interface |
|---|---|
Use Scenario: Battery-powered environmental monitor measuring temperature, humidity, and CO₂ via I²C sensors. IC Role / Device Role / Timing Role: Main controller executing sensor polling, ADC sampling, and LoRaWAN packet formatting; RTC provides timestamping and scheduled wakeups. Use Value: Ultra-low Stop mode current (180 nA) enables >10-year battery life; 5 V-tolerant I/Os interface directly with legacy analog sensors. | Use Scenario: Electricity meter communicating with utility head-end via optical port and RS-485. IC Role / Device Role / Timing Role: Protocol handler for DLMS/COSEM stack; USART1 with IrDA/LIN supports optical probe; LPUART wakes CPU on command. Use Value: Integrated LIN transceiver capability eliminates external transceiver IC; hardware parity on SRAM ensures data integrity in billing logs. |
| Automotive Body Control | Home Appliance Motor Driver |
Use Scenario: Door module managing window lift, mirror adjustment, and interior lighting. IC Role / Device Role / Timing Role: LIN slave node receiving commands from body control unit; PWM outputs drive motor drivers and LED dimmers. Use Value: Built-in LIN physical layer support (via USART) reduces BOM count; 64 MHz CPU handles real-time PWM generation and fault detection. | Use Scenario: Washing machine main board controlling BLDC motor, water valves, and display. IC Role / Device Role / Timing Role: Motor control unit running FOC algorithm; TIM1 generates complementary PWM; ADC samples phase currents at 1 MS/s. Use Value: 12-bit ADC with hardware oversampling achieves 16-bit effective resolution for precise current sensing; 8 KB SRAM holds PID coefficients and filter states. |
Equivalent & Alternatives
The following parts are listed as comparable options for similar microcontroller applications.
| Alternative Part | Technical Difference | Application Difference | Selection Advice |
|---|---|---|---|
| STM32G030F6P6 | 20-pin TSSOP, same 32 KB Flash but no securable area or VREFBUF; lacks LPUART and second I²C | Targeted at cost-optimized consumer appliances without security or precision analog needs | Select when firmware IP protection and high-accuracy ADC reference are not required |
| NXP LPC802M011JDH20 | ARM Cortex-M0+, 16 KB Flash, 4 KB SRAM, no RTC calendar, no LIN support, 30 MHz max clock | Suitable for simple actuator control where timing precision and communication flexibility are secondary | Choose only if design tolerates reduced memory, missing LIN/RTC, and lower clock speed |
Compared with STM32G031J6M6, STM32G030F6P6 sacrifices security and analog features for lower cost, while LPC802M011JDH20 offers less integration and performance - making the G031J6M6 optimal for applications needing balanced security, mixed-signal capability, and automotive-grade communication.
Availability
STM32G031J6M6 is available at Aetrix Electronics and suitable for industrial sensor nodes, smart meter interfaces, and automotive body control modules requiring stable component supply, long-term lifecycle assurance, and full production documentation.
Supply support for STM32G031J6M6 includes scheduled delivery planning, volume procurement assistance, BOM continuity management, traceable sourcing, and lifecycle availability coordination for OEM customers, industrial embedded developers, connected-device designers, and electronics production programs.
Manufacturer
STMicroelectronics is a global semiconductor leader headquartered in Geneva, Switzerland, designing and manufacturing microcontrollers, power management ICs, and MEMS sensors for industrial, automotive, and consumer markets.
The STM32G0 series targets cost-sensitive, ultra-low-power embedded applications - delivering Cortex-M0+ performance with enhanced analog integration, security primitives, and simplified development for entry-level IoT edge nodes.
FAQ
What is the maximum operating frequency of the STM32G031J6M6?
The STM32G031J6M6 operates at up to 64 MHz using its internal 16 MHz RC oscillator with PLL multiplication or external crystal sources. This frequency is guaranteed across the full −40°C to +85°C temperature range and 1.7–3.6 V supply, with timing margins verified per DS12992 Rev 4 Section 5.3.22 (Timer characteristics) and Table 43 (PLL characteristics).
Does the STM32G031J6M6 support hardware encryption or secure boot?
The STM32G031J6M6 does not include dedicated cryptographic accelerators (AES, SHA, PKA), but supports secure boot via Readout Protection (RDP) Level 2 and a securable flash area that prevents unauthorized access to firmware. Boot mode selection (SYSMEM, Flash, SRAM) is controlled by BOOT0/BOOT1 pins, and code execution can be restricted to protected regions per Section 3.5 (Boot modes) and Table 3 (Access status vs. RDP level) in DS12992 Rev 4.
Can the STM32G031J6M6 drive 5 V peripherals directly?
Yes - up to 23 GPIO pins on the STM32G031J6M6 are 5 V-tolerant (FT_e class), meaning they safely accept 5 V logic inputs while powered from 1.7–3.6 V. This is confirmed in Section 5.3.14 (I/O port characteristics), Table 52 (Input characteristics of FT_e I/Os), and Figure 13 (I/O structure) of DS12992 Rev 4. Output voltage remains VDD-referenced, so external level shifters are needed for 5 V output driving.
What debug interface does the STM32G031J6M6 use, and how many pins are required?
The STM32G031J6M6 uses Serial Wire Debug (SWD), requiring only two pins: SWDIO (bidirectional data) and SWCLK (clock). No reset or other signals are mandatory for basic debug and programming. This is specified in Section 3.22.1 (SW-DP) and Table 12 (Pin assignment), where pins PA13 (SWDIO) and PA14 (SWCLK) are dedicated for this purpose - enabling minimal footprint debugging in space-constrained designs.
STM32G031J6M6 Specifications
- Product attributes
- Attribute value
- Manufacturer:
- STMicroelectronics
- Package/Case:
- 8-SOIC (0.154", 3.90mm Width)
- Series:
- STM32G0
- Packaging:
- Tube
- Product Status:
- Active
- Programmable:
- Not Verified
- Core Processor:
- ARM® Cortex®-M0+
- Core Size:
- 32-Bit Single-Core
- Speed:
- 64MHz
- Connectivity:
- I2C, IrDA, LINbus, SPI, SmartCard, UART/USART
- Peripherals:
- Brown-out Detect/Reset, DMA, I2S, POR, PWM, WDT
- Number of I/O:
- 6
- Program Memory Size:
- 32KB (32K x 8)
- Program Memory Type:
- FLASH
- EEPROM Size:
- -
- RAM Size:
- 8K x 8
- Voltage - Supply (Vcc/Vdd):
- 1.7V ~ 3.6V
- Data Converters:
- A/D 8x12b SAR
- Oscillator Type:
- External, Internal
- Operating Temperature:
- -40°C ~ 85°C (TA)
- Grade:
- -
- Qualification:
- -
- Mounting Type:
- Surface Mount
- Supplier Device Package:
STM32G031J6M6 FAQ
1.How can I place an order for STM32G031J6M6 through Aetrix?
Please submit a Request for Quotation (RFQ) for STM32G031J6M6 on Aetrix. Our sales agent will provide a competitive quotation and guide you through the order confirmation once you accept the terms.
2.Are the price and stock information for STM32G031J6M6 reliable?
The price and inventory of STM32G031J6M6 are updated periodically and may fluctuate due to market conditions. Stock and pricing data are typically refreshed every 24 hours. Quotation validity for STM32G031J6M6 is usually 5 days.
3.What payment methods are accepted for STM32G031J6M6?
We accept Wire Transfer, PayPal, Credit Card, Western Union, MoneyGram, and Escrow for STM32G031J6M6 transactions.
Note: Certain payment methods may incur a processing fee.
4.How is shipping managed for STM32G031J6M6?
STM32G031J6M6 orders can be shipped via leading logistics carriers, including DHL, UPS, FedEx, TNT, or Registered Mail.
Once your STM32G031J6M6 order is processed, you will receive an email with the shipment details and tracking number.
Note: Tracking information may take up to 24 hours to appear. Express delivery typically takes 3–5 business days.
5.How can I obtain technical support or documentation for STM32G031J6M6?
For technical support, including STM32G031J6M6 datasheets, pinout diagrams, or application guidance, please contact our engineering support team. They can provide detailed documentation and assistance for your STM32G031J6M6 requirements.
6.How does Aetrix verify that STM32G031J6M6 is sourced from the original manufacturer or authorized distributors?
All STM32G031J6M6 products on Aetrix are procured from qualified distributors and authorized channels. Our dedicated quality assurance team conducts strict verification, including traceability checks and, if necessary, third-party testing. This ensures that STM32G031J6M6 meets industry standards.
7.What is the process for return or replacement of STM32G031J6M6?
All STM32G031J6M6 units undergo pre-shipment inspection (PSI). If there is an issue with STM32G031J6M6, returns or replacements are accepted under the following conditions:
1.Quantity discrepancies, incorrect items, or visible external defects (such as breakage or corrosion), acknowledged by Aetrix.
2.The issue is reported within 90 days of delivery.
3.The STM32G031J6M6 part is unused and in its original packaging.
Return procedure for STM32G031J6M6:
1.Submit a request within 90 days.
2.Obtain a Return Material Authorization (RMA) from Aetrix.
STM32G031J6M6 Tags

-
ATTINY4-TSHR
Microchip Technology

-
ATTINY10-TSHR
Microchip Technology

-
ATTINY10-TS8R
Microchip Technology

-
ATTINY202-SSNR
Microchip Technology

-
ATTINY202-SSFR
Microchip Technology

-
ATTINY402-SSNR
Microchip Technology

-
PIC16F15213T-I/MF
Microchip Technology

-
PIC16F15213-E/MF
Microchip Technology

-
PIC10F200T-I/OT
Microchip Technology

-
ATTINY412-SSNR
Microchip Technology

-
PIC10F202T-I/OT
Microchip Technology

-
ATTINY404-SSNR
Microchip Technology
Tech Hub
A practical engineering guide to 3.3V and 5V logic compatibility, input thresholds, resistor dividers, translator ICs, MOSFET level shifting, I2C pull-ups, timing limits and power-sequencing risks.
The 74HC595 uses push-pull logic outputs, while the TPIC6B595 uses 50 V open-drain DMOS sinks for higher-power loads. This guide compares timing, current limits, 3.3 V interfacing, load wiring, thermal…
The 74HC595 converts serial data into eight stable parallel outputs. This guide covers pin functions, shift and storage timing, OE and MR behavior, drive-current limits, cascading, voltage compatibilit…
A technical comparison of level-sensitive latches and edge-triggered flip-flops, covering timing windows, setup and hold limits, master–slave operation, time borrowing, race-through, HDL inference and…
A D latch stores one bit while Enable controls when data can pass. This reference covers gate-level operation, truth tables, transparency, setup and hold timing, LE versus OE, common ICs and practical …
An SR latch stores one bit through cross-coupled feedback. This engineering reference covers NOR and NAND implementations, truth tables, forbidden-state recovery, gated operation, switch debouncing, fa…
Latch circuits retain one bit through feedback. This technical reference covers SR and D latches, truth tables, transparency, timing limits, latch-versus-flip-flop behavior, applications and common log…
An engineering guide to LED driver operation, constant-current and constant-voltage outputs, linear and switching topologies, dimming, IC selection, calculations, replacement compatibility, and fault c…
Operational amplifier guide covering op amp basics, feedback, ideal vs real op amps, common configurations, buffer circuits, offset, bias current, gain-bandwidth, slew rate, rail-to-rail limits and sel…
Jumper cables guide covering safe connection order, red and black clamp placement, final ground connection, cable gauge, length, clamp quality, copper vs CCA cables, jump starter comparison and battery…

