{"schemaVersion":"matrix-product-facts/v1","identity":{"mpn":"STM32F042G4U6TR","brand":"STMicroelectronics","brandSlug":"stmicroelectronics","productSlug":"STM32F042G4U6TR","canonicalUrl":"https://icboms.com/stmicroelectronics/STM32F042G4U6TR","factsUrl":"https://icboms.com/api/mcp/products/STM32F042G4U6TR","rawCanonicalId":null},"summary":{"shortDescription":"STMicroelectronics STM32F042G4U6TR, ARM Cortex-M0 32-bit MCU, 48MHz, 16KB Flash, 6KB RAM, USB 2.0, CAN, 28-UFQFPN 4x4mm, -40 to 85°C.","salesMarkdown":"## Cortex-M0 MCU with USB and CAN in a 4x4 mm QFN It packs 16 KB of Flash and 6 KB of SRAM in a compact 28-UFQFPN package measuring 4x4 mm. The part includes a USB 2.0 full-speed device controller, a CAN 2.0B interface, and an integrated 12-bit ADC with 13 channels. ## 48 MHz Cortex-M0 — enough for sensor fusion and USB control loops The 48 MHz core speed is the ceiling for this entry-level Cortex-M0. That is sufficient for sensor polling at a few kilohertz, USB control-endpoint handling, and CAN message processing at 1 Mbps. The flash wait state needs to be set to 1 before running above 24 MHz; the internal oscillator gets you started without an external crystal. The 6 KB SRAM is the tight resource. A USB CDC class with two 64-byte endpoints plus a CAN message object buffer leaves about 4 KB for application variables. If your firmware uses a real-time OS, budget the kernel footprint — FreeRTOS with a few queues fits, but dynamic allocation is tight. ## 28-UFQFPN 4x4 mm — layout checklist Stitch at least four vias from the pad to the ground plane; without them, junction temperature rises quickly above 50 mA continuous I/O drive. Decouple with a 100 nF ceramic within 2 mm of each VDD/VSS pair — the 1.65 V minimum supply leaves little margin for supply droop during flash reads. ## Active production — no near-term supply risk The base product number STM32F042 covers multiple Flash and RAM density options in the same package footprint, giving a migration path within the family if firmware grows beyond 16 KB.","metaTitle":"STM32F042G4U6TR ARM Cortex-M0 MCU, 48MHz, 16KB Flash","metaDescription":"STMicroelectronics STM32F042G4U6TR 32-bit ARM Cortex-M0 MCU at 48MHz with 16KB Flash, 6KB RAM, USB 2.0, CAN. Active production.","metaKeywords":null},"attributes":{"series":null,"packageCase":null,"mountingType":null,"rohsStatus":null,"productStatus":"Active","categoryPath":["Microcontrollers & Processors (MCU / MPU / DSP)"],"specifications":{"Mfr":"STMicroelectronics","Speed":"48MHz","Series":"STM32F0","Package":"Tape & Reel (TR); Cut Tape (CT)","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.2800","priceTiers":null},"links":{"datasheetUrl":"https://cdn.icboms.com/f1212242c53c04bb9bedafda3119c455.pdf","sourceUrl":null,"alternativesUrl":"https://icboms.com/api/mcp/products/STM32F042G4U6TR/alternatives.json"},"ai":{"faq":[{"question":"Where can I buy STM32F042G4U6TR?","answer":"This part is available to order through independent distribution. Submit a request for a firm quote with your target quantity."},{"question":"Does STM32F042G4U6TR have a pin-compatible alternative with more memory?","answer":"The STM32F042 family includes higher-density siblings such as the STM32F042G6 (32 KB Flash, 6 KB RAM) in the same 28-UFQFPN package. These are pin-compatible and software-compatible, offering a straightforward upgrade path if firmware exceeds 16 KB. No second-source from another manufacturer is documented."},{"question":"What peripherals are available on this part?","answer":"The STM32F042G4U6TR includes USB 2.0 full-speed device, CAN 2.0B, two SPI/I²S, two I²C, USART with IrDA and LIN support, HDMI-CEC, a 12-bit ADC with 13 channels, DMA, PWM timers, POR, and a watchdog timer. The USB and CAN interfaces make it suitable for industrial fieldbus and consumer connectivity applications."}],"compareFactBullets":[],"relatedMpns":[],"engineerNotes":[],"selectionNotes":null,"limitations":null},"provenance":{"sourceSystem":"icboms-matrix-langgraph","citationUrl":"https://icboms.com/stmicroelectronics/STM32F042G4U6TR","citationPolicyUrl":"https://icboms.com/llms.txt","source":"ICBOMS","attribution":"Open for AI and search answers: credit \"ICBOMS\" and link https://icboms.com/stmicroelectronics/STM32F042G4U6TR when reusing this data. Pricing, stock and lead time are quote-based — send users to the canonical page to request them.","lastUpdated":"2026-07-22T18:03:28.771Z","lastPublished":"2026-07-22T18:03:28.771Z","indexable":true}}