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
Hot Topic (More than 8 Replies) Can't find mklittlefs.exe (Read 3672 times)
Acuario
Full Member
***
Offline


Posts: 233
Location: Spain
Joined: Aug 28th, 2015
Can't find mklittlefs.exe
Jan 19th, 2021 at 6:30pm
Print Post  
Suddenly (I'm not sure if it is related to the latest VM I'm using 2021.106.0) I'm getting an error when trying to publish:

SPIFFS Error*: mkspiffs.exe or mklittlefs.exe not found!

In my board.txt I have:
# Force LittleFS Usage for ESP8266
runtime.tools.mkspiffs.path=notTheToolYoureLookingFor 

It has all worked previously. I have mklittlefs in the folder:
-fe5bb56

I haven't updated my ESP8266 build.

Any ideas?
« Last Edit: Jan 19th, 2021 at 6:30pm by Acuario »  
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Online


Posts: 2145
Joined: Feb 13th, 2019
Re: Can't find mklittlefs.exe
Reply #1 - Jan 19th, 2021 at 9:13pm
Print Post  
Could you attach the build output with the Verbose and Show Build Properties set (instructions at top of page in yellow box)?

If you add the below to the board.txt does it work?
Code
Select All
p8266\tools\mklittlefs\2.5.0-4
-fe5bb56 



  
Back to top
 
IP Logged
 
Acuario
Full Member
***
Offline


Posts: 233
Location: Spain
Joined: Aug 28th, 2015
Re: Can't find mklittlefs.exe
Reply #2 - Jan 20th, 2021 at 4:39am
Print Post  
Email sent.
Very strange..
I tried the above and it 'worked' but still no data on the esp.
After various tests (getting desperate!) I swapped to another project and that worked correctly.

Swapping back to my original project. commenting out the complete path lines and everything started working again..

As I say, very strange.
  
Back to top
 
IP Logged
 
Acuario
Full Member
***
Offline


Posts: 233
Location: Spain
Joined: Aug 28th, 2015
Re: Can't find mklittlefs.exe
Reply #3 - Jun 27th, 2021 at 7:06am
Print Post  
This has come back to haunt me again..
The 'SPIFFS Error*: mkspiffs.exe or mklittlefs.exe not found!' message started to appear so I added the lines:
Code
Select All
# Force LittleFS Usage for ESP8266
runtime.tools.mkspiffs.path=notTheToolYoureLookingFor

p8266\tools\mklittlefs\2.5.0-4-b40a506 



In one project this works ok and the upload works.
In another project, with exactly the same lines in the board.txt file it doesn't work.
Verbose output shows nothing of relevance:

Code
Select All
ESP8266FSUpload.exe
## recipe.wwwfiles.upload.pattern
"c:\program files (x86)\microsoft visual " -serial.port=192.168.0.184 eric\Debug" -target_platform="esp8266" -runtime.tools.mkspiffs.path="notTheToolYoureLookingFor" -board.name="Generic ESP8266 Module" -upload.verbose=True -upload.resetmethod=--before default_reset --after hard_reset -upload.speed=256000 \esp8266\2.7.4" -project.name="HPController.ino" -project.path="C:\Users\nigel\Documents\Arduino\HPController" s\python3\3.7.2-post1/python3" 8266\tools\esptool\0.4.12" ensa-lx106-elf-gcc\2.5.0-4-b40a506/bin/" -build.spiffs_start="0x300000" -build.spiffs_end="0x3FA000" -build.spiffs_pagesize="256" -build.spiffs_blocksize="8192" -network.password=j3ss1cam -network.auth_upload=yes -network.port=8266

SPIFFS Error*: mkspiffs.exe or mklittlefs.exe not found!
 



If I comment out the 'runtime.tools.mkspiffs.path=notTheToolYoureLookingFor' line then a spiffs file is correctly created and uploaded. Uncomment to force LittleFS and I get the error.

I don't understand why, with essentially identical board.txt files and entries it is working perfectly on one project but fails on another.

What to try next?
  
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Online


Posts: 2145
Joined: Feb 13th, 2019
Re: Can't find mklittlefs.exe
Reply #4 - Jun 28th, 2021 at 5:00am
Print Post  
Thanks for the report.

So we can see what is happening, would it be possible to enable the below options:
vMicro > Compiler > Verbose 
vMicro > Compiler > Show Build Properties
vMicro > Uploader > Verbose

Then for each project do a build, and attempt the SPIFFS upload, and attach the logs as txt files?
  
Back to top
 
IP Logged
 
Acuario
Full Member
***
Offline


Posts: 233
Location: Spain
Joined: Aug 28th, 2015
Re: Can't find mklittlefs.exe
Reply #5 - Jun 28th, 2021 at 7:40am
Print Post  
For some, unexplained, reason it's started working again. I didn't do anything to fix it, it just 'happened' - not something I like as it doesn't solve the problem..

Next time it happens I will do - I'd love to get to the bottom of it!
  
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Online


Posts: 2145
Joined: Feb 13th, 2019
Re: Can't find mklittlefs.exe
Reply #6 - Jun 28th, 2021 at 8:02am
Print Post  
Thanks for letting us know, if you enable the verbose settings then if it happens the log will be available in full to investigate.
  
Back to top
 
IP Logged
 
Acuario
Full Member
***
Offline


Posts: 233
Location: Spain
Joined: Aug 28th, 2015
Re: Can't find mklittlefs.exe
Reply #7 - Sep 13th, 2021 at 5:40am
Print Post  
Everything worked fine until ..I went on holiday and powered off my pc for 10 days.
Now the problem is back..
I've enabled everything and sent the output.

I checked the path and mklittlefs.exe is there

I also tried adding the path in the board.txt - didn't work either.

Further investigations...
The publish failed when I opened VS and just published without having built the project.
I then built the project (no changes to the code so I hadn't built it again)
Now it looks like mklittlefs has run as it runs after the project is built.
Trying Publish again and it now works correctly.

So it seems the project has to be built for the publish to work.

I've sent the output files for when it fails, my build and then when it succeeds.


  
Back to top
 
IP Logged
 
Acuario
Full Member
***
Offline


Posts: 233
Location: Spain
Joined: Aug 28th, 2015
Re: Can't find mklittlefs.exe
Reply #8 - Dec 9th, 2021 at 5:53am
Print Post  
It seems this problem is still present in the latest build.
I've been testing how to replicate and it's very easy..

- Open any esp8266 sketch.
- Add a data folder if it doesn't have one
- Create a single html file in the folder (I guess it could really be any sort of file just so there is content)
- Publish server data files - it will fail with LITTLEFS Error*: mkspiffs.exe or mklittlefs.exe not found!
- Build the project
- Publish server data files - it will work

Additionally..
- Change the board to a different one
- Publish server data files - it will fail with LITTLEFS Error*: mkspiffs.exe or mklittlefs.exe not found!

Adding the runtime.tools.mklittlefs.path= to the board.txt makes no difference.

Additionally, looking at the verbose output from both outputs (successful and fail) the runtime.tools.... isn't in the build string.
« Last Edit: Dec 9th, 2021 at 6:22am by Acuario »  
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Online


Posts: 2145
Joined: Feb 13th, 2019
Re: Can't find mklittlefs.exe
Reply #9 - Dec 9th, 2021 at 3:47pm
Print Post  
Thanks for the update.

To allow this to work properly, a build must be done first for the project + board + FSType + configuration.

https://www.visualmicro.com/page/ESP8266-SPIFFS-and-LittleFS-FileSystems.aspx

We will look at improving this in the future.
  
Back to top
 
IP Logged
 
Acuario
Full Member
***
Offline


Posts: 233
Location: Spain
Joined: Aug 28th, 2015
Re: Can't find mklittlefs.exe
Reply #10 - Dec 10th, 2021 at 6:27am
Print Post  
Ok, thanks for the information. 
The docs only say a build has to be done for FatFS, not for LittleFS.
  
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Online


Posts: 2145
Joined: Feb 13th, 2019
Re: Can't find mklittlefs.exe
Reply #11 - Dec 10th, 2021 at 9:57am
Print Post  
Apologies, we have updated this for the older software as well (< 21.09.17.0 Tab on LittleFS Section).
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint