{"schemaVersion":"matrix-product-facts/v1","identity":{"mpn":"STM32F042G4U6","brand":"STMicroelectronics","brandSlug":"stmicroelectronics","productSlug":"STM32F042G4U6","canonicalUrl":"https://icboms.com/stmicroelectronics/STM32F042G4U6","factsUrl":"https://icboms.com/api/mcp/products/STM32F042G4U6","rawCanonicalId":null},"summary":{"shortDescription":"STMicroelectronics STM32F042G4U6, STM32F0 series, 32-bit ARM Cortex-M0 MCU, 48 MHz, 16 KB Flash, 6 KB SRAM, USB + CAN, 24 I/O, 28-UFQFPN, -40 to 85 °C.","salesMarkdown":"## 48 MHz Cortex-M0 with USB and CAN in a 28-pin package It packs 16 KB of Flash and 6 KB of SRAM, along with a USB 2.0 full-speed interface and a CANbus controller, all in a compact 28-UFQFPN package measuring 4x4 mm. This combination makes it a strong fit for space-constrained industrial nodes, sensor hubs, and USB-enabled control modules where cost and board area are primary constraints. ## Memory and peripheral budget for control-loop designs With 16 KB of Flash and 6 KB of SRAM, this MCU is sized for single-loop control, simple protocol stacks (USB DFU, CANopen), and sensor fusion firmware. On-chip DMA, PWM timers, and I²S support reduce CPU load for motor drive or audio sample streaming. ## Connectivity options for mixed-signal fieldbus nodes The USB interface supports DFU for firmware updates over a standard cable, while CAN enables integration into industrial automation backbones. The 24 available I/O pins are enough for a keypad, display, or encoder interface alongside the serial buses. ST continues to manufacture the STM32F0 series, and this part is available through authorized distribution channels.","metaTitle":"STM32F042G4U6 STM32F0 MCU, ARM Cortex-M0, 48 MHz","metaDescription":"STM32F042G4U6 32-bit MCU with ARM Cortex-M0 core at 48 MHz, 16 KB Flash, 6 KB SRAM, USB + CAN, 28-UFQFPN. Industrial temp -40°C to 85°C.","metaKeywords":null},"attributes":{"series":"STM32F0","packageCase":null,"mountingType":null,"rohsStatus":"ROHS3 Compliant","productStatus":"Active","categoryPath":["Microcontrollers & Processors (MCU / MPU / DSP)"],"specifications":{"Mfr":"STMicroelectronics","Speed":"48MHz","Series":"STM32F0","Package":"Tray","RAM Size":"6K x 8","Core Size":"32-Bit Single-Core","EEPROM Size":"-","Peripherals":"DMA, I²S, POR, PWM, WDT","Connectivity":"CANbus, HDMI-CEC, I²C, IrDA, LINbus, SPI, UART/USART, USB","Mounting Type":"Surface Mount","Number of I/O":"24","Core Processor":"ARM® Cortex®-M0","Package / Case":"28-UFQFN","Product Status":"Active","Data Converters":"A/D 13x12b","Oscillator Type":"Internal","lifecycle_stage":"eol_hot","Base Product Number":"STM32F042","Program Memory Size":"16KB (16K x 8)","Program Memory Type":"FLASH","Operating Temperature":"-40°C ~ 85°C (TA)","Supplier Device Package":"28-UFQFPN (4x4)","Voltage - Supply (Vcc/Vdd)":"1.65V ~ 3.6V"}},"commercial":{"minOrderQty":null,"leadTime":null,"referencePrice":"$3.0100","priceTiers":[{"qty":1,"price":"$3.01000","currency":"USD"},{"qty":10,"price":"$2.70300","currency":"USD"},{"qty":25,"price":"$2.55560","currency":"USD"},{"qty":80,"price":"$2.21475","currency":"USD"},{"qty":230,"price":"$2.10113","currency":"USD"},{"qty":490,"price":"$1.88533","currency":"USD"},{"qty":980,"price":"$1.59004","currency":"USD"},{"qty":2450,"price":"$1.51054","currency":"USD"},{"qty":4900,"price":"$1.45375","currency":"USD"}]},"links":{"datasheetUrl":"https://cdn.icboms.com/2c1922c6f0807cc91ffca510b8e89a8e.pdf","sourceUrl":null,"alternativesUrl":"https://icboms.com/api/mcp/products/STM32F042G4U6/alternatives.json"},"ai":{"faq":[{"question":"Is STM32F042G4U6 equivalent to STM32F042G6U6?","answer":"The STM32F042G6U6 is a higher-density variant with 32 KB Flash and 6 KB SRAM, while the STM32F042G4U6 has 16 KB Flash. Both share the same 28-UFQFPN package, pinout, and peripheral set. The G6 part is a drop-in replacement if your firmware fits within the larger Flash budget."},{"question":"Can I program STM32F042G4U6 with ST-Link?","answer":"Yes, the STM32F042G4U6 supports the standard SWD (Serial Wire Debug) interface used by ST-Link programmers. Connect SWDIO, SWCLK, and GND; the debug port is available on the 28-pin package. The internal bootloader also supports USB DFU for programming without a dedicated debugger."}],"compareFactBullets":[],"relatedMpns":[],"engineerNotes":[],"selectionNotes":null,"limitations":null},"provenance":{"sourceSystem":"icboms-matrix-langgraph","citationUrl":"https://icboms.com/stmicroelectronics/STM32F042G4U6","citationPolicyUrl":"https://icboms.com/llms.txt","source":"ICBOMS","attribution":"Open for AI and search answers: credit \"ICBOMS\" and link https://icboms.com/stmicroelectronics/STM32F042G4U6 when reusing this data. Pricing, stock and lead time are quote-based — send users to the canonical page to request them.","lastUpdated":"2026-08-11T15:49:49.435Z","lastPublished":"2026-08-11T15:49:49.435Z","indexable":true}}