Page 1 of 1

How to store string in flash using SPI_FLASH_WRITE .

Posted: Fri Aug 03, 2018 4:50 am
by hemant.chaudhari
Hello,

Actually I am trying to store an signature string to identify if this is a first boot or not
eg
#define signature "THIS IS NOT FIRST BOOT"
How to store string in flash using SPI_FLASH_WRITE ,kindly post an example for better understanding

Thanks

Re: How to store string in flash using SPI_FLASH_WRITE .

Posted: Fri Aug 03, 2018 12:51 pm
by f.h-f.s.
I used the NVS for such tasks https://github.com/espressif/esp-idf/tr ... vs_rw_blob
It does not use spi_flash_write(dest_addr, src, size); directly though, the underlying calls do contain this function call.