Page 1 of 1

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

Posted: Fri Mar 15, 2019 1:05 pm
by dhananjay.sutariya
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.

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

Posted: Fri Mar 15, 2019 1:14 pm
by WiFive

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

Posted: Mon Mar 18, 2019 7:58 am
by dhananjay.sutariya
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.

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

Posted: Mon Mar 18, 2019 8:30 am
by WiFive
https://docs.espressif.com/projects/esp ... ables.html

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