STM32F042G6U6
Product Specifications
STM32F042G6U6 — ARM Cortex-M0 Microcontroller by STMicroelectronics
The STM32F042G6U6 is an STMicroelectronics ARM Cortex-M0 MCU in UFQFPN-28 for Embedded control and general-purpose MCU applications. Supplied by SUPERB Automation.
Part Number Decoded — Field by Field
| Field | Value | Meaning |
|---|---|---|
| STM32F042G6U6 | Full Part Number | STMicroelectronics ARM Cortex-M0 Microcontroller |
| STM32 | Product Family | STMicroelectronics 32-bit ARM-based MCU |
| F0 | Series | ARM Cortex-M0 based MCU — F0 series |
Quick Specifications
| Parameter | Value |
|---|---|
| Manufacturer | STMicroelectronics |
| Part Number | STM32F042G6U6 |
| Core | ARM Cortex-M0 |
| Package | UFQFPN-28 |
| Temperature Range | −40°C to +85°C |
| Supply Voltage | 1.8V–3.6V |
Product Overview
The STM32F042G6U6 is an STMicroelectronics ARM Cortex-M0 microcontroller in UFQFPN-28 package. Part of ST's extensive STM32 portfolio, it delivers a high-performance processing platform with integrated Flash, SRAM, and a rich set of communication peripherals for Embedded control and general-purpose MCU applications. Supplied by SUPERB Automation with full traceability and competitive lead times.
Key Features & Benefits
ARM Cortex-M0 Core — Efficient Processing for Embedded Control
The ARM Cortex-M0 core provides deterministic real-time performance with hardware multiply/divide and optional FPU, executing control loops, communication stacks, and sensor fusion algorithms efficiently in resource-constrained embedded environments.
Rich Peripheral Set — GPIO, Timers, ADC, Communication Interfaces
Features a comprehensive set of on-chip peripherals including multi-channel DMA, 12/16-bit ADCs, advanced PWM timers for motor control, and multiple USART/SPI/I²C interfaces for sensor and communication module connectivity.
ST Ecosystem — CubeMX, HAL, LL, Middleware
Fully supported by ST's STM32Cube ecosystem including CubeMX graphical configuration, HAL/LL driver libraries, FreeRTOS integration, and extensive middleware stacks (USB, TCP/IP, FATFS, graphics) — accelerating firmware development and reducing time-to-market.
Target Applications
Embedded Control & IoT Systems
Functions as the main processing unit in embedded control systems, IoT endpoints, sensor hubs, motor controllers, and human-machine interfaces — leveraging the Cortex-M architecture for efficient, low-power operation.
Industrial Automation & Motor Control
Powers industrial motor drives, PLCs, sensor transmitters, and factory automation equipment — taking advantage of advanced PWM timers, high-speed ADCs, and CAN/RS-485 communication for distributed control architectures.
Consumer & Portable Electronics
Integrates into consumer devices, wearables, smart home products, and portable instruments — benefiting from the STM32 family's low-power modes, small packages, and extensive third-party firmware ecosystem.
Frequently Asked Questions
Is the STM32F042G6U6 supported by STM32CubeIDE?
Yes, the STM32F042G6U6 is fully supported in STM32CubeIDE with graphical pinout configuration, clock tree setup, and automatic peripheral initialization code generation — enabling rapid prototyping and production firmware development.
What firmware/RTOS options are available?
The STM32 family is supported by FreeRTOS, Zephyr, NuttX, ChibiOS, and bare-metal HAL programming. For drone applications, Betaflight, iNav, ArduPilot, and PX4 all have STM32 HAL targets.
What is the minimum order quantity (MOQ)?
Contact SUPERB Automation for a tailored quote. We support quantities from prototype tray to full production volumes.
Request a Quote
SUPERB Automation supplies genuine STMicroelectronics STM32F042G6U6 MCUs with full traceability and batch-level QA documentation. Whether you need a single tray for prototype builds or pallet-level volumes for production, we source through verified channels with competitive lead times. Contact us with your target quantity and delivery date — we'll respond with a detailed quotation within 24 hours.
STM32F042G6U6: USB, CAN and 32 Kbytes of flash in a 4 mm QFN
The F042 is the USB member of the F0 value line, and the 28 pin body is small enough to sit behind a connector. The order code reads: 042 subfamily with USB and CAN, G is 28 pins, 6 is 32 Kbytes of flash, U is the UFQFPN body, 6 is the industrial range. The same die ships in a 20 pin TSSOP and in 32 and 48 pin bodies.
The core is a Cortex-M0 at up to 48 MHz with 6 Kbytes of SRAM behind a hardware parity check. The USB 2.0 full speed device runs from the internal 48 MHz oscillator, so the product needs no second crystal for the bus. The supply floor is 2.0 V on the main rail and 1.65 V on the separate I/O rail. The figures below come from ST's product page for the F042 line and its current data sheet.
The order code, character by character
| Product family | STM32, 32-bit Arm microcontroller |
| Product line | F0, mainstream Cortex-M0 up to 48 MHz |
| Subfamily | 042, USB and CAN value line |
| Pin count | G, 28 pins |
| Flash density | 6, 32 Kbytes |
| Package | U, UFQFPN 4 mm by 4 mm |
| Temperature | 6, minus 40 to plus 85 degrees C |
| Core clock | 48 MHz Cortex-M0 |
| SRAM | 6 Kbytes with hardware parity |
| Supply | 2.0 V to 3.6 V main, 1.65 V to 3.6 V on the separate I/O rail |
| I/O | Up to 38 fast I/Os, 24 rated 5 V tolerant |
| Serial | USB 2.0 full speed, CAN, two USART, two SPI at 18 Mbit/s |
| Analog | 12-bit ADC at 1.0 us, 10 channels |
| Touch | Up to 14 capacitive sensing channels |
| Grade | Industrial, ECOPACK2 |
Two supply rails on a 28 pin part
The separate I/O rail is the feature that keeps this part in industrial products. A board that runs its logic at 3.3 V can keep the I/O at 3.3 V while the core sits on a lower rail, or the I/O can drop to 1.65 V to talk to a modern sensor without a level shifter. Eight pins are on the independent rail, which is enough for a bus and a couple of control lines at a different voltage.
The CAN controller and the USB device on the same die is unusual at this size. A product that is a USB service port and a CAN node at once, such as a small drive or a battery monitor, does not need a bridge chip or a second microcontroller, and the 6 Kbytes of SRAM is enough for both stacks if the product does not keep a log.
Questions that arrive with a shortage quote
Is 6 Kbytes of SRAM enough for USB and CAN together? For a product that does one at a time, yes. For both at once with a buffer, it is tight, and the 8 Kbyte members of the family are the safer choice.
Does the USB device need a crystal? No. The internal 48 MHz oscillator with automatic trimming runs the full speed device. A crystal is still needed if the CAN bit timing has to be exact over temperature.
Which pins are on the separate I/O rail? Eight of them, and which ones is fixed by the package. A product that needs the whole bus at the lower voltage should check the pin map before fixing the footprint.
What to send with an enquiry
Send the quantity, target date, the complete order code and the rail voltages the board uses, because the separate I/O rail is a footprint level decision. We check the code against the current revision on our MCU cross reference page and confirm date codes and packaging on the quotation. The pin to pin cross reference page shows which members share the 28 pin footprint, and the kitting service page covers how the set is consolidated for one build.