ESP32 and Pico pins to avoid, with the reason
Every chip here has pins that look like ordinary GPIO and are not: the SPI flash the code is running from, pads with no output driver, a pin that picks the flash voltage at reset, a Pico W's radio lines. This is the whole list per chip, with the vendor file each row came from — and it is the same table the MCP server refuses calls against.
Last checked against the source code on 2026-11-14.
The five ways a pin is not yours
- Flash and PSRAM. The memory the firmware is executing from. ESP-IDF: “GPIO6-11 and GPIO16-17 are usually connected to the SPI flash and PSRAM integrated on the module”, and “It is strongly not recommended to reconfigure them for other application purposes” (GPIO reference).
- Input-only pads. “GPIO34-39 can only be set as input mode and do not have software-enabled pullup or pulldown functions”. There is no output driver on the die, so an output here is not risky, it is impossible.
- Strapping pins. Sampled at reset to pick the boot mode and the flash voltage (boot-mode selection). Usable while running; dangerous to hold externally.
- The console UART and the USB pads. The link the tool itself is talking over. Driving it does not damage the chip, it cuts the conversation.
- Board-level wiring. Nothing to do with the die: a Pico W’s four CYW43 lines, the Pico’s VBUS sense and regulator-mode pins. These come from the pico.h and pico_w.h board headers.
The tables below use three verdicts, and they are the server’s own: never (refused, no override), only on purpose (refused unless the call passes force=true having read the reason) and usable, with a catch (allowed, warning attached to the result). Everything not listed for a chip drives without a caveat.
ESP32 family
ESP32 — GPIO0–39
13 of the 40 numbers in range drive without a caveat. GPIO 20, 24, 28, 29, 30, 31, 37, 38 are not bonded out on this chip and do not exist.
Never — refused with no override
These are refused by the server outright, for every intent.
| Pin | Why |
|---|---|
GPIO6 | GPIO6 is an SPI flash pin on the ESP32; touching it crashes the running firmware and can corrupt flash |
GPIO7 | GPIO7 is an SPI flash pin on the ESP32; touching it crashes the running firmware and can corrupt flash |
GPIO8 | GPIO8 is an SPI flash pin on the ESP32; touching it crashes the running firmware and can corrupt flash |
GPIO9 | GPIO9 is an SPI flash pin on the ESP32; touching it crashes the running firmware and can corrupt flash |
GPIO10 | GPIO10 is an SPI flash pin on the ESP32; touching it crashes the running firmware and can corrupt flash |
GPIO11 | GPIO11 is an SPI flash pin on the ESP32; touching it crashes the running firmware and can corrupt flash |
GPIO34 | GPIO34 is input-only on the ESP32; it has no output driver, so output is impossible |
GPIO35 | GPIO35 is input-only on the ESP32; it has no output driver, so output is impossible |
GPIO36 | GPIO36 is input-only on the ESP32; it has no output driver, so output is impossible |
GPIO39 | GPIO39 is input-only on the ESP32; it has no output driver, so output is impossible |
Only on purpose — refused unless you pass force=true
Allowed once the caller has read the reason and said so.
| Pin | Why |
|---|---|
GPIO1 | GPIO1 is the ESP32's console UART; driving it drops the serial link this tool is using. Pass force=true if the console is elsewhere (native USB) |
GPIO3 | GPIO3 is the ESP32's console UART; driving it drops the serial link this tool is using. Pass force=true if the console is elsewhere (native USB) |
Usable, with a catch
Allowed; the warning rides along in the tool result.
| Pin | Why |
|---|---|
GPIO0 | GPIO0 is a strapping pin: GPIO0 low at reset enters the serial bootloader (download mode). Fine while running; make sure nothing external holds it at the next reset |
GPIO2 | GPIO2 is a strapping pin: GPIO2 must be low or floating at reset for download mode; it is also the on-board LED on most devkits. Fine while running; make sure nothing external holds it at the next reset |
GPIO5 | GPIO5 is a strapping pin: GPIO5 sets SDIO slave timing at reset. Fine while running; make sure nothing external holds it at the next reset |
GPIO12 | GPIO12 is a strapping pin: GPIO12 (MTDI) high at reset selects 1.8 V flash and a 3.3 V-flash board will not boot. Fine while running; make sure nothing external holds it at the next reset |
GPIO15 | GPIO15 is a strapping pin: GPIO15 (MTDO) low at reset silences the boot log and changes SDIO timing. Fine while running; make sure nothing external holds it at the next reset |
GPIO16 | GPIO16-17 carry the PSRAM on an ESP32-WROVER module and are free on a plain WROOM; ESP-IDF names them with the flash pins. Check your module before using them |
GPIO17 | GPIO16-17 carry the PSRAM on an ESP32-WROVER module and are free on a plain WROOM; ESP-IDF names them with the flash pins. Check your module before using them |
ESP32-S3 — GPIO0–48
25 of the 49 numbers in range drive without a caveat. GPIO 22, 23, 24, 25 are not bonded out on this chip and do not exist.
Never — refused with no override
These are refused by the server outright, for every intent.
| Pin | Why |
|---|---|
GPIO26 | GPIO26 is an SPI flash pin on the ESP32-S3; touching it crashes the running firmware and can corrupt flash |
GPIO27 | GPIO27 is an SPI flash pin on the ESP32-S3; touching it crashes the running firmware and can corrupt flash |
GPIO28 | GPIO28 is an SPI flash pin on the ESP32-S3; touching it crashes the running firmware and can corrupt flash |
GPIO29 | GPIO29 is an SPI flash pin on the ESP32-S3; touching it crashes the running firmware and can corrupt flash |
GPIO30 | GPIO30 is an SPI flash pin on the ESP32-S3; touching it crashes the running firmware and can corrupt flash |
GPIO31 | GPIO31 is an SPI flash pin on the ESP32-S3; touching it crashes the running firmware and can corrupt flash |
GPIO32 | GPIO32 is an SPI flash pin on the ESP32-S3; touching it crashes the running firmware and can corrupt flash |
Only on purpose — refused unless you pass force=true
Allowed once the caller has read the reason and said so.
| Pin | Why |
|---|---|
GPIO19 | GPIO19 is USB D-/D+ on the ESP32-S3; using it as GPIO disconnects a native-USB link. Pass force=true if the board is wired through an external UART bridge |
GPIO20 | GPIO20 is USB D-/D+ on the ESP32-S3; using it as GPIO disconnects a native-USB link. Pass force=true if the board is wired through an external UART bridge |
GPIO43 | GPIO43 is the ESP32-S3's console UART; driving it drops the serial link this tool is using. Pass force=true if the console is elsewhere (native USB) |
GPIO44 | GPIO44 is the ESP32-S3's console UART; driving it drops the serial link this tool is using. Pass force=true if the console is elsewhere (native USB) |
Usable, with a catch
Allowed; the warning rides along in the tool result.
| Pin | Why |
|---|---|
GPIO0 | GPIO0 is a strapping pin: GPIO0 low at reset enters the serial bootloader. Fine while running; make sure nothing external holds it at the next reset |
GPIO3 | GPIO3 is a strapping pin: GPIO3 selects JTAG source at reset. Fine while running; make sure nothing external holds it at the next reset |
GPIO33 | GPIO33-37 carry octal PSRAM/flash on modules with 8-line memory; check the module before using them |
GPIO34 | GPIO33-37 carry octal PSRAM/flash on modules with 8-line memory; check the module before using them |
GPIO35 | GPIO33-37 carry octal PSRAM/flash on modules with 8-line memory; check the module before using them |
GPIO36 | GPIO33-37 carry octal PSRAM/flash on modules with 8-line memory; check the module before using them |
GPIO37 | GPIO33-37 carry octal PSRAM/flash on modules with 8-line memory; check the module before using them |
GPIO45 | GPIO45 is a strapping pin: GPIO45 selects the VDD_SPI voltage at reset. Fine while running; make sure nothing external holds it at the next reset |
GPIO46 | GPIO46 is a strapping pin: GPIO46 must be low at reset for download mode. Fine while running; make sure nothing external holds it at the next reset |
ESP32-C3 — GPIO0–21
9 of the 22 numbers in range drive without a caveat.
Never — refused with no override
These are refused by the server outright, for every intent.
| Pin | Why |
|---|---|
GPIO12 | GPIO12 is an SPI flash pin on the ESP32-C3; touching it crashes the running firmware and can corrupt flash |
GPIO13 | GPIO13 is an SPI flash pin on the ESP32-C3; touching it crashes the running firmware and can corrupt flash |
GPIO14 | GPIO14 is an SPI flash pin on the ESP32-C3; touching it crashes the running firmware and can corrupt flash |
GPIO15 | GPIO15 is an SPI flash pin on the ESP32-C3; touching it crashes the running firmware and can corrupt flash |
GPIO16 | GPIO16 is an SPI flash pin on the ESP32-C3; touching it crashes the running firmware and can corrupt flash |
GPIO17 | GPIO17 is an SPI flash pin on the ESP32-C3; touching it crashes the running firmware and can corrupt flash |
Only on purpose — refused unless you pass force=true
Allowed once the caller has read the reason and said so.
| Pin | Why |
|---|---|
GPIO18 | GPIO18 is USB D-/D+ on the ESP32-C3; using it as GPIO disconnects a native-USB link. Pass force=true if the board is wired through an external UART bridge |
GPIO19 | GPIO19 is USB D-/D+ on the ESP32-C3; using it as GPIO disconnects a native-USB link. Pass force=true if the board is wired through an external UART bridge |
GPIO20 | GPIO20 is the ESP32-C3's console UART; driving it drops the serial link this tool is using. Pass force=true if the console is elsewhere (native USB) |
GPIO21 | GPIO21 is the ESP32-C3's console UART; driving it drops the serial link this tool is using. Pass force=true if the console is elsewhere (native USB) |
Usable, with a catch
Allowed; the warning rides along in the tool result.
| Pin | Why |
|---|---|
GPIO2 | GPIO2 is a strapping pin: GPIO2 must be high at reset for the ROM bootloader. Fine while running; make sure nothing external holds it at the next reset |
GPIO8 | GPIO8 is a strapping pin: GPIO8 must be high at reset for download mode. Fine while running; make sure nothing external holds it at the next reset |
GPIO9 | GPIO9 is a strapping pin: GPIO9 low at reset enters the serial bootloader. Fine while running; make sure nothing external holds it at the next reset |
ESP32-S2 — GPIO0–46
29 of the 47 numbers in range drive without a caveat. GPIO 22, 23, 24, 25 are not bonded out on this chip and do not exist.
Never — refused with no override
These are refused by the server outright, for every intent.
| Pin | Why |
|---|---|
GPIO26 | GPIO26 is an SPI flash pin on the ESP32-S2; touching it crashes the running firmware and can corrupt flash |
GPIO27 | GPIO27 is an SPI flash pin on the ESP32-S2; touching it crashes the running firmware and can corrupt flash |
GPIO28 | GPIO28 is an SPI flash pin on the ESP32-S2; touching it crashes the running firmware and can corrupt flash |
GPIO29 | GPIO29 is an SPI flash pin on the ESP32-S2; touching it crashes the running firmware and can corrupt flash |
GPIO30 | GPIO30 is an SPI flash pin on the ESP32-S2; touching it crashes the running firmware and can corrupt flash |
GPIO31 | GPIO31 is an SPI flash pin on the ESP32-S2; touching it crashes the running firmware and can corrupt flash |
GPIO32 | GPIO32 is an SPI flash pin on the ESP32-S2; touching it crashes the running firmware and can corrupt flash |
GPIO46 | GPIO46 is input-only on the ESP32-S2; it has no output driver, so output is impossible |
Only on purpose — refused unless you pass force=true
Allowed once the caller has read the reason and said so.
| Pin | Why |
|---|---|
GPIO19 | GPIO19 is USB D-/D+ on the ESP32-S2; using it as GPIO disconnects a native-USB link. Pass force=true if the board is wired through an external UART bridge |
GPIO20 | GPIO20 is USB D-/D+ on the ESP32-S2; using it as GPIO disconnects a native-USB link. Pass force=true if the board is wired through an external UART bridge |
GPIO43 | GPIO43 is the ESP32-S2's console UART; driving it drops the serial link this tool is using. Pass force=true if the console is elsewhere (native USB) |
GPIO44 | GPIO44 is the ESP32-S2's console UART; driving it drops the serial link this tool is using. Pass force=true if the console is elsewhere (native USB) |
Usable, with a catch
Allowed; the warning rides along in the tool result.
| Pin | Why |
|---|---|
GPIO0 | GPIO0 is a strapping pin: GPIO0 low at reset enters the serial bootloader. Fine while running; make sure nothing external holds it at the next reset |
GPIO45 | GPIO45 is a strapping pin: GPIO45 selects the VDD_SPI voltage at reset. Fine while running; make sure nothing external holds it at the next reset |
ESP32-C6 — GPIO0–30
15 of the 31 numbers in range drive without a caveat.
Never — refused with no override
These are refused by the server outright, for every intent.
| Pin | Why |
|---|---|
GPIO24 | GPIO24 is an SPI flash pin on the ESP32-C6; touching it crashes the running firmware and can corrupt flash |
GPIO25 | GPIO25 is an SPI flash pin on the ESP32-C6; touching it crashes the running firmware and can corrupt flash |
GPIO26 | GPIO26 is an SPI flash pin on the ESP32-C6; touching it crashes the running firmware and can corrupt flash |
GPIO27 | GPIO27 is an SPI flash pin on the ESP32-C6; touching it crashes the running firmware and can corrupt flash |
GPIO28 | GPIO28 is an SPI flash pin on the ESP32-C6; touching it crashes the running firmware and can corrupt flash |
GPIO29 | GPIO29 is an SPI flash pin on the ESP32-C6; touching it crashes the running firmware and can corrupt flash |
GPIO30 | GPIO30 is an SPI flash pin on the ESP32-C6; touching it crashes the running firmware and can corrupt flash |
Only on purpose — refused unless you pass force=true
Allowed once the caller has read the reason and said so.
| Pin | Why |
|---|---|
GPIO12 | GPIO12 is USB D-/D+ on the ESP32-C6; using it as GPIO disconnects a native-USB link. Pass force=true if the board is wired through an external UART bridge |
GPIO13 | GPIO13 is USB D-/D+ on the ESP32-C6; using it as GPIO disconnects a native-USB link. Pass force=true if the board is wired through an external UART bridge |
GPIO16 | GPIO16 is the ESP32-C6's console UART; driving it drops the serial link this tool is using. Pass force=true if the console is elsewhere (native USB) |
GPIO17 | GPIO17 is the ESP32-C6's console UART; driving it drops the serial link this tool is using. Pass force=true if the console is elsewhere (native USB) |
Usable, with a catch
Allowed; the warning rides along in the tool result.
| Pin | Why |
|---|---|
GPIO4 | GPIO4 is a strapping pin: GPIO4 is a strapping pin on the C6. Fine while running; make sure nothing external holds it at the next reset |
GPIO5 | GPIO5 is a strapping pin: GPIO5 is a strapping pin on the C6. Fine while running; make sure nothing external holds it at the next reset |
GPIO8 | GPIO8 is a strapping pin: GPIO8 must be high at reset for download mode. Fine while running; make sure nothing external holds it at the next reset |
GPIO9 | GPIO9 is a strapping pin: GPIO9 low at reset enters the serial bootloader. Fine while running; make sure nothing external holds it at the next reset |
GPIO15 | GPIO15 is a strapping pin: GPIO15 is a strapping pin on the C6. Fine while running; make sure nothing external holds it at the next reset |
Raspberry Pi Pico family
The RP2040 and RP2350 reserve nothing on the die — every GPIO0–29 is a real pin. What the tables below carry is board wiring, which is why the Pico and the Pico W differ on the same chip.
Raspberry Pi Pico (RP2040) — GPIO0–29
27 of the 30 numbers in range drive without a caveat.
Only on purpose — refused unless you pass force=true
Allowed once the caller has read the reason and said so.
| Pin | Why |
|---|---|
GPIO24 | GPIO24 senses VBUS through a divider on the Pico; driving it fights the divider. Pass force=true to do it anyway |
Usable, with a catch
Allowed; the warning rides along in the tool result.
| Pin | Why |
|---|---|
GPIO23 | GPIO23 switches the on-board regulator between PFM and PWM mode on the Pico |
GPIO29 | GPIO29 measures VSYS/3 on the Pico; as an output it loads the divider |
Raspberry Pi Pico W (RP2040 + CYW43) — GPIO0–29
26 of the 30 numbers in range drive without a caveat.
Only on purpose — refused unless you pass force=true
Allowed once the caller has read the reason and said so.
| Pin | Why |
|---|---|
GPIO23 | GPIO23 is the CYW43 wireless chip's power line on the Pico W. Pass force=true to do it anyway |
GPIO24 | GPIO24 is the CYW43 SPI data line on the Pico W. Pass force=true to do it anyway |
GPIO25 | GPIO25 is the CYW43 SPI chip-select on the Pico W (the LED is on the CYW43, not this pin). Pass force=true to do it anyway |
GPIO29 | GPIO29 is the CYW43 SPI clock on the Pico W. Pass force=true to do it anyway |
Raspberry Pi Pico 2 (RP2350) — GPIO0–29
27 of the 30 numbers in range drive without a caveat.
Only on purpose — refused unless you pass force=true
Allowed once the caller has read the reason and said so.
| Pin | Why |
|---|---|
GPIO24 | GPIO24 senses VBUS through a divider on the Pico 2; driving it fights the divider. Pass force=true to do it anyway |
Usable, with a catch
Allowed; the warning rides along in the tool result.
| Pin | Why |
|---|---|
GPIO23 | GPIO23 switches the on-board regulator mode on the Pico 2 |
GPIO29 | GPIO29 measures VSYS/3 on the Pico 2; as an output it loads the divider |
Two gotchas worth saying out loud
GPIO16 and 17 on a classic ESP32 are a “check your module”, not a yes or a no. ESP-IDF names them in the same sentence as the flash pins, because on a WROVER module they carry the PSRAM. On the plain WROOM most people own they are free. The chip cannot tell you which module it is soldered to, so the honest verdict is the warning, and that is what both this page and the tool give you.
The Pico W’s LED is not on a GPIO at all. pico_w.h says “no PICO_DEFAULT_LED_PIN - LED is on Wireless chip”, and GPIO25 — the LED pin on a plain Pico — is the CYW43’s chip-select on the W. A blink sketch ported straight across does nothing visible and quietly argues with the radio.
The audit, as the agent sees it
gpio_audit returns this table for the board that is actually attached, and every pin tool runs the same audit in code first. A refusal names the pin, the reason and whether anything would let it through:
gpio_write { "path": "COM5", "pin": 6, "value": 1 }
-> refused before touching the board (pin safety, ESP32):
GPIO6 (output): GPIO6 is an SPI flash pin on the ESP32; touching it crashes the running firmware and can corrupt flash
Run gpio_audit to see the whole pin map for this board.Proof level, stated plainly: the tables are checked against the vendors’ own files by unit tests, and the refusals are exercised end to end against simulated boards (the real MicroPython interpreter with a faked machine module). No pin has ever been refused on physical silicon by the studio. What has run on real hardware is the flash-and-watch path, on an Arduino Nano ESP32 on 2026-10-31.
Have your agent do this for you
Point your agent at the board and it gets this table for the chip in front of it — and cannot drive a flash pin even if it decides it wants to.
Install the server (macOS or Linux; Node.js 20 or newer, installs under your home directory, no root):
curl -fsSL https://mcuport.com/install.sh | shWindows PowerShell: irm https://mcuport.com/install.ps1 | iex
Then register it with Claude Code:
claude mcp add mcuport -- ~/.local/bin/mcuportNo board on the desk right now? The same server runs three simulated boards on the real MicroPython interpreter, so you can see the tool calls before you own anything: claude mcp add mcuport -e MCUPORT_SIMULATOR=1 -- ~/.local/bin/mcuport
No account, no sign-up and no upload: it is a local process that talks to your board over USB. The desktop server is free with unlimited boards — see pricing for the one thing that is not — and the quickstart has the Claude Desktop and Cursor config.
Frequently asked questions
- Which ESP32 pins should I never use for my own wiring?
- On a classic ESP32: GPIO6, 7, 8, 9, 10 and 11. ESP-IDF's GPIO reference says "GPIO6-11 and GPIO16-17 are usually connected to the SPI flash and PSRAM integrated on the module" and that they "should not be used for other purposes" -- touching one while the firmware is running takes the flash out from under the code that is executing. GPIO34, 35, 36 and 39 are also off the list for outputs, because ESP-IDF states "GPIO34-39 can only be set as input mode and do not have software-enabled pullup or pulldown functions"; they read inputs perfectly well.
- Why does my ESP32 stop booting when I connect something to GPIO12?
- Because GPIO12 is sampled at reset to choose the flash supply voltage. Espressif's boot-mode documentation says of it: "If driven High, flash voltage (VDD_SDIO) is 1.8V not default 3.3V", and "May prevent flashing and/or booting if 3.3V flash is used and this pin is pulled high, causing the flash to brownout." The pin has an internal pull-down, so left unconnected it reads low and you get 3.3 V. The pin is fine to use once the chip is running -- what breaks the board is something external holding it high at the next reset.
- Why doesn't the Pico W's LED answer on GPIO25?
- Because on a Pico W, GPIO25 is not the LED. The pico-sdk's own pico_w.h board header says "no PICO_DEFAULT_LED_PIN - LED is on Wireless chip" and defines GPIO25 as CYW43_DEFAULT_PIN_WL_CS, the wireless chip's SPI chip-select. On a plain Pico, pico.h defines PICO_DEFAULT_LED_PIN as 25 and the LED is really there. The W reserves GPIO23, GPIO24, GPIO25, GPIO29 for the CYW43, and driving any of them fights the radio.
- What about the strapping pins -- can I use them or not?
- Yes, with one condition: nothing external may hold them at the wrong level when the board resets. They are sampled only at reset, and the chip's own pad state does not survive a reset, so the risk is your wiring, not your code. On a classic ESP32 that list is GPIO0, GPIO2, GPIO5, GPIO12, GPIO15. GPIO15 is worth knowing for a different reason: Espressif documents that driving it low "silences boot messages printed by the ROM bootloader", so a board wired that way looks dead on the serial port while working perfectly.
- How does a pin-safety check stop an AI agent frying a board, when it is just text?
- It is not text. In MCUPort the table on this page is a data structure in the server (server/src/pin_safety.ts), and every tool that names a pin -- gpio_mode, gpio_read, gpio_write, adc_read, pwm_write, i2c_*, spi_transfer -- audits against it before a single byte reaches the board. A flash pin, a pin that does not exist and an output on an input-only pad are refused with no override. The console UART, the native USB pads and the Pico W's wireless lines are refused unless the call passes force=true after reading the reason. A strapping pin goes through with the warning attached to the result. Prompt text cannot do that; a refusal in code can.
- What happens on a chip whose pinout the server does not know?
- It says so. If the board does not identify its chip, every pin comes back as a warning whose reason is that no pin table applies and nothing here was checked -- never a silent pass. The chip is read from the board itself where possible (a MicroPython board's os.uname().machine, a bridge-sketch board's hello line), with the USB family as a fallback, and the result states which of those identified it. "Unchecked" and "safe" are different answers and the tool never confuses them.