Page 1 of 1

spi_flash_cache_enabled() - deprecated?

Posted: Thu Jan 11, 2024 7:19 pm
by SparkyNZ
I'm trying to build some third-party code with spi_flash_cache_enabled().

I included esp_spi_flash.h and I see there is the below warrning:

Code: Select all

#warning esp_spi_flash.h is deprecated, please use spi_flash_mmap.h instead
#include "spi_flash_mmap.h"
Does that mean that the spi_flash_cache_enabled() method is deprecated too?

Is there documentation on migrating from esp_spi_flash.h to spi_flash_mmap.h?

Re: spi_flash_cache_enabled() - deprecated?

Posted: Thu Jan 11, 2024 7:22 pm
by SparkyNZ
Maybe this is what I'm looking for:

https://docs.espressif.com/projects/esp ... orage.html

Nope. I can't find any references to spi_flash_cache_enabled() in there.

Re: spi_flash_cache_enabled() - deprecated?

Posted: Thu Jan 11, 2024 9:55 pm
by MicroController
Seems it's not part of the public API (anymore?), but it's still there: https://github.com/espressif/esp-idf/bl ... tils.h#L75

Re: spi_flash_cache_enabled() - deprecated?

Posted: Thu Jan 11, 2024 10:02 pm
by SparkyNZ
MicroController wrote:
Thu Jan 11, 2024 9:55 pm
Seems it's not part of the public API (anymore?), but it's still there: https://github.com/espressif/esp-idf/bl ... tils.h#L75
Yeah I've decided to rollback to IDF 4.3.6 and save myself a lot of pain trying to compile this library. It was supposed to be an easy step to having some fun but it's been anything but :-) I think I got it compiling OK now.

Re: spi_flash_cache_enabled() - deprecated?

Posted: Thu Jan 11, 2024 10:12 pm
by MicroController
Oh. If it's "just for fun" I guess I'm now late for the party in saying "just use another library", i.e. https://lvgl.io/

Re: spi_flash_cache_enabled() - deprecated?

Posted: Thu Jan 11, 2024 10:19 pm
by SparkyNZ
MicroController wrote:
Thu Jan 11, 2024 10:12 pm
Oh. If it's "just for fun" I guess I'm now late for the party in saying "just use another library", i.e. https://lvgl.io/
Well.. What I'd like to do is make use of an ESP32 VGA library in conjunction with Fake6502 so I can get a sort of Commodore PET system working. I'm working on my own homebrew 6502 computer as well but I'd like to have something that I can attach to hardware and run BASIC on to POKE hardware pins etc.

I'll check out the link you provided - it's always good to have other options. I'm trying to make use of the older ESP32 WROOM devices I have.