ESP32 Bench
Boards: ESP32, S3, C3
Flash and monitor: Web Serial
← All errors

Cache disabled but cached memory region accessed

CrashesRecognised by the crash translator

What it looks like

Guru Meditation Error: Core  0 panic'ed (Cache disabled but cached memory region accessed).

What it means

An interrupt ran while the flash cache was turned off, which happens while flash is being written (Preferences, LittleFS, SPIFFS, OTA). The handler, or something it called or read, lives in flash, so it could not be fetched.

Likely causes

  • An interrupt handler without IRAM_ATTR.
  • A handler that calls a function without IRAM_ATTR.
  • A handler that reads a const table, which is stored in flash.

How to fix it

  1. Mark the handler and every function it calls IRAM_ATTR.
  2. Move constant data the handler reads into RAM: drop const or copy it to a RAM buffer at start-up.
  3. Do as little as possible in the handler: set a flag and return.

Paste your full log

The lines around the error usually say more. Paste everything from the reset to the backtrace and the crash translator explains each part. It runs in your browser; nothing is sent anywhere.