STM32F103 is the largest installed MCU platform in China, with plenty of alternative part numbers and a deep body of community material. Supply swings and price movement in recent years pushed many projects to look for a domestic counterpart. Artery's AT32F403ACCT7 is the cleanest match: LQFP48, 7 x 7mm, 256KB of flash, pin-to-pin with the STM32F103CCT6, so the footprint does not change.
Pin compatibility is not code compatibility, however. The difference list has to be reviewed before a swap, and this article goes through it in four layers: parameter alignment, peripheral additions, the five hardware differences, and the swap procedure.
| Parameter | STM32F103CCT6 | AT32F403ACCT7 |
|---|---|---|
| Core and clock | Cortex-M3, 72MHz | Cortex-M4F with FPU, 240MHz |
| Flash | 256KB, limited zero-wait range | 256KB, full zero-wait |
| SRAM | 48KB | 96+128KB |
| Supply voltage | 2.0V to 3.6V | 2.6V to 3.6V |
| Operating temperature | -40°C to +85°C | -40°C to +105°C |
| Package | LQFP48 7 x 7mm | LQFP48 7 x 7mm |
Going from 72MHz to 240MHz is a factor of 3.3, and the core moves from M3 to M4F with a hardware floating-point unit. For motor control and digital power, where floating point is unavoidable, the difference is not just speed: code that ran floating-point emulation in software on the F103 executes directly in hardware on the M4F. SRAM moves from 48KB to 224KB, a generational difference for projects running a protocol stack with large buffers, and the top of the temperature range extends from 85°C to 105°C, which industrial and outdoor equipment notices.
Peripheral counts all move up: CAN from 1 to 2, SPI from 2 to 4, I2C from 2 to 3, and UARTs from 5 to 8 usable (the 48-pin package has no UART8, and USART6 lacks a CK pin so it works as a UART only), plus 2 DAC channels the F103 does not have. DMA grows from 7 channels to 14 across two controllers, so multiple UARTs and ADCs converting at the same time no longer queue behind each other. Functions that F103 projects had to build in software, such as software UARTs and emulated DAC output, can move to hardware, and CPU load drops accordingly.
Pin positions match, but five electrical behaviors do not, and these five are where swaps fail:
Supply floor. The F103 accepts 2.0V to 3.6V; the AT32F403ACCT7 stops at 2.6V. Boards fed directly from a lithium cell need their lowest operating point checked. Clock and voltage are also linked: below 3.1V the maximum core clock is 180MHz, so running 240MHz requires 3.1V to 3.6V.
PA11/PA12. These pins tolerate 5V on the F103 and do not on the AT32, and the USB block claims them in hardware once its clock is enabled. Routes carrying CAN or 5V signals must move to remapped pins or add level shifting.
Pins 5 and 6. PD0 and PD1 can be GPIO or crystal inputs on the F103. After reset the AT32 fixes them as the external crystal pins, so using them as GPIO requires remapping to alternate pins, and they do not tolerate 5V.
BOOT0. The F103 has no internal pull-down and needs an external resistor; the AT32 integrates about 90kΩ, so the external part can be removed.
USB pull-up. The AT32 has an internal pull-up on USB_DP. The 1.5kΩ pull-up on PA12 in the F103 design must be removed, because two pull-ups in parallel make enumeration unreliable.
Step one, solder the part. Both are LQFP48 with 0.5mm pitch, and the supply, reset, and debug pins line up with GPIO one to one. No PCB revision is needed: remove the old part, fit the new one.
Step two, the clock tree. This is where most failures start. The F103 PLL configuration copied over does not reach 240MHz, and stepping the PLL above 108MHz requires a staged ramp. Do not hand-edit parameters; use the clock configuration template in Artery's firmware package. Verify with a minimal image that only configures the clock and prints the system frequency over a UART. Once it prints 240MHz, migrate peripherals. Reversing that order multiplies debugging time.
Step three, firmware library and DMA. The ST standard peripheral library or HAL must be replaced wholesale with the at32f4xx library, and the startup file and vector table change with it. Code that writes registers directly needs a section-by-section review, because register addresses and bit-field definitions differ. The DMA request mapping table is completely different from the F103, so projects using simultaneous UART DMA must redistribute all 14 channels against the AT32 table.
Step four, multiplexing and USB details. The pin multiplexing controller prioritizes differently: non-timer peripherals take precedence over timers, PA11/PA12 are claimed by USB by default, and routing CAN through that pair means handling the claim and the interrupt vector remap first. Remove the external USB pull-up as listed above. Initialize in the order clock, remap, GPIO mode, peripheral, or the multiplexing configuration will not take effect.
Three project types should wait. Systems running below 2.6V hit a hard limit and should not swap at all. Projects that depend on USB OTG, where the host and device roles alternate, are on hold because AT32F403A USB OTG is not compatible. Projects where the customer mandates the ST ecosystem, or where register-level code is already frozen close to delivery, will find the migration cost concentrated in the clock tree and DMA, and may be better off switching at the next hardware revision.
| Parameter | Value |
|---|---|
| Ordering part number | AT32F403ACCT7 |
| Core and clock | Cortex-M4F with single-precision FPU, up to 240MHz |
| Flash | 256KB, full zero-wait |
| SRAM | 96+128KB |
| Supply voltage | 2.6V to 3.6V |
| Operating temperature | -40°C to +105°C |
| Package | LQFP48, 7 x 7mm, 37 GPIO |
| Key peripherals | 2 x CAN 2.0B, USBFS, 4 x SPI, 3 x I2C, 8 UARTs, 3 x 12-bit ADC, 2 x DAC, 17 timers |
Sourcing view: projects replacing an STM32F103 care about two things, a same-package solder that avoids one board revision, and sample and volume supply rhythm. The AT32F403A family ships 48-pin and 64-pin options in parallel, so locking the option at selection time is what keeps the package unchanged through production.
Samples through volume for the AT32F403ACCT7 are supplied by Shenzhen Manduic Technology Co., Ltd. We are an authorized distributor of Artery, and we can review the STM32F103 difference list and selection with your team.
For samples, datasheets, adaptation support, or technical questions, reach us through the channels below:
Tel: 150-1290-5940
Email: sales@manduic.com
Website: www.manduic.com
Telephone: +86-150-1290-5940
Mobile phone: +86-150-1290-5940
Mailbox: sales@manduic.com
Address: Room 1115, R&D Building, DAFU Technology, Fenghuang Sub‑district, Guangming District, Shenzhen City