Welcome, Guest. Please Login or Register
Arduino IDE for Visual Studio
 
 
When Logging a Support Issue in the Forum, please ensure you have also:-
  • Enabled vMicro > Compiler > Show Build Properties and Verbose
  • 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
 
  HomeSearch Tutorials & Wiki visualmicro.com LoginHelpRegister  
 
Page Index Toggle Pages: 1
Send Topic Print
Can't find mklittlefs.exe (Read 557 times)
Acuario
Member
***
Offline



Posts: 146
Can't find mklittlefs.exe
Jan 19th, 2021 at 6:30pm
 
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:
C:\Users\nigel\AppData\Local\arduino15\packages\esp8266\tools\mklittlefs\2.5.0-4
-fe5bb56

I haven't updated my ESP8266 build.

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



Posts: 980
Re: Can't find mklittlefs.exe
Reply #1 - Jan 19th, 2021 at 9:13pm
 
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:
runtime.tools.mklittlefs.path=C:\Users\nigel\AppData\Local\arduino15\packages\esp8266\tools\mklittlefs\2.5.0-4
-fe5bb56 



Back to top
 
 
IP Logged
 
Acuario
Member
***
Offline



Posts: 146
Re: Can't find mklittlefs.exe
Reply #2 - Jan 20th, 2021 at 4:39am
 
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
Member
***
Offline



Posts: 146
Re: Can't find mklittlefs.exe
Reply #3 - Jun 27th, 2021 at 8:06am
 
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:
# Force LittleFS Usage for ESP8266
runtime.tools.mkspiffs.path=notTheToolYoureLookingFor

runtime.tools.mklittlefs.path=C:\Users\nigel\AppData\Local\arduino15\packages\esp8266\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:
ESP8266FSUpload.exe
## recipe.wwwfiles.upload.pattern
"c:\program files (x86)\microsoft visual studio\2019\professional\common7\ide\extensions\c2d2aslw.nu3/ESP8266FSUpload.exe" -serial.port=192.168.0.184 -build.path="C:\Users\nigel\AppData\Local\Temp\VMBuilds\HPController\esp8266_generic\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 -platform.path="C:\Users\nigel\AppData\Local\arduino15\packages\esp8266\hardware\esp8266\2.7.4" -project.name="HPController.ino" -project.path="C:\Users\nigel\Documents\Arduino\HPController" -tools.esptool.cmd="C:\Users\nigel\AppData\Local\arduino15\packages\esp8266\tools\python3\3.7.2-post1/python3" -runtime.tools.esptool.path="C:\Users\nigel\AppData\Local\arduino15\packages\esp8266\tools\esptool\0.4.12" -compiler.path="C:\Users\nigel\AppData\Local\arduino15\packages\esp8266\tools\xtensa-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
*****
Offline



Posts: 980
Re: Can't find mklittlefs.exe
Reply #4 - Jun 28th, 2021 at 6:00am
 
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
Member
***
Offline



Posts: 146
Re: Can't find mklittlefs.exe
Reply #5 - Jun 28th, 2021 at 8:40am
 
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
*****
Offline



Posts: 980
Re: Can't find mklittlefs.exe
Reply #6 - Jun 28th, 2021 at 9:02am
 
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
Member
***
Offline



Posts: 146
Re: Can't find mklittlefs.exe
Reply #7 - Sep 13th, 2021 at 6:40am
 
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
 
Page Index Toggle Pages: 1
Send Topic Print