
Puya Semiconductor (Shanghai) Co., Ltd.
Shares the same Cortex-M0+ core with more Flash and a wider voltage range, but runs at a slower clock speed.
Finding a substitute for the popular STM32G030F6P6 involves navigating a complex landscape of microcontrollers. While several alternatives share the same core and package, key differences in performance, memory, and pinout require careful engineering evaluation.
Different vendor peripherals and clock trees require code porting and validation.
Candidates have different clock speeds and I/O characteristics that must be checked.
While the package is TSSOP-20, pin functions must be manually verified against the datasheet.
No drop-in replacement is confirmed. PY32F030F38P6TU is a strong functional alternative but requires firmware changes and pinout verification.
PY32F030F38P6TU is the most promising path, offering the same core, more Flash, and same RAM. The main trade-off is a slower clock speed.
Firmware compatibility is the main risk. Even with the same core, peripheral registers and clock configurations differ between vendors, requiring code modification.

Puya Semiconductor (Shanghai) Co., Ltd.
Shares the same Cortex-M0+ core with more Flash and a wider voltage range, but runs at a slower clock speed.
| Feature / factor | STM32G030F6P6 | PY32F030F38P6TU | PY32F002AF15P6TU | Alt 3 | Compatibility / risk |
|---|---|---|---|---|---|
| Core Processor | Arm Cortex-M0+ | ARM Cortex-M0+ | ARM Cortex-M0+ | ARM Cortex-M0+ — Same core architecture simplifies firmware porting.; PY32F002AF15P6TU: Same core architecture simplifies firmware porting. | |
| Speed | 64 MHz | 32MHz | 24MHz | 32MHz / 24MHz — Slower clock may impact performance in timing-sensitive applications.; PY32F002AF15P6TU: Significantly slower clock speed. | |
| Program Memory Size | 32 KB | 64 KB | 20KB | 64 KB / 20KB — More flash provides room for additional features.; PY32F002AF15P6TU: Less Flash memory may not fit the application. | |
| Ram Size | 8 KB | 8 KB | 3KB | 8 KB / 3KB — RAM size is identical.; PY32F002AF15P6TU: Significantly less RAM. | |
| Voltage - Supply | 2.0 V ~ 3.6 V | 1.7V ~ 5.5V | 1.7V ~ 5.5V | 1.7V ~ 5.5V — Wider operating voltage range offers more flexibility.; PY32F002AF15P6TU: Wider operating voltage range. |
The best alternative identified is PY32F030F38P6TU. It uses the same ARM Cortex-M0+ core and has more Flash memory, but runs at a slower 32MHz clock speed. Engineering review is required.