Before logging an issue, please update to the latest release of Visual Micro from the Downloads Page.

When Logging a Support Issue in the Forum, please ensure you have also:-

  • Enabled vMicro > Compiler > Show Build Properties
  • Re-Compile your program with these settings enabled
 
Save the new Output to a Text File and....
  • Click the Reply button and attach as .txt file OR
  • Click here to Email us with the file attached, and a link to your post
Support requests without the output above may be impossible to answer, so please help us to help you
 
Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic LittleFs File Upload ? (Read 4183 times)
Secundus
Newbies
*
Offline


Posts: 1
Joined: Jun 13th, 2020
LittleFs File Upload ?
Jun 13th, 2020 at 1:15am
Print Post  
For the Arduino ide is a LittleFs upload Plugin (similar to the Publish Server Data Files) available. This is needed to upload the Data folder to the LittleFS spiffs. 

For Visual Micro i have not found a LittleFS upload plugin. The normal spiffs upload does work, but the Files are not visible/accessible. 

Is there any way to get it work?
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: LittleFs File Upload ?
Reply #1 - Jun 27th, 2020 at 7:31pm
Print Post  
We normally support LittleFS. Please follow the guide above and then add the data folder and click the Publish Data Files command.

Post the output so we can see the error.

Thanks
  
Back to top
WWW  
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2145
Joined: Feb 13th, 2019
Re: LittleFs File Upload ?
Reply #2 - Oct 8th, 2020 at 10:10am
Print Post  
The current integration in Visual Micro for LittleFS, expects SPIFFS to have been deprecated and not included in the package before switching to it.

In the current version, if you Right Click the project in Solution Explorer > Add > Local Board.txt, and then add the below entry to it, it will force it to use LittleFS:
Code
Select All
# Force LittleFS Usage for ESP8266
runtime.tools.mkspiffs.path=notTheToolYoureLookingFor 



Let us know if there are any issues with this and we will update if there are any alternative routes or options to access LittleFS in the future.

We have added a documentation page for this process: ESP8266 SPIFFS and LittleFS FileSystems
« Last Edit: Oct 8th, 2020 at 1:10pm by Simon@Visual Micro »  
Back to top
 
IP Logged
 
Lars M.
Newbies
*
Offline


Posts: 2
Joined: Dec 3rd, 2020
Re: LittleFs File Upload ?
Reply #3 - Dec 3rd, 2020 at 10:11pm
Print Post  
It seems that for ESP32 the workaroud with "Local Board.txt" doesn't work.

Now I've copied the "mklittlefs.exe" to the following folder and replaced it with the original "mkspiffs.exe" by renaming it.
 
{Username}\AppData\Local\Arduino15\packages\esp32\tools\mkspiffs\0.2.3

=> Now it seems to work with LittleFS  Smiley

Will there be an official support for littleFS and ESP32 in VisualMicro?
  
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2145
Joined: Feb 13th, 2019
Re: LittleFs File Upload ?
Reply #4 - Dec 4th, 2020 at 11:24am
Print Post  
Thanks for the report.

The current ESP32 Arduino core does not come with the LittleFS tools, which is why we have not supported it so far through the same override.

Did you clone it across from the ESP8266 core? (There are a number of other projects / libraries which also aim to add this functionality)
« Last Edit: Dec 4th, 2020 at 11:43am by Simon@Visual Micro »  
Back to top
 
IP Logged
 
Lars M.
Newbies
*
Offline


Posts: 2
Joined: Dec 3rd, 2020
Re: LittleFs File Upload ?
Reply #5 - Dec 10th, 2020 at 8:41pm
Print Post  
I used the executable from the following project:

https://github.com/earlephilhower/mklittlefs/releases
x86_64-w64-mingw32-mklittlefs-295fe9b.zip
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint