My code is mostly irq driven (LCD, I2S & timer). The code for all these irq handlers is flagged with IRAM_ATTR. The irqs are allocated with the ESP_INTR_FLAG_IRAM flag to ensure they keep running all the time. As most of the code is flagged to be loaded into memory and there are not much data both I and D cache are set to 16KB.
In irregular intervals a task will write some data to the flash memory. Beside this it is mostly just waiting in a vTaskDelay.
This worked fine until today. Now I am getting
"Guru Meditation Error: Core 1 panic'ed (Cache disabled but cached memory region accessed)"
while the flash write is running (on core 0) in the irq handler for the timer. I checked the callstack and all functions are as expected in the iRAM.
The main change was that I needed to allocate some more memory. Based on heap_caps_print_heap_info I am now using this block, too:
heap_init: At 3C000000 len 00004000 (16 KiB): DRAM
In the crash message from the panic handler one of the registers actually contains an address in this area every time.
The memory map says that this address is actually for the flash or the psram. But my understanding is that if only 16KB memory is used the start of this block is mapped to some of the unused cache memory.
I might need to do some more tests but maybe somebody knows this already. Is this a known limitation that memory in this area could not be used while writing to the flash?
ESP32S3 flash write & cache panic handler issue
Jump to
- English Forum
- Explore
- News
- General Discussion
- FAQ
- Documentation
- Documentation
- Sample Code
- Discussion Forum
- Hardware
- ESP-IDF
- ESP-BOX
- ESP-ADF
- ESP-MDF
- ESP-WHO
- ESP-SkaiNet
- ESP32 Arduino
- IDEs for ESP-IDF
- ESP-AT
- ESP IoT Solution
- ESP RainMaker
- Rust
- ESP8266
- Report Bugs
- Showcase
- Chinese Forum 中文社区
- 活动区
- 乐鑫活动专区
- 讨论区
- 全国大学生物联网设计竞赛乐鑫答疑专区
- ESP-IDF 中文讨论版
- 《ESP32-C3 物联网工程开发实战》书籍讨论版
- 中文文档讨论版
- ESP-AT 中文讨论版
- ESP-BOX 中文讨论版
- ESP IoT Solution 中文讨论版
- ESP-ADF 中文讨论版
- ESP Mesh 中文讨论版
- ESP Cloud 中文讨论版
- ESP-WHO 中文讨论版
- ESP-SkaiNet 中文讨论版
- ESP 生产支持讨论版
- 硬件问题讨论
- 项目展示
Who is online
Users browsing this forum: uC_Jon and 72 guests
- All times are UTC
- Top
- Delete cookies
About Us
Espressif Systems is a fabless semiconductor company providing cutting-edge low power WiFi SoCs and wireless solutions for wireless communications and Internet of Things applications. ESP8266EX and ESP32 are some of our products.