Solve simultaneous MCU peripheral pin-muxing
datasheetvend_solve_pin_muxCheck whether MCU buses (I2C, SPI, UART, SDIO, CAN, USB) and a number of ADC channels can each have their own physical pins. Works on any chip: supply your own pins[] (pin_number, pin_name, functions[]), or sample_part_id ('stm32f405rg_lqfp64' or 'stm32g031k8_ufqfpn32') to try it. Ask by number with requested_buses (e.g. {"CAN": 1, "SDIO": 1}) and requested_adc_channels, and the controller choices that fit come back in layouts[]; or name controllers in selected_peripheral_ids (e.g. ['sdio:sdio', 'i2c:i2c1']). Call with no selection to list the ids. verdict is 'fits', 'fits_unverified' (pins are free, but the pin list does not show those positions can be combined), 'does_not_fit' (with the signals and pins that run out) or 'cannot_tell' (the pin list is incomplete). Exact matching, no model call, free, no API key, reads no account data. Remap groups, IO sets, shared peripherals, DMA, timers and electrical limits are not modelled.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "datasheetvend_solve_pin_mux"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pins | No | Custom pinout matrix to solve against (overrides sample_part_id). | |
| sdio_bits | No | Data width used when SDIO is asked for by number. | |
| locked_pins | No | Pins the board already uses, by pin number or pin name. | |
| sample_part_id | No | Optional pre-loaded sample MCU package to solve against. | |
| package_variant | No | Package label when supplying custom pins[], e.g. 'LQFP64'. It is echoed, not checked against the pins. | |
| requested_buses | No | How many buses of each kind are needed, on whichever controllers fit, e.g. {"CAN": 1, "SDIO": 1}. Controllers named in selected_peripheral_ids count toward the number. | |
| reserve_swo_pin | No | Also reserve the serial wire output pin. | |
| reserve_jtag_pins | No | Also reserve every JTAG pin. | |
| reserve_clock_pins | No | Reserve HSE/LSE crystal oscillator pins. | |
| reserve_debug_pins | No | Reserve the two-wire debug pins (SWDIO/SWCLK or equivalent). | |
| requested_adc_channels | No | Number of single-ended ADC channels needed at the same time, each on its own pin. | |
| reserve_boot_reset_pins | No | Reserve boot and reset pins. | |
| selected_peripheral_ids | No | Peripheral instance IDs to enable simultaneously, e.g. ['sdio:sdio', 'i2c:i2c1', 'i2c:i2c2', 'spi:spi2']. Leave empty to discover available peripherals. |