LittleFS compile issue

This is the 1st real sketch. I am trying to migrate a "C" project for the Raspberry Pi Pico board.
I need to store data so I am trying follow the example "LittleFS->FSUpload.ino". I can compile this example with no issues.

When I put "#include <LittleFS.h>" in my sketch.ino, I get the following error:
In file included from C:\Users\Dave\Dropbox\My PC (DAVID-SPLITZ)\Desktop\RSI Watcher System\Base Design\R-PI_PollDevice\PollDevice\C_PollDevice.c:1:
C:\Users\Dave\AppData\Local\Arduino15\packages\rp2040\hardware\rp2040\2.6.4\cores\rp2040/FS.h:23:10: fatal error: memory: No such file or directory
23 | #include
| ^~~~~~~~

LittleFS.h includes <FS.h> which includes

#include <LittleFS.h> is the 1st statement in my sketch.

Why can I compile FSUpload.ino but my schetch fails?

Help us help you.

I'll try and do better next time I post.

The good news is I found my issue. One of the "C" files in the sketch folder had the line'

#include "FS.h"

This is not not needed and when removed it now compiles. What is a little odd is I had not yet added in the nessisary code to use any of the functions in that file.

Thanks for the quick responce.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.