ESP-WROOM-32 and extending the flash

markwj
Posts: 87
Joined: Tue Mar 08, 2016 5:03 am

Re: ESP-WROOM-32 and extending the flash

Postby markwj » Tue Jul 16, 2019 2:26 pm

ROSE MARIYA wrote:
Tue Jul 16, 2019 1:15 pm
Hi,
I am SPIFFS library to store the data received from bluetooth into flash.At the same time two timer interrupts are working.
But I am facing an issue , both timer interrupts and SPIFFS crash the ESP32 and
shows an error 'Guru Meditation Error: Core 1 panic'ed (Cache disabled but cached memory region accessed)' . If I comment out the
TimerEnable, the code will run.
I need to store my bluetooth data in flash.Because I need to use that data even after a power loss.How can I run SPIFFs and Timer interrupt in the same code.
Thank you all in advance
The usual approach is to put your file system write code in a separate task, and have it receive data / messages using a queue. Then, post the data / messages from the ISR. That also has the benefit that slow file system writes do not slow down the timer handlers.

Who is online

Users browsing this forum: rosenrot and 8 guests