FatFS

pepopi
Posts: 32
Joined: Mon Apr 11, 2022 9:45 am

FatFS

Postby pepopi » Tue Jul 05, 2022 2:00 pm

Hello everyone I'm studying how to use the fat file system for the spi flash memory, but I do not find examples. I know there is the virtual file system but there are not examples either. Could anyone show me an example on how to use fatfs?
Thank you

User avatar
gtjoseph
Posts: 81
Joined: Fri Oct 15, 2021 10:55 pm

Re: FatFS

Postby gtjoseph » Tue Jul 05, 2022 2:25 pm

It depends on what the underlying storage is, the on board spi flash, external flash in spi mode or external flash in sdmmc/sdio mode, but the simplest example for the on-board flash is under wear-levelling...

https://github.com/espressif/esp-idf/tr ... _levelling

Others:
https://github.com/espressif/esp-idf/tr ... lash_fatfs
https://github.com/espressif/esp-idf/tr ... ge/sd_card

pepopi
Posts: 32
Joined: Mon Apr 11, 2022 9:45 am

Re: FatFS

Postby pepopi » Tue Jul 05, 2022 2:59 pm

Thank you for answering so quickly. I would like an example of using fatfs to access the devkit c 4mb.
PD: are there any examples of writing a firmware bin file into the fatfs?

Thank you

User avatar
gtjoseph
Posts: 81
Joined: Fri Oct 15, 2021 10:55 pm

Re: FatFS

Postby gtjoseph » Tue Jul 05, 2022 8:42 pm

Thank you for answering so quickly. I would like an example of using fatfs to access the devkit c 4mb.
That's exactly what the wear_levellling example does.
PD: are there any examples of writing a firmware bin file into the fatfs?
Not that I'm aware of.

Who is online

Users browsing this forum: Corand and 115 guests