earlephilhower / arduino-pico-littlefs-plugin

LittleFS Data Uploader for Arduino-Pico
GNU General Public License v2.0
29 stars 4 forks source link

Question regarding littleFS #12

Closed hasenradball closed 3 months ago

hasenradball commented 3 months ago

@earlephilhower when using / needed a filesysten would you usecthe arduino framework for the pi pico or the c sdk of the Pico?

Best regards Frank

earlephilhower commented 3 months ago

Unless something has changed that I'm not aware of, the SDK has no filesystem support. You can definitely roll your own LittleFS implementation, they make it relatively easy to do. You'd be calling the lfs_XXX calls natively, not fopen() or whatever, but there's almost a 1:1 mapping.

This plugin is only useful for the Arduino Core, of course, since it depends on the memory and linker files present on the Pico [edit, this is the 1.0 plugin only for Pico] (and ESP32 and ESP8266). mklittlefs, the app which makes the filesystem bitstream for upload, can be used for roll-your-own LittleFS as long as you set the parameters appropriately and run it manually. Uploading to the Pico after doing so it a problem left for the student. :laughing:

hasenradball commented 2 months ago

Thanks for your answer. I am comming from the Esp family with the arduino core. As I started with the pico, first started with micropython but from the bottom of my heart I like c/ cpp.

But it seems easier to stick on the arduino core than using the c sdk for the pico.