How to know free flash memory in running programme in esp32?

dhananjay.sutariya
Posts: 30
Joined: Thu Feb 28, 2019 12:21 pm

How to know free flash memory in running programme in esp32?

Postby dhananjay.sutariya » Fri Mar 15, 2019 1:05 pm

I'm trying to get the avalaible flash memory after writing into the flash through nvs api's . I'm aware of the spi_flash_get_chip_size api. aslo mmap_get_free_page api but that will not work as far as my understanding goes .Please help.


dhananjay.sutariya
Posts: 30
Joined: Thu Feb 28, 2019 12:21 pm

Re: How to know free flash memory in running programme in esp32?

Postby dhananjay.sutariya » Mon Mar 18, 2019 7:58 am

Hi.. ,
i actually want the number of bytes that are still available to write from the 4MB of flash after my application program has been flashed.

WiFive
Posts: 2294
Joined: Tue Dec 01, 2015 7:35 am

Re: How to know free flash memory in running programme in esp32?

Postby WiFive » Mon Mar 18, 2019 8:30 am

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

It depends, you should create a separate partition to store data.

Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 15 guests