esp_vfs_fat.h inclusion

bmartin0
Posts: 33
Joined: Tue Aug 03, 2021 10:38 pm

esp_vfs_fat.h inclusion

Postby bmartin0 » Thu Oct 14, 2021 4:45 pm

Hello,
I am creating a project based off the sdspi example, v4.3. The sdspi example builds and runs fine. When I include esp_vfs_fat.h and sdmmc_cmd.h into a component in my new project, I get a build error stating that neither of these files is found even though they are in the component path.
Any ideas on what the issue may be?
Thanks

ESP_igrr
Posts: 2067
Joined: Tue Dec 01, 2015 8:37 am

Re: esp_vfs_fat.h inclusion

Postby ESP_igrr » Thu Oct 21, 2021 8:07 am

Do you happen to have "REQURIES" or "PRIV_REQUIRES" specified in your component CMakeLists.txt file? You probably need to add 'fatfs' component to the requirements list.

bmartin0
Posts: 33
Joined: Tue Aug 03, 2021 10:38 pm

Re: esp_vfs_fat.h inclusion

Postby bmartin0 » Mon Nov 01, 2021 1:39 pm

Yes, that fixed it. Thanks for your help.

Who is online

Users browsing this forum: No registered users and 57 guests