I am running a task with external spiram. my application requires this to be done.
Till now I have had no issue until I observed that NVM functions like nvs_open don't work with external memory.
I see the exception below
[Codebox]assert failed: spi_flash_disable_interrupts_caches_and_other_cpu cache_utils.c:154 (esp_task_stack_is_sane_cache_disabled())[/Codebox]
is there any config to control this or any workaround?
I am not sure if this was identified earlier and addressed.
I appreciate any help, anyone here can provide.
NVM apis cause assert error when the task it is called from is running from external memory
-
- Posts: 1
- Joined: Sun Jun 09, 2024 6:13 pm
-
- Posts: 1701
- Joined: Mon Oct 17, 2022 7:38 pm
- Location: Europe, Germany
Re: NVM apis cause assert error when the task it is called from is running from external memory
Sounds like you put the calling task's stack into PSRAM. PSRAM is inaccessible during flash (NVM) writes, so doing flash writes from a task with its stack in PSRAM won't work.
Re: NVM apis cause assert error when the task it is called from is running from external memory
Seconded. You can put many things in PS-RAM, but a thread's stack is unwise.
Who is online
Users browsing this forum: No registered users and 136 guests