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

- Shipping:

Inventory:3,247
Please send an inquiry. Send us your inquiry, and we will respond immediately.
Product details
Overview
STM32G031J4M6 from STMicroelectronics is a 32-bit Arm® Cortex®-M0+ microcontroller in TSSOP20 package, operating up to 64 MHz with 16 KB Flash, 8 KB SRAM, and integrated 12-bit ADC (0.4 µs conversion), dual USARTs (one with LIN/IrDA), and RTC with alarm. It targets cost-sensitive industrial sensor nodes and smart metering endpoints requiring low-power operation across -40°C to 85°C.
For engineers reviewing the STM32G031J4M6 datasheet, STM32G031J4M6 pinout, STM32G031J4M6 application, or STM32G031J4M6 equivalent, key selection criteria include its TSSOP20 footprint compatibility, 16 KB Flash/8 KB SRAM memory balance, 1.7–3.6 V supply range, 5 V-tolerant I/Os, and support for SWD debug - all critical for space-constrained, battery-backed embedded control designs.
Technical Context
The STM32G031J4M6 integrates an Arm Cortex-M0+ core with MPU, supporting TrustZone-like memory protection via readout protection levels and securable flash area. Its clock system combines 4–48 MHz HSE, 32 kHz LSE with calibration, and ±1% internal 16 MHz HSI with PLL - enabling precise timing for synchronous serial interfaces and real-time control loops.
Peripheral interconnect uses a dedicated AHB/APB matrix supporting concurrent DMA transfers across UART, SPI, I2C, and ADC. The 5-channel DMA controller features flexible request mapping and hardware arbitration, while the 11-timer suite includes one 128 MHz-capable advanced timer (TIM1), two low-power timers (LPTIM1/2), and SysTick - optimized for motor control, periodic sensing, and ultra-low-power wake-up scenarios.
Key Specifications
| Parameter | Value and Actual Design Meaning |
|---|---|
| CPU Core | Arm Cortex-M0+, 64 MHz max - enables deterministic real-time execution with <10 ns interrupt latency for responsive control. |
| Flash / SRAM | 16 KB Flash with securable area + 8 KB SRAM with HW parity - supports firmware updates and data integrity in safety-aware applications. |
| ADC | 12-bit, 0.4 µs conversion, up to 16 external channels - delivers high-speed analog acquisition for multi-sensor monitoring without external mux. |
| Timers | 11 timers including TIM1 (128 MHz capable), LPTIM1/2, WWDG/IWDG - provides scalable timing resources for PWM generation, RTC backup, and fail-safe watchdog coverage. |
| Communication | 2× USART (1 with ISO7816/LIN/IrDA), 2× I2C (Fast-mode Plus), 2× SPI (32 Mbit/s) - meets diverse interface needs in industrial gateways and peripheral bridging. |
| Supply & Power | 1.7–3.6 V operation; Sleep/Stop/Standby/Shutdown modes; VBAT support for RTC - enables multi-year battery life in energy-harvested or coin-cell-powered devices. |
| I/O Capability | 18 fast I/Os, multiple 5 V-tolerant - simplifies level-shifting in mixed-voltage systems and improves robustness against transient overvoltage. |
Pinout & Package
TSSOP20 (YA) package: 20-pin thin shrink small outline package, 6.4 × 4.4 mm body, 0.65 mm pitch, ECOPACK2-compliant, suitable for automated SMT assembly and compact PCB layouts.
| Pin/Terminal | Circuit Role | Design Meaning |
|---|---|---|
| VDD | Power supply input | Main 1.7–3.6 V supply for core and I/Os; decoupling required per datasheet layout guidelines. |
| VSS | Ground reference | Digital ground return path; separate analog ground not provided - shared VSS used for mixed-signal operation. |
| NRST | Active-low reset input | Asynchronous reset with programmable BOR/PVD; internal pull-up ensures reliable startup without external RC network. |
| PA0–PA9 | General-purpose I/Os | 10 GPIOs with alternate functions including USART1_TX/RX, SPI1_SCK/MOSI/MISO, ADC_IN0–IN9 - enable flexible peripheral routing on minimal pin count. |
| PA13/PA14 | SWD debug interface | Serial Wire Debug (SWDIO/SWCLK) - allows full programming and real-time debugging using standard ST-LINK tools. |
| VBAT | RTC backup supply | Accepts 1.65–3.6 V battery input to maintain RTC calendar and backup registers during main power loss. |
Key Features
| Feature | Design Value |
|---|---|
| Secure boot & ROP | Readout protection (ROP) Level 1/2 and securable flash area prevent unauthorized firmware extraction and cloning. |
| Low-power architecture | Shutdown mode draws ≤100 nA (typ.) with RTC running on VBAT - extends battery life in always-on sensing nodes. |
| Calibrated oscillators | 32 kHz LSE with factory calibration ±20 ppm and 16 MHz HSI ±1% - eliminates need for external crystals in cost-sensitive timing applications. |
| Hardware CRC unit | Dedicated CRC-32 engine accelerates firmware image verification and communication frame checksums without CPU overhead. |
| Temperature sensor | Integrated calibrated sensor (±2°C accuracy) enables ambient temperature compensation for ADC or system thermal management. |
Applications
| Smart Utility Metering | Industrial Sensor Node |
|---|---|
Use Scenario: Battery-powered electricity/water meter collecting pulse counts, voltage/current samples, and tamper events over 10+ years. IC Role / Device Role / Timing Role: Main system controller executing metrology algorithms, managing secure data logging, and waking periodically via LPTIM to sample sensors. Use Value: 100 nA shutdown current with RTC preserves timekeeping and extends coin-cell life; 5 V-tolerant I/Os interface directly with legacy pulse-output meters. |
Use Scenario: Wireless vibration/temperature node mounted on motor housing, transmitting data via UART-to-LoRa module every 5 minutes. IC Role / Device Role / Timing Role: Sensor aggregator and protocol translator - reads ADC/TS, formats packets, and triggers UART transmission on LPTIM timeout. Use Value: Integrated 12-bit ADC with hardware oversampling achieves 16-bit effective resolution for precision vibration analysis; SWD debug enables field firmware updates. |
| Home Appliance Control | POS Peripheral Interface |
Use Scenario: Washing machine mainboard managing motor drive, water valve actuation, display, and user input with ESD resilience. IC Role / Device Role / Timing Role: Central MCU coordinating PWM motor control (TIM1), keypad scan (GPIO interrupts), and display update (SPI). Use Value: 18 GPIOs with 5 V tolerance simplify direct connection to mechanical switches and LED drivers; robust ESD rating (±4 kV HBM) withstands user handling. |
Use Scenario: Credit card reader add-on module connecting to POS terminal via UART, verifying magnetic stripe data and relaying to host. IC Role / Device Role / Timing Role: Secure data bridge - receives raw track data via USART with auto-baud detection, applies CRC validation, and forwards encrypted payload. Use Value: ISO7816 interface support and hardware CRC enable compliant smart-card reader functionality; 16 KB Flash accommodates secure bootloader and encryption stack. |
Equivalent & Alternatives
The following parts are listed as comparable options for similar microcontroller applications.
| Alternative Part | Technical Difference | Application Difference | Selection Advice |
|---|---|---|---|
| STM32G030F6P6 | Same Cortex-M0+ core, but only 16 KB Flash, no securable area, no VREFBUF, and no LPUART - lacks RTC calibration and advanced analog features. | Suitable for basic control where security and precision analog are non-critical; cannot replace STM32G031J4M6 in RTC-dependent or secure firmware deployments. | Select when cost is primary constraint and cryptographic boot or calibrated RTC is unnecessary. |
| NXP LPC802M011JDH20 | ARM Cortex-M0+, 16 KB Flash, 4 KB SRAM, no RTC calendar, no USB, limited I2C/UART features - lower peripheral integration and no VBAT support. | Fits simple GPIO/UART tasks but cannot support battery-backed timekeeping, LIN communication, or simultaneous multi-interface operation. | Choose only for legacy NXP toolchain environments where ST ecosystem support is unavailable. |
Compared with STM32G030F6P6 and LPC802M011JDH20, the STM32G031J4M6 uniquely combines securable flash, calibrated RTC with VBAT, and dual USARTs featuring LIN/IrDA - making it the only option among the three qualified for certified utility metering and secure peripheral bridging.
Availability
STM32G031J4M6 is available at Aetrix Electronics and suitable for industrial sensor nodes, smart utility metering, home appliance control, and POS peripheral interfaces requiring stable component supply across extended product lifecycles.
Supply support for STM32G031J4M6 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, designing and manufacturing microcontrollers, power ICs, MEMS, and automotive-grade components since 1987.
The STM32G0 series targets cost-optimized, low-power embedded applications - delivering Cortex-M0+ performance with enhanced security, analog integration, and simplified development for mass-market industrial and consumer devices.
FAQ
What is the maximum operating frequency of the STM32G031J4M6?
The STM32G031J4M6 operates at up to 64 MHz using its internal 16 MHz HSI oscillator with PLL multiplication or an external crystal. This frequency is fully supported across the full temperature range (–40°C to +85°C) and supply voltage (1.7–3.6 V), with timing validated per DS12992 Rev 4 Section 5.3.22.
Does the STM32G031J4M6 support hardware encryption or secure boot?
It supports readout protection (ROP) Levels 1 and 2, a securable flash area, and hardware CRC-32 - enabling firmware integrity checks and basic IP protection. However, it lacks dedicated AES/SHA accelerators or true secure boot ROM; secure boot implementation requires external supervision or software-based key management.
Can the STM32G031J4M6 drive 5 V logic directly?
Yes - up to 18 I/O pins are 5 V-tolerant when configured as inputs, allowing direct interfacing with 5 V peripherals like legacy sensors or displays without level shifters. Output voltage remains VDD-referenced (max 3.6 V), so driving 5 V loads requires external buffering or open-drain configurations with pull-ups.
What debug interface does the STM32G031J4M6 use, and what tools are compatible?
It uses Serial Wire Debug (SWD) via PA13 (SWDIO) and PA14 (SWCLK). Compatible tools include ST-LINK/V2, ST-LINK/V3, and third-party debuggers supporting ARM SWD protocol (e.g., J-Link, CMSIS-DAP adapters). No JTAG support is provided on this variant.
STM32G031J4M6 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:
- 16KB (16K 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:
STM32G031J4M6 FAQ
1.How can I place an order for STM32G031J4M6 through Aetrix?
Please submit a Request for Quotation (RFQ) for STM32G031J4M6 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 STM32G031J4M6 reliable?
The price and inventory of STM32G031J4M6 are updated periodically and may fluctuate due to market conditions. Stock and pricing data are typically refreshed every 24 hours. Quotation validity for STM32G031J4M6 is usually 5 days.
3.What payment methods are accepted for STM32G031J4M6?
We accept Wire Transfer, PayPal, Credit Card, Western Union, MoneyGram, and Escrow for STM32G031J4M6 transactions.
Note: Certain payment methods may incur a processing fee.
4.How is shipping managed for STM32G031J4M6?
STM32G031J4M6 orders can be shipped via leading logistics carriers, including DHL, UPS, FedEx, TNT, or Registered Mail.
Once your STM32G031J4M6 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 STM32G031J4M6?
For technical support, including STM32G031J4M6 datasheets, pinout diagrams, or application guidance, please contact our engineering support team. They can provide detailed documentation and assistance for your STM32G031J4M6 requirements.
6.How does Aetrix verify that STM32G031J4M6 is sourced from the original manufacturer or authorized distributors?
All STM32G031J4M6 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 STM32G031J4M6 meets industry standards.
7.What is the process for return or replacement of STM32G031J4M6?
All STM32G031J4M6 units undergo pre-shipment inspection (PSI). If there is an issue with STM32G031J4M6, 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 STM32G031J4M6 part is unused and in its original packaging.
Return procedure for STM32G031J4M6:
1.Submit a request within 90 days.
2.Obtain a Return Material Authorization (RMA) from Aetrix.
STM32G031J4M6 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…

