GD32F103 vs STM32F103: Replacement & Compatibility Comparison
The GD32F103 is the most common pin-compatible replacement for the STM32F103. Both are Arm Cortex-M3 in the same LQFP package and are largely register-compatible; the main differences are core clock and a few porting details.
| Our pick GD32F103 GigaDevice | STM32F103 STMicroelectronics | |
|---|---|---|
| Core | Arm Cortex-M3 | Arm Cortex-M3 |
| Max clock | 108 MHz | 72 MHz |
| Package | LQFP48/64/100 | LQFP48/64/100 |
| Pin-compatible | Yes (drop-in) | — |
| Registers | Largely compatible | — |
| Porting note | Recheck clock, Flash wait-states, some HAL | — |
Which should you choose?
When the STM32F103 is short or you need lower cost, the GD32F103 is a second source that reuses the same PCB; on porting, recompile with the GD32 library and verify clock setup and Flash wait-states (core runs to 108 MHz).
Cross-references
Frequently asked questions
Can the GD32F103 drop onto an STM32F103 board? ▾
Yes — they are pin-compatible and reuse the same PCB. But recompile firmware with the GD32 library and verify clock-tree and Flash wait-state settings before mass production.