spi_flash_cache_enabled() - deprecated?

SparkyNZ
Posts: 48
Joined: Thu Jan 04, 2024 9:01 pm

spi_flash_cache_enabled() - deprecated?

Postby SparkyNZ » Thu Jan 11, 2024 7:19 pm

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?

SparkyNZ
Posts: 48
Joined: Thu Jan 04, 2024 9:01 pm

Re: spi_flash_cache_enabled() - deprecated?

Postby SparkyNZ » Thu Jan 11, 2024 7:22 pm

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.

MicroController
Posts: 1708
Joined: Mon Oct 17, 2022 7:38 pm
Location: Europe, Germany

Re: spi_flash_cache_enabled() - deprecated?

Postby MicroController » 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

SparkyNZ
Posts: 48
Joined: Thu Jan 04, 2024 9:01 pm

Re: spi_flash_cache_enabled() - deprecated?

Postby SparkyNZ » Thu Jan 11, 2024 10:02 pm

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.

MicroController
Posts: 1708
Joined: Mon Oct 17, 2022 7:38 pm
Location: Europe, Germany

Re: spi_flash_cache_enabled() - deprecated?

Postby MicroController » 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/

SparkyNZ
Posts: 48
Joined: Thu Jan 04, 2024 9:01 pm

Re: spi_flash_cache_enabled() - deprecated?

Postby SparkyNZ » Thu Jan 11, 2024 10:19 pm

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.

Who is online

Users browsing this forum: Baidu [Spider] and 91 guests