How to store string in flash using SPI_FLASH_WRITE .

hemant.chaudhari
Posts: 16
Joined: Wed Jun 13, 2018 11:48 am

How to store string in flash using SPI_FLASH_WRITE .

Postby hemant.chaudhari » Fri Aug 03, 2018 4:50 am

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

f.h-f.s.
Posts: 214
Joined: Thu Dec 08, 2016 2:53 pm

Re: How to store string in flash using SPI_FLASH_WRITE .

Postby f.h-f.s. » Fri Aug 03, 2018 12:51 pm

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.

Who is online

Users browsing this forum: No registered users and 117 guests