TL;DR: Page 1 of an MCU datasheet lists every peripheral on the silicon, not every peripheral you can run at the same time on a 32-pin or 64-pin package. Checking whether 3 ADC channels, 1 full 4-bit SDIO bus, and 2 I2C buses coexist without stealing SWD or HSE crystal pins is a matching problem: every signal needs its own pin. You can test it live right now in our free Simultaneous Peripheral & Pin-Mux Conflict Solver (pre-loaded with STM32F405RGT6 LQFP64 and STM32G031K8 UFQFPN32, zero signup required).
1. Count physical signals, not marketing bullets
Suppose a board needs 3 ADC channels, 1 full 4-bit SDIO interface, 2 I2C buses, 1 SPI bus, 1 UART, plus SWD debug, an external HSE crystal, and BOOT0. Before adding a single status LED or power rail, that requirement already demands 20+ dedicated physical I/O pins, and several of those signals only map to one or two pins on a 64-pin package.
- 4-bit SDIO: 6 required signals (
CK,CMD,D0,D1,D2,D3). - 2x I2C: 4 signals (
SDA,SCLper bus). - Board-reserved pins:
SWDIO,SWCLK,OSC_IN,OSC_OUT,NRST, andBOOT0should be reserved before solving.
2. Real pin-mux collisions on STM32F405 LQFP64 and STM32G031 UFQFPN32
Assigning peripherals by hand fails when an early choice (like leaving SPI2_SCK on PB10) blocks a later bus (I2C2) even though SPI2_SCK had another position on PB13. Four collisions on these two packages:
| Package | Pin | Shared Signals | Solver Outcome |
|---|---|---|---|
| STM32F405RGT6 (LQFP64) | PC9 (Pin 40) | SDIO_D1 (AF12) vs. I2C3_SDA (AF4) | Checking 4-bit SDIO blocks I2C3; switching to 1-bit SDIO frees PC9 so all 3 I2C buses fit. |
| STM32F405RGT6 (LQFP64) | PB10 / PB11 (Pins 29-30) | I2C2_SCL/SDA vs. SPI2_SCK & USART3_TX/RX | With I2C2 on PB10/PB11, the solver places SPI2_SCK on PB13. |
| STM32F405RGT6 (LQFP64) | PC10 / PC11 (Pins 51-52) | SDIO_D2/D3 vs. USART3_TX/RX & SPI3 | With I2C2 and 4-bit SDIO selected, USART3 cannot be added: three signals are left with two pins, PB10 and PC10. |
| STM32G031K8 (UFQFPN32) | PA13 / PA14 (Pins 24-25) | SWDIO / SWCLK-BOOT0 vs. USART2_TX | With SWD and BOOT0 reserved, PA14 is never assigned and USART2 still fits on other pins. |
3. Explainable conflicts, not mystery greyed-out boxes
Every time you change what your board needs in the Pin-Mux Conflict Solver, by number (for example 1 CAN and 1 SDIO) or by controller name, the solver tries every remaining bus against your current selection. If a controller cannot be added, it is struck through and says which signals and pins run out (for example: I2C3_SDA and SDIO_D1 can only use PC9: 2 signals, 1 pin.). The answer is one of four: fits, pins free but check the remap table, doesn't fit, or can't tell when the pin list is incomplete. The full rules and limits are in our Pin-Mux Conflict Solver documentation.
4. Run it on any uploaded datasheet or from an AI agent via MCP
Inside DatasheetVend, the results page of a Pinout extraction has a Pin-Mux Conflict Solver tab beside the pinout table. It works from the alternate functions that were extracted, from any vendor, and says so when they are not enough to answer. For AI coding agents (Claude, Cursor, Antigravity), the same solver is exposed free with no API key as datasheetvend_solve_pin_mux on our MCP endpoint.
Once your peripherals fit on the package, validate that your battery can actually power them over your target duty cycle using our MCU Power Consumption & Battery Runtime guide and free Power Runtime Estimator.
Frequently Asked Questions
Can STM32F405 LQFP64 run 4-bit SDIO, 2 I2C buses, and 3 ADC channels simultaneously?
Yes, with I2C1 and I2C2 plus 4-bit SDIO and 3 ADC channels while keeping SWD, HSE, and BOOT0 reserved. However, adding I2C3 collides with SDIO_D1 on PC9 unless you drop SDIO to 1-bit mode.
Can one STM32 pin carry two alternate functions at the same time?
No. Each physical pin selects one digital alternate function (or analog mode) at a time. Two simultaneous buses cannot share a pin unless externally multiplexed or time-sliced in firmware.
Why reserve SWD, HSE crystal, and BOOT0 before solving?
A solver that assigns a UART or SPI line onto SWDIO, SWCLK, OSC_IN, or BOOT0 produces a mathematically valid map that fails during board bring-up and production flashing.
What should I check after a pin-mux solution passes logically?
Verify electrical constraints that pure AF tables do not enforce: 5 V tolerance in digital vs. analog mode, external I2C pull-up sink current (3.3 V / 4.7 kOhm = 0.70 mA per low line), DMA channel sharing, and high-speed SDIO noise near analog ADC pins.
Run one on a datasheet you have.
A new account gets five free passes. Each pass runs up to two modules, pinout and footprint included, on a PDF up to 25 MB.