using the external flash
Posted: Tue Apr 24, 2018 8:25 pm
From my reading, I understand that the ESP32 has 4MB of external flash. This area is mapped to address space 0x3F40_0000:0x3F7F_FFFF.
I assume that this flash is used for storing the OS, my application, and probably some other things. A couple of questions:
1. Is the Spi_flash component the recommended method of accessing this area? I also came across the non-volatile storage (NVS) library, which looks interesting, but probably not what I need.
2. How do I go about determining what part of the flash is available to me? Do I traverse the partition table mentioned in the docs?
My needs are fairly simple. I was thinking of defining a struct containing everything I want to store, then I could just access (read) it using pointers.
I assume that this flash is used for storing the OS, my application, and probably some other things. A couple of questions:
1. Is the Spi_flash component the recommended method of accessing this area? I also came across the non-volatile storage (NVS) library, which looks interesting, but probably not what I need.
2. How do I go about determining what part of the flash is available to me? Do I traverse the partition table mentioned in the docs?
My needs are fairly simple. I was thinking of defining a struct containing everything I want to store, then I could just access (read) it using pointers.