Hello everyone,
I am using the example ext_flash in esp-idf but I Don't know how to do this :
reset my board and read file written before I have reset the board because in my case it reinitialize the flash each time I reset.
I have tryed to separate instructions but Nothing is working for now…
Thank you.
best regards.
Read file from an external flash after a reset
-
campestring
- Posts: 17
- Joined: Mon Dec 21, 2020 10:29 am
Re: Read file from an external flash after a reset
Hi campestring,
Could you try adding the following call at the end of the example?:
esp_vfs_fat_spiflash_unmount(base_path, s_wl_handle);
This should write all the data to flash and unmount the partition.
Could you try adding the following call at the end of the example?:
esp_vfs_fat_spiflash_unmount(base_path, s_wl_handle);
This should write all the data to flash and unmount the partition.
-
campestring
- Posts: 17
- Joined: Mon Dec 21, 2020 10:29 am
Re: Read file from an external flash after a reset
Thank you for your quick answer the problem is I will reset my system at any time… So this function will not Always be called. I would like at a reset to re-establish the communication between esp32 and SPI flash without reseting the storage…
Best regards,
Best regards,
Who is online
Users browsing this forum: Qwantbot, trendictionbot and 7 guests
