Learn/esp32recoveryesp-idf

Recover a Bricked ESP32 After a Bad Update

An update just bricked a batch of Eight Sleep hubs that could not be fixed remotely. Here is how to recover a bricked ESP32 over USB, and how to keep that way back open.

Signed by M·
Brick workbench at night where a brick laptop runs a single golden thread down a cable to a small dark ESP32 board whose orb is starting to glow again
How do I recover a bricked ESP32 after a bad firmware update?

Connect it over USB and hold GPIO0 low while it resets, usually the BOOT button, so the chip starts its ROM serial bootloader instead of the broken app. From there you can back up the flash, erase otadata to fall back to a factory app, or flash a known-good build. It only works if UART download mode is still enabled.

On November 30, 2026, Eight Sleep confirmed that a firmware issue had hit a subset of its older Pod Hubs, models 3 and 4. TechCrunch reported that the affected Pods stopped responding, which meant the company couldn't fix them with another remote update. It's offering free repairs or replacements, even out of warranty, and that's the decent thing to do.

It's also a lesson for anyone running boards at home. A device that only knows how to be fixed over the network has no way back once the network side is gone. If you build with an ESP32, you can keep one. Here's how to recover a bricked ESP32 over a USB cable, and how to make sure that path still exists the day you need it.

What A Bricked ESP32 Usually Means

"Bricked" covers two very different things. A soft brick is a board whose app won't start or won't behave: it boot-loops, hangs, or drops off the Wi-Fi and never comes back. The chip is fine. A hard brick is a board that can't be reached at all, because of a damaged part or a security setting burned into eFuse that you can't undo.

A bad app update on its own leaves a soft brick, and that's good news, because the chip has a door the app can't lock. The serial bootloader sits in ROM, separate from your firmware in flash, and Espressif's boot mode guide is clear on how you reach it: the ESP32 enters the serial bootloader when GPIO0 is held low on reset, and otherwise runs the program in flash.

To be clear about the hook: nothing I read says what chip is inside an Eight Sleep hub, so this isn't a claim about their hardware. It's about the general shape of the failure. Eight Sleep had earlier added an outage mode so Pods keep working when the cloud is down, as Engadget noted. Recovery is the next step past that.

Get Back In Through The Serial Bootloader

You need a USB cable, a computer, and some patience. Don't flash anything onto a bricked ESP32 yet.

Put The Board In Download Mode

On most dev boards you don't have to touch anything. esptool resets the chip into download mode by toggling the DTR and RTS lines on the board's USB-serial chip, which are wired to GPIO0 and EN.

If that fails because the broken app is hogging the port or the board has no auto-reset circuit, do it by hand. Hold the button marked BOOT or FLASH, which pulls GPIO0 low, tap EN or RESET, then let go of BOOT. On the original ESP32, GPIO2 must also be floating or low. A board that answers esptool flash-id is in download mode and very much alive.

Save A Copy Before You Change Anything

Before you erase or write a single byte, read the whole flash back to a file. The esptool basic commands document read-flash with ALL as the size, so the tool detects the flash size for you:

esptool -p PORT -b 460800 read-flash 0 ALL broken-board-backup.bin

That file is the board exactly as it failed, settings partition included. If the recovery goes wrong, you can put it back. If you want to know what the bad image did, you have it to study.

Fall Back To The Factory App, Or Reflash

If your partition table has a factory app, there's a quick route. ESP-IDF's partition table guide says the bootloader reads the otadata partition to decide which app to run, and runs the factory app when otadata is empty. The OTA reference adds that with no factory app it boots the first OTA slot, and its otatool.py has an erase_otadata operation that does the reset for you.

No factory app, or the factory app is too old to be useful? Flash your last known-good build: bootloader, partition table and app, at the same offsets you built for. The house flash tool, espino, and its esptool comparison cover that loop.

Keep The Way Back Open Before The Next Update

Recovery is easy when you planned for it, and impossible when you didn't. Three habits make the difference.

Decide About UART Download Mode Before You Burn eFuses

Locking a production board is sensible, but it can remove the door this whole guide depends on. Espressif's security overview lists disabling UART download mode as part of hardening, notes that on ESP32 ECO3 it stays disabled when security features are on in their release configuration, and says that if it's disabled, esptool can't work on the device.

That's a one-way choice. Make it on purpose, write it down, and keep at least one unlocked board of the same type on your bench for testing updates. If you're weighing this alongside the recent ESP-TEE advisory, the ESP-TEE check covers which settings were in play there.

Rollback Catches Crashes, Not A Bad App That Says It's Fine

App rollback, covered in our OTA safety guide, protects you from an image that resets before it confirms itself. Once an app marks itself valid, though, the bootloader stops watching. An update that boots, confirms, and then runs a heater too hot or loses its Wi-Fi config is a soft brick that rollback won't touch.

So make the confirm step earn its name. Before the new app calls itself valid, have it read its sensor, reach your home network, and do its one real job once. If it can't, let it fail and roll back. The power-cycle test is a good bench routine for proving that works.

Update One Board First, And Keep Control At Home

Push a new image to one device, live with it for a day, then do the rest. A staged update turns "every bed in the house is hot" into "one board on the bench is acting up".

It also helps when the update source sits on your own network. Devices that keep working with the internet unplugged, as in smart home without the cloud, keep their schedule and their off switch when a vendor's server or update goes wrong. If you want the whole house on that footing, the home computer on mata.network is where local boards join, MATA Home integration shows how, and our afternoon setup guide gets the first one running.

FAQ

Quick answers for builders evaluating this technology.

Can a bad firmware update permanently brick an ESP32?

Usually not. The serial bootloader lives in the chip's ROM, so a broken app in flash can't remove it, and holding GPIO0 low on reset reaches it. The real dead ends are eFuse choices, such as disabling UART download mode, and actual hardware damage. Espressif notes that with UART download mode disabled, esptool can't work on the device.

How do I put an ESP32 into download mode by hand?

Hold the BOOT or FLASH button, which pulls GPIO0 low, then press and release EN or RESET, then let go of BOOT. On the original ESP32, GPIO2 also has to be floating or low. Most dev boards do this for you: esptool toggles DTR and RTS on the USB-serial chip to reset into download mode.

What does erasing the otadata partition do on an ESP32?

It clears the record of which OTA slot to boot. With otadata empty, the ESP-IDF bootloader starts the factory app if your partition table has one, and otherwise the first OTA slot, usually ota_0. ESP-IDF's otatool.py has an erase_otadata operation for exactly this.

Was the bricked Eight Sleep hub an ESP32?

Nothing I read says which chip is inside the Hub 3 or Hub 4, so this article doesn't claim it. Eight Sleep said a firmware issue hit a subset of those hubs, and TechCrunch reported the affected Pods no longer respond, so they can't be fixed with another remote update. The lesson applies to any device you own.

Will ESP-IDF app rollback save me from every bad update?

No. Rollback catches a new app that resets or reports failure before it confirms itself. Once the app marks itself valid, the bootloader stops watching it, so an image that boots fine and then misbehaves stays put. That's when the USB path in this guide, or a better pre-confirm check, earns its keep.