← Back to blog

The ESP32-C3 GPIOs You Can't Just Use

Brandon Schaefer··Updated November 24, 2026·4 min read·

Picking six GPIOs for a three-bar LED controller redesign meant avoiding two pins that look exactly like every other GPIO on paper - until a perfectly ordinary gate pulldown forces the chip into bootloader mode instead of running its firmware.

Table of contents

Redesigning a small LED controller board to drive three independent CCT (cool/warm white) light bars instead of one meant going from two GPIO-driven channels to six. Doubling, then tripling, the pin budget on a chip that only has so many usable GPIOs means touching pins the original single-bar design never needed - and on an ESP32-C3, a handful of those pins come with a catch that doesn't show up anywhere in a normal pinout diagram.

What a strapping pin actually does

On power-up, before any firmware runs, the ESP32-C3 samples the logic level on a small set of dedicated "strapping" pins to decide how to boot - most importantly, whether to boot normally from flash or drop into the UART/USB serial bootloader for reflashing. That decision happens once, instantaneously, based purely on whatever voltage happens to be sitting on those pins at that exact moment. Your code has no say in it, because your code doesn't exist yet as far as the chip is concerned.

That's the trap: a strapping pin looks electrically identical to every other GPIO once the chip is running. Nothing in a schematic symbol or a pin-assignment table flags it as special unless you already know which pins they are and go check.

The specific pins: GPIO2, GPIO8, and GPIO9

For the ESP32-C3, the relevant strapping pins are GPIO2, GPIO8, and GPIO9. GPIO9 is the download-boot strap specifically - pulled one way at boot, the chip starts your firmware normally; pulled the other way, it boots straight into the bootloader, waiting for a flash tool instead of running anything. GPIO8 is the other one worth treating as off-limits by default.

How an ordinary design habit collides with it

Each of the six LED driver channels on this board uses a gate-driver MOSFET with a pulldown resistor on its gate - a completely standard, even recommended, practice so the LED output defaults off if the microcontroller resets or hasn't started driving the pin yet. There's nothing unusual about that circuit in isolation. The problem is that a hard pulldown is exactly the kind of passive, always-present signal that can override a strapping pin's intended default at the exact moment the chip is deciding how to boot. Land that same ordinary pulldown on GPIO9, and the board can end up stuck in bootloader mode permanently, with no software fix available - the firmware never gets a chance to run.

Why this would have been a nightmare to debug after the fact

Had GPIO8 or GPIO9 ended up in the final assignment, the board wouldn't necessarily look broken on a bench test - it still powers up, still enumerates over USB, still looks alive. What it wouldn't do is run the firmware that was just flashed to it, or it would keep silently re-entering flash mode on every reset. That symptom reads exactly like a software or flashing problem, which is the worst possible place for a hardware-level strapping conflict to hide: the obvious next step is to re-flash, re-check the build, and re-flash again, none of which touches the actual cause.

The assignment that avoided it

The final GPIO assignment kept the first bar's pins unchanged from the original single-bar design (GPIO4/GPIO3), then added GPIO5/GPIO6 for the second bar and GPIO7/GPIO10 for the third - six channels, all deliberately routed around GPIO2, GPIO8, and GPIO9.

A checklist for the next ESP32-C3 layout

  • Cross off GPIO2, GPIO8, and GPIO9 before assigning anything else - treat them as unavailable by default rather than checking them last.
  • Any passive bias on a candidate pin (a pulldown, a pullup, even an RC filter) counts as strap risk, whether or not it's actively driven at the moment you're reasoning about it - the chip can't tell a deliberate strapping resistor from incidental circuitry left over from an unrelated design choice.
  • A devboard usually hides this entirely, because the board itself isolates the strapping pins from the header pins broken out to the user - going from a devboard prototype to a bare module on a custom PCB is exactly the transition where this trap reappears.
  • The exact strapping pins differ by ESP32 variant (C3 vs. S3 vs. the original ESP32, for example) - check the specific chip's datasheet rather than assuming a pin table from a different variant carries over.

A cheap check against an expensive mistake

None of this requires special tooling - it's three pin numbers to avoid, checked once against a datasheet before committing to a layout. The alternative is a board that looks fine in every way except the one that matters: it never runs the firmware it was built to run, and the reason why doesn't show up until someone already suspects the hardware instead of the code.