Closed CODeRUS closed 4 years ago
Any way to install tool-mklittlefs manually?
Hi @CODeRUS ! Please run pio system info
in the IDE terminal and attach here the output.
weird
pio system info :(
Usage: pio system [OPTIONS] COMMAND [ARGS]...
Error: No such command "info".
OK, what is your OS, architecture?
ubuntu 20.04 pio was installed with vscode, long time ago, i think...
pio --version :(
PlatformIO, version 4.3.4
Please run uname -a
in the terminal.
Also, do you see the folder tool-mklittlefs
in /home/YOUR_USER/.platformio/packages
? Are there any files in this folder?
Linux desktop 5.4.0-40-generic #44-Ubuntu SMP Tue Jun 23 00:01:04 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
find ~/.platformio | grep mklittlefs
says nothing
Could you please try to run pio run --target uploadfs -e nodemcu
?
after uplaodfs
mklittlefs tool was installed, thanks!
I have a question, I am able to upload my data correctly but want to confirm that it is using LittleFS and not SPIFFS.
Verbose mode can be enabled via `-v, --verbose` option
CONFIGURATION: https://docs.platformio.org/page/boards/espressif32/tinypico.html
PLATFORM: Espressif 32 (3.2.0) > TinyPICO
HARDWARE: ESP32 240MHz, 320KB RAM, 4MB Flash
DEBUG: Current (esp-prog) External (esp-prog, iot-bus-jtag, jlink, minimodule, olimex-arm-usb-ocd, olimex-arm-usb-ocd-h, olimex-arm-usb-tiny-h, olimex-jtag-tiny, tumpa)
PACKAGES:
- framework-arduinoespressif32 3.10006.210326 (1.0.6)
- tool-esptoolpy 1.30000.201119 (3.0.0)
- tool-mkspiffs 2.230.0 (2.30)
- toolchain-xtensa32 2.50200.97 (5.2.0)
LDF: Library Dependency Finder -> http://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ chain, Compatibility ~ soft
Found 29 compatible libraries
Scanning dependencies...
Dependency Graph
|-- <LittleFS_esp32> 1.0.6
| |-- <FS> 1.0
|-- <FS> 1.0
Building in release mode
Replace MKSPIFFSTOOL with mklittlefs.exe
Building SPIFFS image from 'data' directory to .pio\build\tinypico\spiffs.bin
/config/calibration.txt
/log.csv
Looking for upload port...
Auto-detected: COM7
Uploading .pio\build\tinypico\spiffs.bin
esptool.py v3.0
Serial port COM7
Connecting......
Chip is ESP32-PICO-D4 (revision 1)
Features: WiFi, BT, Dual Core, 240MHz, Embedded Flash, VRef calibration in efuse, Coding Scheme None
Crystal is 40MHz
MAC: 94:b9:7e:82:4b:a4
Uploading stub...
Running stub...
Stub running...
Changing baud rate to 460800
Changed.
Configuring flash size...
Auto-detected Flash size: 4MB
Compressed 1507328 bytes to 1966...
Writing at 0x00290000... (100 %)
Wrote 1507328 bytes (1966 compressed) at 0x00290000 in 0.0 seconds (effective 246751.0 kbit/s)...
Hash of data verified.
Leaving...
Hard resetting via RTS pin...
I see in packages it shows tool-mkspiffs 2.230.0 (2.30)
is that fine for littleFS or is there a "tool-mklittlefs" package I need to install?
It also says Building SPIFFS image from 'data' directory to .pio\build\tinypico\spiffs.bin
which has me questioning if I am doing this correct.
@johnsmakar You can run the upload command in verbose mode to see what tools are used. Here is some docs describing how to select the filesystem.
I have board_build.filesystem = littlefs
in my .ini but I have a feeling it's not doing anything because when I make a typo on purpose it does not complain.
@johnsmakar It seems that you're using ESP32-based hardware, but writing in the ESP8266 repository. Anyway, the ESP32 platform doesn't support littleFS
at the moment.
Ah, my apologies. I am slightly confused on what filesystem my TinyPICO is running then, because I am using the ESP32 LittleFS filesystem plugin to upload my FS image to the board.
And I saw this and assumed it was supported: https://www.youtube.com/watch?v=4r6YZlLfKfw&list=LL&index=3&t=1112s
Hello!
Just switched to 2.6.0 to test new littlefs functionality, but buildfs fails
platformio.ini: