espsss / reference / errors

ESP32 error messages

Common messages from esptool, the ROM bootloader, ESP-IDF and the Arduino build, each with its cause and fix. Titles are the text as printed; … marks parts that vary.

Upload and connection

Errors printed by esptool when it cannot talk to the ROM bootloader.

A fatal error occurred: Failed to connect to ESP32: No serial data received.

esptool did not receive a single byte or a valid SLIP packet from the chip. The esptool guide says this usually points to hardware: the board is not working, the RX/TX lines are not connected, or the reset into download mode fails. The chip name in the message is the one esptool is connecting to.1

Fix: Check the port name and that no other program (an open serial monitor) holds the port, a stable 3.3 V supply, the boot pins, and anything wired to the GPIOs. Try a lower baud rate (-b 9600). If automatic reset does not work, enter download mode by hand: hold Boot (GPIO0) and press EN.

A fatal error occurred: Failed to connect to ESP32: Timed out waiting for packet header

The same connection failure in the wording quoted by the arduino-esp32 troubleshooting guide. esptool v5.3.1, the version arduino-esp32 3.3.12 installs, has no such message: a read that gets no data raises "No serial data received."23

Fix: From the arduino-esp32 guide: try another USB cable (some are charge-only), a port directly on the computer instead of a hub, check the power supply, keep TX and RX free, hold the BOOT button while uploading, or solder a 10 uF capacitor between RST and GND.

Wrong boot mode detected (0xXX)! The chip needs to be in download mode.

esptool sees the ROM boot log, so the serial link works, but the chip was not reset into download mode. The value in parentheses is the boot mode the chip reported.13

Fix: Check the auto-reset circuit (DTR/RTS to GPIO0 and EN) or enter download mode by hand: hold Boot and press EN. On third-party boards without a capacitor on EN, a 1 uF (or larger) capacitor between EN and GND may make automatic reset more reliable.

→ Boot and crash message decoder

Download mode successfully detected, but getting no sync reply: The serial TX path seems to be down.

The chip enters download mode and sends data, but does not receive what esptool sends: the line from the computer to the chip is broken.13

Fix: Check the host TX to chip RX connection on the board or breadboard.

Invalid head of packet (0xXX): Possible serial noise or corruption.

Corrupted data on the serial link. The esptool guide lists a bad USB cable, a breadboard shorting the SPI flash pins, and the chip browning out during flashing (for example when powered from an FTDI chip's 3.3 V regulator).13

Fix: Use a better cable, take the board out of the breadboard, power it properly, and try a much lower baud rate (--baud 9600) or --trace to see what comes back.

A serial exception error occurred: read failed: [Errno 6] Device not configured

An error raised by pySerial, not by esptool: the port is used by other software, does not exist, the device disconnected, the driver is missing or faulty, or there is no permission to access the port.1

Fix: Close other programs on the port, reconnect the board, install or change the USB-to-serial driver. On Linux, add the user to the dialout or uucp group.

Failed to write to target RAM (result was 0107: Operation timed out)

The serial connection is not stable enough for large transfers such as uploading the flasher stub; some USB-to-serial drivers misbehave here.1

Fix: Increase esptool's timeout and mem_end_rom_timeout in a configuration file, update or change the driver or the adapter, and shorten the path to the board (no USB hubs, a shorter shielded cable).

Boot and reset loops

Lines from the ROM bootloader and early startup.

rst:0x… (…),boot:0x… (DOWNLOAD(USB/UART0))

The second line of the ROM boot log shows the reset reason and the strapping pins as sampled at reset. A DOWNLOAD_BOOT(…) or DOWNLOAD(USB/UART0) mode means the chip is in download mode waiting for esptool, not running the application; SPI_FAST_FLASH_BOOT is the normal boot.4

Fix: Release the Boot button (or whatever pulls the boot pin low) and reset with EN. If download mode was entered by hand over USB-Serial/JTAG, esptool's default reset cannot leave it, because that peripheral only triggers a core reset that does not re-sample the strapping pins: use --after watchdog-reset, press EN or power-cycle.

→ Boot and crash message decoder

Invalid header <value at 0x1000>

The ROM bootloader could not read a valid second-stage bootloader header (at 0x1000 on ESP32, at 0x0 on ESP32-S3). Causes listed by esptool: no bootloader at that offset (wrong offset or erased flash), a bad connection to the flash chip or its power, or flash encryption state not matching the bootloader (plaintext vs ciphertext). On ESP32 also HSPI_FLASH_BOOT selected through GPIO2, or VDDSDIO set to 1.8 V by MTDI/GPIO12 with a 3.3 V flash.4

Fix: Flash the bootloader at the offset for the chip, check the flash wiring and supply, and on ESP32 the levels of GPIO2 and GPIO12 at reset.

→ Boot and crash message decoder

flash read err, 1000

ESP32: the ROM bootloader failed to load the second-stage bootloader from 0x1000 and the chip keeps resetting. The ESP-IDF flash encryption guide shows it for a plaintext bootloader flashed after flash encryption was enabled, and notes that it also appears when the flash is erased or corrupted.5

Fix: Flash a valid bootloader. With flash encryption enabled, partitions marked as encrypted must contain ciphertext.

→ Boot and crash message decoder

Brownout detector was triggered

The supply voltage dropped below the brownout threshold. The detector is enabled by default and resets the chip after printing the message; with a fast drop only part of the message may appear.67

Fix: Fix the power: the esptool guide gives up to 70 mA continuous and 200-300 mA peak at 3.3 V, needs enough capacitance, and warns that the 3.3 V output of FT232R adapters and Arduino boards is not enough. Shorten 3.3 V wires or use a stronger supply. The detector is configured with CONFIG_ESP_BROWNOUT_DET and CONFIG_ESP_BROWNOUT_DET_LVL_SEL.

assert failed: do_core_init startup.c:326 (flash_ret == ESP_OK)

arduino-esp32 guide: an ESP32-S3 board with Quad (QSPI) or Octal (OPI) PSRAM uploaded with the default ESP32-S3 settings keeps rebooting with a log like this one (here with "Octal Flash Mode Enabled").28

Fix: Read the module name and code (for example WROOM-1 N16R8) on the shield and set Tools > PSRAM to QSPI PSRAM or OPI PSRAM as the table in the guide says. WROOM-2 always has OPI.

→ Boot and crash message decoder

Crashes and CPU exceptions

Panic handler output. The reason in parentheses depends on the CPU: Xtensa names (ESP32, ESP32-S2, ESP32-S3) or RISC-V names (ESP32-C and -H series).

Guru Meditation Error: Core 0 panic'ed (LoadProhibited). Exception was unhandled.

Xtensa chips (ESP32, ESP32-S2, ESP32-S3): a read (LoadProhibited) or write (StoreProhibited) at an invalid address. EXCVADDR in the register dump holds the address: zero means a NULL pointer dereference, a small value a struct member accessed through a NULL pointer, anything else outside 0x3fxxxxxx-0x6xxxxxxx an uninitialised or corrupted pointer.69

Fix: Decode the backtrace: the top line after "Backtrace" is where the error happened (IDF Monitor converts the PC values to function, file and line). Then check the pointer used there.

Guru Meditation Error: Core 0 panic'ed (Load access fault). Exception was unhandled.

RISC-V chips (ESP32-C and -H series): the counterpart of LoadProhibited/StoreProhibited, also printed as "Store access fault" for writes and "Instruction access fault" for execution. The address is in MTVAL; the same reading applies: zero is a NULL dereference, near zero a member through a NULL pointer, garbage an uninitialised or corrupted pointer.1011

Fix: Decode the backtrace and check the pointer at the top frame.

Guru Meditation Error: Core 0 panic'ed (IllegalInstruction). Exception was unhandled.

The CPU executed an invalid instruction (on RISC-V chips printed as "Illegal instruction"). Common causes: a FreeRTOS task function returned; the next instruction could not be read from flash because the flash pins were reconfigured or something is wired to them; a C++ non-void function ended without a return value.69

Fix: End tasks with vTaskDelete() instead of returning, keep the SPI flash pins free, and do not silence return-type errors: ESP-IDF builds with -Werror=return-type, and arduino-esp32 3.3.12 adds -Werror=return-type to its C and C++ flags.

Guru Meditation Error: Core 0 panic'ed (InstrFetchProhibited). Exception was unhandled.

The CPU tried to fetch an instruction from an address outside valid instruction RAM or ROM, usually through a function pointer that does not point to code. PC is then zero or garbage (not 0x4xxxxxxx).69

Fix: Check the function pointer or callback that was called at the top frame of the backtrace.

Guru Meditation Error: Core 0 panic'ed (IntegerDivideByZero). Exception was unhandled.

Integer division by zero on an Xtensa chip.69

Fix: Check the divisor before dividing.

Guru Meditation Error: Core 0 panic'ed (LoadStoreAlignment). Exception was unhandled.

A read or write at an address not aligned to the access size: a 32-bit access needs a 4-byte aligned address, a 16-bit one a 2-byte aligned address. RISC-V chips print "Load address misaligned" / "Store address misaligned".69

Fix: Make the address match the access size: 4-byte aligned for 32-bit accesses, 2-byte aligned for 16-bit ones.

Guru Meditation Error: Core 0 panic'ed (LoadStoreError). Exception was unhandled.

An 8- or 16-bit access to memory that only supports 32-bit accesses (for example a char* into IRAM or IROM), or a write to read-only memory (IROM, DROM).69

Fix: Access IRAM/IROM data as 32-bit words, and do not write to constants placed in flash.

Guru Meditation Error: Core 0 panic'ed (Cache error).

Code or data in flash or PSRAM was accessed while the caches were disabled, which ESP-IDF does during spi_flash read/write/erase/mmap. Only interrupt handlers registered with ESP_INTR_FLAG_IRAM keep running then.69

Fix: Interrupt handlers registered with ESP_INTR_FLAG_IRAM must have all their code and data in IRAM/DRAM.

Watchdogs

Task, interrupt and RTC watchdog messages.

E (…) task_wdt: Task watchdog got triggered. The following tasks/users did not reset the watchdog in time:

The Task Watchdog (TWDT) watches the idle task of each CPU, plus any subscribed task. The message means a task ran without yielding for longer than CONFIG_ESP_TASK_WDT_TIMEOUT_S, so the idle task (or a subscribed task) did not reset the watchdog. Erasing large flash areas can trigger it too. The ESP-IDF default is to print a warning and a backtrace and continue; with CONFIG_ESP_TASK_WDT_PANIC the timeout becomes a panic and reset.12

Fix: Let long-running code block or yield so the idle task runs. If a long operation is intended, raise CONFIG_ESP_TASK_WDT_TIMEOUT_S or call esp_task_wdt_init() with a longer timeout.

Guru Meditation Error: Core 0 panic'ed (Interrupt wdt timeout on CPU0).

The Interrupt Watchdog (IWDT) fires when the FreeRTOS tick interrupt on a CPU has not run within CONFIG_ESP_INT_WDT_TIMEOUT_MS: interrupts were disabled, a critical section ran too long, or other ISRs of the same or higher priority blocked it. The panic reason says which CPU.1213

Fix: Keep critical sections and ISRs short, move work from an ISR to a task through a queue, and never block inside an ISR or a critical section. Raising CONFIG_ESP_INT_WDT_TIMEOUT_MS is the last option.

rst:0x10 (RTCWDT_RTC_RST)

Reset by the RTC watchdog, which covers the time from the ROM bootloader to app_main() (CONFIG_BOOTLOADER_WDT_TIME_MS, 9000 ms by default) and guards against lock-ups caused by an unstable power source. The panic handler also arms it with a 10-second timeout, so a panic handler that hangs ends in this reset.6

Fix: Look at the power supply and at what runs before app_main(). If startup legitimately takes longer, CONFIG_BOOTLOADER_WDT_TIME_MS sets the timeout.

→ Boot and crash message decoder

Stack and heap

Stack overflow detectors and heap checks.

Debug exception reason: Stack canary watchpoint triggered (task_name)

Xtensa chips: with CONFIG_FREERTOS_WATCHPOINT_END_OF_STACK, a watchpoint covers the last 32 bytes of the running task's stack and fires when the task writes there. The name in parentheses is the task. Not every overflow is caught.6

Fix: Give the named task a bigger stack. For the Arduino loop() task (loopTask, 8192 by default) arduino-esp32 provides SET_LOOP_TASK_STACK_SIZE().

SET_LOOP_TASK_STACK_SIZE(16 * 1024);  // at file scope in the sketch

Guru Meditation Error: Core 0 panic'ed (Stack protection fault).

RISC-V chips with the hardware stack guard (ESP32-C3 and others): the assist-debug module saw the stack pointer leave the bounds of the task's stack.10

Fix: Give the task a bigger stack (SET_LOOP_TASK_STACK_SIZE() for the Arduino loop() task). The guard is controlled by CONFIG_ESP_SYSTEM_HW_STACK_GUARD.

SET_LOOP_TASK_STACK_SIZE(16 * 1024);  // at file scope in the sketch

***ERROR*** A stack overflow in task loopTask has been detected.

Printed by ESP-IDF's default vApplicationStackOverflowHook() when the FreeRTOS stack check (CONFIG_FREERTOS_CHECK_STACKOVERFLOW, canary bytes by default) finds an overflow at a context switch; then the system aborts. The task name is in the message (loopTask is the Arduino loop()).14

Fix: Give that task a bigger stack (SET_LOOP_TASK_STACK_SIZE() for loopTask).

SET_LOOP_TASK_STACK_SIZE(16 * 1024);  // at file scope in the sketch

Stack smashing protect failure!

GCC stack protection (CONFIG_COMPILER_STACK_CHECK_MODE) found a damaged guard in a function's stack frame. The backtrace points to that function.6

Fix: Look for unbounded writes to local arrays in that function.

CORRUPT HEAP: Bad tail at 0x3ffe270a. Expected 0xbaad5678 got 0xbaac5678

A heap integrity check failed: heap structures or the canary bytes around a block were overwritten, usually by a buffer overrun or out-of-bounds write. The crash only shows when the damage is noticed; the corruption itself happened elsewhere and earlier, so the stack trace is rarely useful.615

Fix: Raise CONFIG_HEAP_CORRUPTION_DETECTION to Light impact or Comprehensive, call heap_caps_check_integrity_all() at points in the code to narrow down when it happens, and use heap tracing (HEAP_TRACE_ALL) to find who allocated the block next to the corrupted address.

assert failed: heap_caps_free heap_caps_base.c:… (heap != NULL && "free() target pointer is outside heap areas")

free() got a pointer that is in no heap region. A failed assert prints "assert failed: <function> <file>:<line> (<expression>)" and aborts. With assertions enabled, freeing the same block twice also ends in an assertion.16

Fix: Free only pointers returned by malloc()/heap_caps_malloc(), and only once.

Flash, PSRAM and file systems

E (…) quad_psram: PSRAM ID read error: 0x…, PSRAM chip not found or not supported

ESP32: PSRAM support is enabled in the build, but the PSRAM driver did not read a valid chip ID. In ESP-IDF, by default a failure to initialise external RAM aborts startup. In arduino-esp32 the Tools > PSRAM menu does not switch the PSRAM code off: Disabled only leaves out -DBOARD_HAS_PSRAM (and the ESP32 cache workaround flags), while the core's psramInit() is compiled under CONFIG_SPIRAM of the precompiled ESP-IDF libraries.17

Fix: In ESP-IDF, CONFIG_SPIRAM_IGNORE_NOTFOUND lets startup continue without PSRAM.

E (588) SPIFFS: mount failed, -10025

SPIFFS could not mount the partition. arduino-esp32 then also logs "Mounting SPIFFS failed! Error: -1".2

Fix: Let begin() format the partition when mounting fails.

SPIFFS.begin(true);  // formatOnFail

Build and size

Sketch too big; see https://support.arduino.cc/hc/en-us/articles/360013825179 for tips on reducing it.

The program (text) size is larger than upload.maximum_size of the selected board and partition scheme. For ESP32S3 Dev Module the default is 1310720 bytes (the 1.2 MB app partition of "Default 4MB with spiffs").18

Fix: Pick a partition scheme with a larger app partition in Tools > Partition Scheme, for example "Huge APP (3MB No OTA/1MB SPIFFS)" (3145728 bytes, no OTA), or make the program smaller.

E (…) esp_image: Image length … doesn't fit in partition length …

esp_image, which loads and verifies app images, found an image (plus its secure boot signature block, if any) longer than the partition it is in. The ESP-IDF build normally refuses an app that fits no app partition, but the binaries are still generated and can be flashed.19

Fix: Make the app partition larger in the partition table (Arduino: Tools > Partition Scheme) or the app smaller, and flash the image into a partition it fits.

exec: "python": executable file not found in $PATH

The arduino-esp32 troubleshooting guide shows this message for a build on Ubuntu where the build calls "python" and no such command is on the PATH. The 3.3.12 platform.txt calls python3 instead (gen_esp32part.py, which turns partitions.csv into the partition table binary, on every host except Windows, where an .exe is used), so with 3.3.12 the command that must be on the PATH is python3.2

Fix: With 3.3.12, check that Python 3 is installed and python3 is on the PATH. For a core that calls python, the guide's fix on Ubuntu is the python-is-python3 package.

sudo apt install python-is-python3

Where the sources disagree

Sources

Each number links here; open “What it confirms” for the exact quotes. Checked 2026-11-28.

  1. esptool docs (latest, ESP32): Troubleshooting primary
    What it confirms (6)
    • ESP32 error messages: A fatal error occurred: Failed to connect to ESP32: No serial data received. “Esptool didn’t receive any byte of data or a successful slip packet. This error usually implies some kind of a hardware issue. … the RX/TX serial lines are not connected, or because there is some problem with resetting into the download mode … Failed to connect to {self.CHIP_NAME}: {last_error} … else "No serial data received." … A fatal error occurred: {e} … Check you are passing the correct serial port on the command line. … A common pitfall is leaving a serial terminal accessing this port open in another window and forgetting about it. … Try using a slower baud rate (-b 9600 is a very slow value … hold down the Boot button (GPIO0) and press the EN button (EN (CHIP_PU))”
    • ESP32 error messages: Wrong boot mode detected (0xXX)! The chip needs to be in download mode. “Communication with the chip works (the ROM boot log is detected), but it is not being reset into the download mode automatically. … check the autoreset circuitry (if your board has it), or try resetting into the download mode manually … The DTR and RTS control lines are in turn connected to GPIO0 and EN (CHIP_PU) pins of ESP32 … Adding a 1uF (or higher) value capacitor between EN pin and GND may make automatic reset more reliable.”
    • ESP32 error messages: Download mode successfully detected, but getting no sync reply: The serial TX path seems to be down. “The chip successfully resets into the download mode and sends data to the host computer, but doesn’t receive any response sent by esptool. … This implies a problem with the TX line running from the host to the ESP device.”
    • ESP32 error messages: Invalid head of packet (0xXX): Possible serial noise or corruption. “Using bad quality USB cable. … Sometimes breadboards can short the SPI flash pins on the board and cause this kind of problem. … The chip might be browning out during flashing. FTDI chips’ internal 3.3V regulator is not enough to power an ESP … Try to sync and communicate at a much lower baud rate, e.g. esptool --baud 9600 .... … Try tracing the interactions running esptool --trace”
    • ESP32 error messages: A serial exception error occurred: read failed: [Errno 6] Device not configured “A serial exception error occurred: read failed: [Errno 6] Device not configured … Errors originating from pySerial are, therefore, not a problem with esptool, but are usually caused by a problem with hardware or drivers. … The port is being already used by other software. … The necessary serial port drivers are not installed or are faulty. … You can add your user to the dialout or uucp group to grant access to the serial port.”
    • ESP32 error messages: Failed to write to target RAM (result was 0107: Operation timed out) “Some USB-to-Serial drivers exhibit unstable behavior in certain situations. This becomes especially apparent when transferring larger data packets (e.g., uploading the flasher stub or writing to flash). … Using a configuration file to increase esptool internal timeout values (mainly timeout and mem_end_rom_timeout). … Updating or changing the USB-to-Serial drivers. … getting rid of USB hubs, using a shorter properly shielded cable”
  2. arduino-esp32 3.3.12: docs/en/troubleshooting.rst primary
    What it confirms (5)
    • ESP32 error messages: A fatal error occurred: Failed to connect to ESP32: Timed out waiting for packet header “A fatal error occurred: Failed to connect to ESP32: Timed out waiting for packet header … Check your USB cable and try a new one (some cables are only for charging and there is no data connection). … prefer direct connection to the computer and avoid USB hubs … Make sure that nothing is connected to pins labeled **TX** and **RX**. … Hold down the **“BOOT”** button on your ESP32 board while uploading/flashing. … Solder a **10 uF** capacitor in parallel with **RST** and **GND**.”
    • ESP32 error messages: assert failed: do_core_init startup.c:326 (flash_ret == ESP_OK) “Some ESP32-S3 boards are equipped with Quad SPI (QSPI) or Octal SPI (OPI) PSRAM. If you upload such a board with default settings for ESP32-S3, it will result in rebooting with a message similar to this: … Octal Flash Mode Enabled … assert failed: do_core_init startup.c:326 (flash_ret == ESP_OK) … To fix the issue, you will need to find out the precise module you are using and set **PSRAM** in the Arduino IDE Tools according to the following table. … For QSPI go to Tools > PSRAM > QSPI PSRAM … For OPI go to Tools > PSRAM > OPI PSRAM … Note that WROOM-2 has always OPI.”
    • ESP32 error messages: E (588) SPIFFS: mount failed, -10025 “E (588) SPIFFS: mount failed, -10025 … [E][SPIFFS.cpp:47] begin(): Mounting SPIFFS failed! Error: -1 … Try enforcing format on fail in your code by adding ``true`` in the ``begin`` method such as this: … bool begin(bool formatOnFail=false”
    • ESP32 error messages: exec: "python": executable file not found in $PATH “You are trying to build your sketch using Ubuntu and this message appears: … "exec: "python": executable file not found in $PATH … To avoid this error, you can install the ``python-is-python3`` package to create the symbolic links. … sudo apt install python-is-python3 … If you are not using Ubuntu, you can check if you have the Python correctly installed or the presence of the symbolic links/environment variables. … tools.gen_esp32part.cmd=python3 "{runtime.platform.path}/tools/gen_esp32part.py" … tools.gen_esp32part.cmd.windows="{runtime.platform.path}\tools\gen_esp32part.exe" … recipe.objcopy.partitions.bin.pattern={tools.gen_esp32part.cmd} -q "{build.path}/partitions.csv" "{build.path}/{build.project_name}.partitions.bin"”
    • ESP32 error messages: discrepancy “Timed out waiting for packet header … else "No serial data received."”
  3. esptool v5.3.1: esptool/loader.py primary
    What it confirms (4)
    • ESP32 error messages: A fatal error occurred: Failed to connect to ESP32: Timed out waiting for packet header “else "No serial data received." … "name": "esptool_py", … "version": "5.3.1"”
    • ESP32 error messages: Wrong boot mode detected (0xXX)! The chip needs to be in download mode. “"Wrong boot mode detected ({})! " … "The chip needs to be in download mode."”
    • ESP32 error messages: Download mode successfully detected, but getting no sync reply: The serial TX path seems to be down. “The serial TX path seems to be down.”
    • ESP32 error messages: Invalid head of packet (0xXX): Possible serial noise or corruption. “Invalid head of packet (0x{hexify(b)}): ”
  4. esptool docs (latest, ESP32): Boot Mode Selection primary
    What it confirms (2)
    • ESP32 error messages: rst:0x… (…),boot:0x… (DOWNLOAD(USB/UART0)) “boot:0xNN (DESCRIPTION) is the hex value of the strapping pins, as represented in the GPIO_STRAP register. … DOWNLOAD_BOOT(UART0/UART1/SDIO_REI_REO_V2) or DOWNLOAD(USB/UART0) or similar - ESP32 is in download flashing mode (suitable for esptool) … SPI_FAST_FLASH_BOOT - This is the normal SPI flash boot mode. … the USB-Serial/JTAG peripheral can only trigger a core reset, which does not re-sample the state of the boot strapping pin … To automatically leave the download mode, the --after watchdog-reset option must be used. … Triggering a system reset manually is as easy as pressing the EN button on the DevKit or power-cycling it.”
    • ESP32 error messages: Invalid header <value at 0x1000> “This fatal error indicates that the bootloader tried to read the software bootloader header at address 0x1000 but failed to read valid data. … Invalid header <value at 0x0> … There isn’t actually a bootloader at offset 0x1000 (maybe the bootloader was flashed to the wrong offset by mistake, or the flash has been erased and no bootloader has been flashed yet.) … Physical problem with the connection to the flash chip, or flash chip power. … Flash encryption is enabled but the bootloader is plaintext. Alternatively, flash encryption is disabled but the bootloader is encrypted ciphertext. … Boot mode accidentally set to HSPI_FLASH_BOOT, which uses different SPI flash pins. Check GPIO2 (see above). … VDDSDIO has been enabled at 1.8V (due to MTDI/GPIO12, see above), but this flash chip requires 3.3V so it’s browning out.”
  5. ESP-IDF v5.5.5 (ESP32): Flash Encryption primary
    What it confirms (1)
    • ESP32 error messages: flash read err, 1000 “If the bootloader partition is re-flashed with a plaintext second stage bootloader image, the first stage (ROM) bootloader will fail to load the second stage bootloader resulting in the following failure: … flash read err, 1000 … This error also appears if the flash contents are erased or corrupted. … all the partitions marked with the encryption flag are expected to contain encrypted ciphertext”
  6. ESP-IDF v5.5.5 (ESP32-S3): Fatal Errors primary
    What it confirms (13)
    • ESP32 error messages: Brownout detector was triggered “has a built-in brownout detector, which is enabled by default. The brownout detector can trigger a system reset if the supply voltage goes below a safe level. … The brownout detector can be configured using CONFIG_ESP_BROWNOUT_DET and CONFIG_ESP_BROWNOUT_DET_LVL_SEL options. … The chip is reset after the message is printed. … Note that if the supply voltage is dropping at a fast rate, only part of the message may be seen on the console. … (up to 70mA continuous, 200-300mA peak, might be slightly higher) … The 3.3V output from FTDI FT232R chips/adapters or Arduino boards do not supply sufficient current to power an ESP chip … Try swapping in a 3.3V supply with a higher current rating, add capacitors to the power line, and/or shorten any 3.3V power wires.”
    • ESP32 error messages: Guru Meditation Error: Core 0 panic'ed (LoadProhibited). Exception was unhandled. “These CPU exceptions happen when an application attempts to read from or write to an invalid memory location. The address which has been written/read is found in the EXCVADDR register in the register dump. … If this address is zero, it usually means that the application has attempted to dereference a NULL pointer. … If this address is close to zero, it usually means that the application has attempted to access a member of a structure, but the pointer to the structure is NULL. … garbage value, not in 0x3fxxxxxx - 0x6xxxxxxx range), it likely means that the pointer used to access the data is either not initialized or has been corrupted. … Guru Meditation Error: Core 0 panic'ed (IllegalInstruction). Exception was unhandled. … If IDF Monitor is used, Program Counter values will be converted to code locations (function name, file name, and line number) … Fatal error location is the top line, and subsequent lines show the call stack.”
    • ESP32 error messages: Guru Meditation Error: Core 0 panic'ed (IllegalInstruction). Exception was unhandled. “This CPU exception indicates that the instruction which was executed was not a valid instruction. … FreeRTOS task function has returned. In FreeRTOS, if a task function needs to terminate, it should call vTaskDelete() and delete itself, instead of returning. … Application has reconfigured the SPI flash pins as some other function (GPIO, UART, etc.). … In C++ code, exiting from a non-void function without returning a value is considered to be an undefined behavior. … By default, ESP-IDF build system enables -Werror=return-type which means that missing return statements are treated as compile time errors. … Guru Meditation Error: Core 0 panic'ed (Illegal instruction). Exception was unhandled. … compiler.common_werror_flags=-Werror=return-type … compiler.cpp.flags=-MMD -c "@{compiler.sdk.path}/flags/cpp_flags" {compiler.warning_flags} {compiler.optimization_flags} {compiler.common_werror_flags}”
    • ESP32 error messages: Guru Meditation Error: Core 0 panic'ed (InstrFetchProhibited). Exception was unhandled. “This CPU exception indicates that the CPU could not read an instruction because the address of the instruction does not belong to a valid region in instruction RAM or ROM. … Usually, this means an attempt to call a function pointer, which does not point to valid code. … it will be zero or will contain a garbage value (not 0x4xxxxxxx)”
    • ESP32 error messages: Guru Meditation Error: Core 0 panic'ed (IntegerDivideByZero). Exception was unhandled. “Application has attempted to do an integer division by zero.”
    • ESP32 error messages: Guru Meditation Error: Core 0 panic'ed (LoadStoreAlignment). Exception was unhandled. “Application has attempted to read or write a memory location, and the address alignment does not match the load/store size. … a 32-bit read can only be done from a 4-byte aligned address, and a 16-bit write can only be done to a 2-byte aligned address … Load Address Misaligned, Store Address Misaligned”
    • ESP32 error messages: Guru Meditation Error: Core 0 panic'ed (LoadStoreError). Exception was unhandled. “If the application has attempted to do an 8- or 16- bit read to, or write from, a memory region which only supports 32-bit reads/writes. For example, dereferencing a char* pointer to instruction memory (IRAM, IROM) will result in such an error. … If the application has attempted to write to a read-only memory region, such as IROM or DROM.”
    • ESP32 error messages: Guru Meditation Error: Core 0 panic'ed (Cache error). “Guru Meditation Error: Core 0 panic'ed (Cache error). Exception was unhandled. … In some situations, ESP-IDF will temporarily disable access to external SPI flash and SPI RAM via caches. For example, this happens when spi_flash APIs are used to read/write/erase/mmap regions of SPI flash. … interrupt handlers not registered with ESP_INTR_FLAG_IRAM are disabled … Make sure that any interrupt handlers registered with this flag have all the code and data in IRAM/DRAM.”
    • ESP32 error messages: rst:0x10 (RTCWDT_RTC_RST) “rst:0x10 (RTCWDT_RTC_RST) … it also helps to prevent a lock-up caused by an unstable power source … configured in the bootloader with the CONFIG_BOOTLOADER_WDT_TIME_MS option (9000 ms by default) … finally disabled right before the app_main() call … The RTC watchdog is reconfigured in the panic handler to have a timeout of 10 seconds. If the panic handler takes longer than 10 seconds to execute, the system will be reset by the RTC watchdog.”
    • ESP32 error messages: Debug exception reason: Stack canary watchpoint triggered (task_name) “Every time FreeRTOS switches task context, one of the watchpoints is set to watch the last 32 bytes of stack. … Debug exception reason: Stack canary watchpoint triggered (task_name) … This feature can be enabled by using the CONFIG_FREERTOS_WATCHPOINT_END_OF_STACK option. … Not every stack overflow is guaranteed to trigger the watchpoint. … #define ARDUINO_LOOP_STACK_SIZE 8192 … xTaskCreateUniversal(loopTask, "loopTask", getArduinoLoopTaskStackSize(), NULL, 1, &loopTaskHandle, ARDUINO_RUNNING_CORE); … #define SET_LOOP_TASK_STACK_SIZE(sz)”
    • ESP32 error messages: Stack smashing protect failure! “can be enabled in ESP-IDF using CONFIG_COMPILER_STACK_CHECK_MODE option … Stack smashing protect failure! … The backtrace should point to the function where stack smashing has occurred. Check the function code for unbounded access to local arrays.”
    • ESP32 error messages: CORRUPT HEAP: Bad tail at 0x3ffe270a. Expected 0xbaad5678 got 0xbaac5678 “CORRUPT HEAP: Bad tail at 0x3ffe270a. Expected 0xbaad5678 got 0xbaac5678 … This usually indicates a buffer overrun or out-of-bounds write. … But usually, the corruption happens elsewhere and earlier in time. … A crash with a CORRUPT HEAP: message usually includes a stack trace, but this stack trace is rarely useful. … Increasing the heap memory debugging Configuration level to "Light impact" or "Comprehensive" gives you a more accurate message with the first corrupt memory address. … Adding regular calls to heap_caps_check_integrity_all() or heap_caps_check_integrity_addr() in your code helps you pin down the exact time that the corruption happened. … For buffer overflows, heap tracing in HEAP_TRACE_ALL mode tells which callers are allocating which addresses from the heap.”
    • ESP32 error messages: discrepancy “Guru Meditation Error: Core 0 panic'ed (Cache error). Exception was unhandled. … info->description = NULL; … if (info->description) {”
  7. ESP-IDF v5.5.5: components/esp_hw_support/power_supply/brownout.c primary
    What it confirms (1)
    • ESP32 error messages: Brownout detector was triggered “ESP_DRAM_LOGE(TAG, "Brownout detector was triggered\r\n\r\n");”
  8. arduino-esp32 3.3.12: boards.txt primary
    What it confirms (1)
    • ESP32 error messages: assert failed: do_core_init startup.c:326 (flash_ret == ESP_OK) “esp32s3.menu.PSRAM.enabled=QSPI PSRAM … esp32s3.menu.PSRAM.opi=OPI PSRAM”
  9. ESP-IDF v5.5.5: components/esp_system/port/arch/xtensa/panic_arch.c primary
    What it confirms (7)
    • ESP32 error messages: Guru Meditation Error: Core 0 panic'ed (LoadProhibited). Exception was unhandled. “"LoadProhibited", "StoreProhibited"”
    • ESP32 error messages: Guru Meditation Error: Core 0 panic'ed (IllegalInstruction). Exception was unhandled. “"IllegalInstruction"”
    • ESP32 error messages: Guru Meditation Error: Core 0 panic'ed (InstrFetchProhibited). Exception was unhandled. “"InstrFetchProhibited"”
    • ESP32 error messages: Guru Meditation Error: Core 0 panic'ed (IntegerDivideByZero). Exception was unhandled. “"IntegerDivideByZero"”
    • ESP32 error messages: Guru Meditation Error: Core 0 panic'ed (LoadStoreAlignment). Exception was unhandled. “"LoadStoreAlignment"”
    • ESP32 error messages: Guru Meditation Error: Core 0 panic'ed (LoadStoreError). Exception was unhandled. “"LoadStoreError"”
    • ESP32 error messages: Guru Meditation Error: Core 0 panic'ed (Cache error). “"Cache error", … info->description = NULL; … info->reason = "Cache error";”
  10. ESP-IDF v5.5.5 (ESP32-C3): Fatal Errors primary
    What it confirms (2)
    • ESP32 error messages: Guru Meditation Error: Core 0 panic'ed (Load access fault). Exception was unhandled. “Instruction Access Fault, Load Access Fault, Store Access Fault … This CPU exception happens when application attempts to execute, read from or write to an invalid memory location. The address which was written/read is found in MTVAL register in the register dump. … If this address is zero, it usually means that application attempted to dereference a NULL pointer. … it likely means that the pointer used to access the data was either not initialized or was corrupted.”
    • ESP32 error messages: Guru Meditation Error: Core 0 panic'ed (Stack protection fault). “can watch the SP register to ensure that it is within the bounds of allocated stack memory … Guru Meditation Error: Core 0 panic'ed (Stack protection fault). … Hardware stack guard can be disabled using CONFIG_ESP_SYSTEM_HW_STACK_GUARD options. … info->reason = "Stack protection fault"; … #define SET_LOOP_TASK_STACK_SIZE(sz)”
  11. ESP-IDF v5.5.5: components/esp_system/port/arch/riscv/panic_arch.c primary
    What it confirms (1)
    • ESP32 error messages: Guru Meditation Error: Core 0 panic'ed (Load access fault). Exception was unhandled. “"Instruction access fault", … "Load access fault", … "Store access fault",”
  12. ESP-IDF v5.5.5 (ESP32-S3): Watchdogs primary
    What it confirms (2)
    • ESP32 error messages: E (…) task_wdt: Task watchdog got triggered. The following tasks/users did not reset the watchdog in time: “The TWDT primarily watches the Idle Tasks of each CPU, however any task can subscribe to be watched by the TWDT. … the TWDT can detect instances of tasks running for a prolonged period of time without yielding … The default timeout period for the TWDT is set using config item CONFIG_ESP_TASK_WDT_TIMEOUT_S. … It is also possible to change this timeout at runtime by calling esp_task_wdt_init(). … Erasing large flash areas can be time consuming and can cause a task to run continuously, thus triggering a TWDT timeout. … On a TWDT timeout the default behaviour is to simply print a warning and a backtrace before continuing running the app. If you want a timeout to cause a panic and a system reset then this can be configured through CONFIG_ESP_TASK_WDT_PANIC. … static const char *TAG = "task_wdt"; … const char *caption = "Task watchdog got triggered. " … "The following tasks/users did not reset the watchdog in time:";”
    • ESP32 error messages: Guru Meditation Error: Core 0 panic'ed (Interrupt wdt timeout on CPU0). “Disabling interrupts … Critical Sections (also disables interrupts) … Other same/higher priority ISRs which block same/lower priority ISRs from running … If the tick interrupt on a particular CPU is not run at within the IWDT timeout period, it is indicative that something is blocking ISRs from being run on that CPU … display the panic reason as Interrupt wdt timeout on CPU0 or Interrupt wdt timeout on CPU1 … Critical sections should be made as short as possible. … Users can consider deferring any computation to a task by having the ISR push data to a task using queues. … Neither critical sections or interrupt handlers should ever block waiting for another event to occur. … it is possible to increase the CONFIG_ESP_INT_WDT_TIMEOUT_MS setting instead … "Interrupt wdt timeout on CPU0",”
  13. ESP-IDF v5.5.5: components/esp_system/panic.c primary
    What it confirms (1)
    • ESP32 error messages: Guru Meditation Error: Core 0 panic'ed (Interrupt wdt timeout on CPU0). “panic_print_str(" panic'ed ("); … panic_print_str("). "); … if (info->description) {”
  14. ESP-IDF v5.5.5: components/freertos/FreeRTOS-Kernel/portable/xtensa/port.c primary
    What it confirms (1)
    • ESP32 error messages: ***ERROR*** A stack overflow in task loopTask has been detected. “void __attribute__((weak)) vApplicationStackOverflowHook( TaskHandle_t xTask, char *pcTaskName ) … #define ERR_STR1 "***ERROR*** A stack overflow in task " … #define ERR_STR2 " has been detected." … esp_system_abort(buf); … default FREERTOS_CHECK_STACKOVERFLOW_CANARY … Places some magic bytes at the end of the stack area and on each context switch, check if these … xTaskCreateUniversal(loopTask, "loopTask", getArduinoLoopTaskStackSize(), NULL, 1, &loopTaskHandle, ARDUINO_RUNNING_CORE); … #define SET_LOOP_TASK_STACK_SIZE(sz)”
  15. ESP-IDF v5.5.5: components/heap/multi_heap_poisoning.c primary
    What it confirms (1)
    • ESP32 error messages: CORRUPT HEAP: Bad tail at 0x3ffe270a. Expected 0xbaad5678 got 0xbaac5678 “CORRUPT HEAP: Bad tail at %p. Expected 0x%08x got 0x%08x”
  16. ESP-IDF v5.5.5: components/heap/heap_caps_base.c primary
    What it confirms (1)
    • ESP32 error messages: assert failed: heap_caps_free heap_caps_base.c:… (heap != NULL && "free() target pointer is outside heap areas") “HEAP_IRAM_ATTR void heap_caps_free( void *ptr) … assert(heap != NULL && "free() target pointer is outside heap areas"); … #define ASSERT_STR "assert failed: " … const char *str[] = {ASSERT_STR, func ? func : "\b", " ", file, ":", lbuf, " (", expr, ")"}; … esp_system_abort(buff); … If assertions are enabled, an assertion will also trigger if a double-free occurs (the same memory is freed twice).”
  17. ESP-IDF v5.5.5: components/esp_psram/esp32/esp_psram_impl_quad.c primary
    What it confirms (1)
    • ESP32 error messages: E (…) quad_psram: PSRAM ID read error: 0x…, PSRAM chip not found or not supported “ESP_EARLY_LOGE(TAG, "PSRAM ID read error: 0x%08" PRIx32 ", PSRAM chip not found or not supported", (uint32_t)s_psram_id); … By default, failure to initialize external RAM will cause the ESP-IDF startup to abort. This can be disabled by enabling the config item CONFIG_SPIRAM_IGNORE_NOTFOUND. … esp32.menu.PSRAM.disabled=Disabled … esp32.menu.PSRAM.disabled.build.defines= … esp32.menu.PSRAM.enabled.build.defines=-DBOARD_HAS_PSRAM -mfix-esp32-psram-cache-issue -mfix-esp32-psram-cache-strategy=memw … #if CONFIG_SPIRAM_SUPPORT || CONFIG_SPIRAM … ESP_SYSTEM_INIT_FN(init_psram_new, CORE, BIT(0), 99) { … psramInit();”
  18. arduino-cli v1.6.0: internal/arduino/builder/sizer.go primary
    What it confirms (1)
    • ESP32 error messages: Sketch too big; see https://support.arduino.cc/hc/en-us/articles/360013825179 for tips on reducing it. “Sketch too big; see %[1]s for tips on reducing it. … "https://support.arduino.cc/hc/en-us/articles/360013825179" … maxTextSizeString := properties.Get("upload.maximum_size") … if maxTextSize > 0 && textSize > maxTextSize { … esp32s3.upload.maximum_size=1310720 … esp32s3.menu.PartitionScheme.default=Default 4MB with spiffs (1.2MB APP/1.5MB SPIFFS) … esp32s3.menu.PartitionScheme.huge_app=Huge APP (3MB No OTA/1MB SPIFFS) … esp32s3.menu.PartitionScheme.huge_app.upload.maximum_size=3145728”
  19. ESP-IDF v5.5.5: components/bootloader_support/src/esp_image_format.c primary
    What it confirms (1)
    • ESP32 error messages: E (…) esp_image: Image length … doesn't fit in partition length … “static const char *TAG = "esp_image"; … FAIL_LOAD("Image length %"PRIu32" doesn't fit in partition length %"PRIu32, full_image_len, part_len); … const uint32_t full_image_len = end + sig_block_len; … If the app binary does not fit in any app partition, the build will fail. … the binary files are still generated and can be flashed (although they may not work if they are too large for the available space.)”