Page 1 of 1

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

Posted: Mon Sep 30, 2019 12:13 pm
by ningappa BS
Hi all,

I have a requirement like set/reset the gpio pin based on the condition, which is in timer interrupt of time 10ms and in parallel I'm receiving data from uart interrupt and that data I'm writing it to internal flash using spi_flash_write() API function. when spi_flash_write() function is called, I'm getting an error "Cache disabled but cached memory region accessed". Can anyone help me to solve this problem?.

Any help can be appreciated.

Thanks

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

Posted: Mon Sep 30, 2019 6:39 pm
by rudi ;-)
ningappa BS wrote:
Mon Sep 30, 2019 12:13 pm
Hi all,

I have a requirement like set/reset the gpio pin based on the condition, which is in timer interrupt of time 10ms and in parallel I'm receiving data from uart interrupt and that data I'm writing it to internal flash using spi_flash_write() API function. when spi_flash_write() function is called, I'm getting an error "Cache disabled but cached memory region accessed". Can anyone help me to solve this problem?.

Any help can be appreciated.

Thanks
hi

you use timer and writing data to internal flash ( SPIFFS? )
you use in arduino ? IDF ?

perhabs this helps:

https://esp32.com/viewtopic.php?t=10928#p44759
viewtopic.php?t=7684
https://github.com/espressif/arduino-esp32/issues/1907
https://github.com/espressif/esp-idf/issues/1299
https://github.com/espressif/arduino-esp32/issues/2686

best wishes
rudi ;-)

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

Posted: Tue Oct 01, 2019 5:28 am
by ningappa BS
rudi ;-) wrote:
Mon Sep 30, 2019 6:39 pm
ningappa BS wrote:
Mon Sep 30, 2019 12:13 pm
Hi all,

I have a requirement like set/reset the gpio pin based on the condition, which is in timer interrupt of time 10ms and in parallel I'm receiving data from uart interrupt and that data I'm writing it to internal flash using spi_flash_write() API function. when spi_flash_write() function is called, I'm getting an error "Cache disabled but cached memory region accessed". Can anyone help me to solve this problem?.

Any help can be appreciated.

Thanks
hi

you use timer and writing data to internal flash ( SPIFFS? )
you use in arduino ? IDF ?

perhabs this helps:

https://esp32.com/viewtopic.php?t=10928#p44759
viewtopic.php?t=7684
https://github.com/espressif/arduino-esp32/issues/1907
https://github.com/espressif/esp-idf/issues/1299
https://github.com/espressif/arduino-esp32/issues/2686

best wishes
rudi ;-)

Hi
thanks for the reply.
I'm using internal flash(spi_flash_write/read/erase API's).
I'm using ESP-IDF 5.2 version.