aldope
October 15, 2020, 10:39pm
#1
I cant upload a proper littlefs image to my wemos d1 pro clones. As far I can see the littlefs.exe creates a 4GB bin file!!!
Executing task in folder filtro_manga: C:\Users\Desidia.platformio\penv\Scripts\platformio.exe run --target uploadfs --environment d1_mini_pro <
Processing d1_mini_pro (platform: espressif8266; board: d1_mini_pro; framework: arduino)
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------Verbose mode can be enabled via -v, --verbose
option
CONFIGURATION: Redirecting...
PLATFORM: Espressif 8266 (2.6.2) > WeMos D1 mini Pro
HARDWARE: ESP8266 80MHz, 80KB RAM, 16MB Flash
PACKAGES:
framework-arduinoespressif8266 3.20704.0 (2.7.4)
tool-esptool 1.413.0 (4.13)
tool-esptoolpy 1.20800.0 (2.8.0)
tool-mklittlefs 1.203.200522 (2.3)
tool-mkspiffs 1.200.0 (2.0)
toolchain-xtensa 2.40802.200502 (4.8.2)
LDF: Library Dependency Finder → Library Dependency Finder (LDF) — PlatformIO latest documentation
LDF Modes: Finder ~ chain, Compatibility ~ soft
Found 34 compatible libraries
Scanning dependencies…
Dependency Graph
|-- 6.16.1
|-- 1.2.2
| |-- 1.0
|-- 1.2.3
| |-- 1.2.2
| | |-- 1.0
| |-- 1.0
| |-- 1.0
| |-- 6.16.1
|-- 3.2.0
|-- <JC_Button> 2.1.2
|-- 1.0
|-- <LittleFS(esp8266)> 0.1.0
Building in release mode
gzip_webfiles([“.pio\build\d1_mini_pro\littlefs.bin”], [“data”])
GZIP: Iniciando el proceso de gzipeado para la imágen…
GZIP: Eliminando el directorio “data” C:\Users\Desidia\Documents\Code\filtro_manga\data
GZIP: Re-creando un directorio de datos vacío C:\Users\Desidia\Documents\Code\filtro_manga\data
GZIP: Copiando archivo: C:\Users\Desidia\Documents\Code\filtro_manga\data_src\config.json al directorio de datos
GZIP: Comprimiendo… C:\Users\Desidia\Documents\Code\filtro_manga\data_src\bs-grid.min.css
GZIP: Comprimido… C:\Users\Desidia\Documents\Code\filtro_manga\data\bs-grid.min.css.gz
GZIP: Comprimiendo… C:\Users\Desidia\Documents\Code\filtro_manga\data_src\bs-reboot.min.css
GZIP: Comprimido… C:\Users\Desidia\Documents\Code\filtro_manga\data\bs-reboot.min.css.gz
GZIP: Comprimiendo… C:\Users\Desidia\Documents\Code\filtro_manga\data_src\bs.min.css
GZIP: Comprimido… C:\Users\Desidia\Documents\Code\filtro_manga\data\bs.min.css.gz
GZIP: Comprimiendo… C:\Users\Desidia\Documents\Code\filtro_manga\data_src\mdb.min.css
GZIP: Comprimido… C:\Users\Desidia\Documents\Code\filtro_manga\data\mdb.min.css.gz
GZIP: Comprimiendo… C:\Users\Desidia\Documents\Code\filtro_manga\data_src\index.html
GZIP: Comprimido… C:\Users\Desidia\Documents\Code\filtro_manga\data\index.html.gz
GZIP: Comprimiendo… C:\Users\Desidia\Documents\Code\filtro_manga\data_src\settings.html
GZIP: Comprimido… C:\Users\Desidia\Documents\Code\filtro_manga\data\settings.html.gz
GZIP: Comprimiendo… C:\Users\Desidia\Documents\Code\filtro_manga\data_src\bootstrap.min.js
GZIP: Comprimido… C:\Users\Desidia\Documents\Code\filtro_manga\data\bootstrap.min.js.gz
GZIP: Comprimiendo… C:\Users\Desidia\Documents\Code\filtro_manga\data_src\index.js
GZIP: Comprimido… C:\Users\Desidia\Documents\Code\filtro_manga\data\index.js.gz
GZIP: Comprimiendo… C:\Users\Desidia\Documents\Code\filtro_manga\data_src\jquery-3.4.1.min.js
GZIP: Comprimido… C:\Users\Desidia\Documents\Code\filtro_manga\data\jquery-3.4.1.min.js.gz
GZIP: Comprimiendo… C:\Users\Desidia\Documents\Code\filtro_manga\data_src\mdb.min.js
GZIP: Comprimido… C:\Users\Desidia\Documents\Code\filtro_manga\data\mdb.min.js.gz
GZIP: Comprimiendo… C:\Users\Desidia\Documents\Code\filtro_manga\data_src\moment.min.js
GZIP: Comprimido… C:\Users\Desidia\Documents\Code\filtro_manga\data\moment.min.js.gz
GZIP: Comprimiendo… C:\Users\Desidia\Documents\Code\filtro_manga\data_src\popper.min.js
GZIP: Comprimido… C:\Users\Desidia\Documents\Code\filtro_manga\data\popper.min.js.gz
GZIP: Comprimiendo… C:\Users\Desidia\Documents\Code\filtro_manga\data_src\settings.js
GZIP: Comprimido… C:\Users\Desidia\Documents\Code\filtro_manga\data\settings.js.gz
GZIP: Comprimido correctamente.
Building file system image from ‘data’ directory to .pio\build\d1_mini_pro\littlefs.bin
/bootstrap.min.js.gz
/bs-grid.min.css.gz
/bs-reboot.min.css.gz
/bs.min.css.gz
/config.json
/index.html.gz
/index.js.gz
/jquery-3.4.1.min.js.gz
/mdb.min.css.gz
/mdb.min.js.gz
/moment.min.js.gz
/popper.min.js.gz
/settings.html.gz
/settings.js.gz
Looking for upload port…
Auto-detected: COM3
Uploading .pio\build\d1_mini_pro\littlefs.bin
esptool.py v2.8
Serial port COM3
Connecting…
Chip is ESP8266EX
Features: WiFi
Crystal is 26MHz
MAC: 2c:3a:e8:1f:6f:48
Uploading stub…
Running stub…
Stub running…
Configuring flash size…
Auto-detected Flash size: 16MB
A fatal error occurred: File .pio\build\d1_mini_pro\littlefs.bin (length 4292845568) at offset 2097152 will not fit in 16777216 bytes of flash. Use --flash-size argument, or change flashing address.
*** [uploadfs] Error 2
================================================================================================== [FAILED] Took 27.30 seconds ==================================================================================================The terminal process “C:\Users\Desidia.platformio\penv\Scripts\platformio.exe ‘run’, ‘–target’, ‘uploadfs’, ‘–environment’, ‘d1_mini_pro’” terminated with exit code: 1.
Terminal will be reused by tasks, press any key to close it.
This is the data directory files
This is the output files
The littlefs.bin generated bin file is 4GB!.
I have no problems with the d1_mini boards, this only happens with the d1_mini_pro
can anybody help me to solved this? I really need the d1_mini_pro external antena :S
Due to a negative size calculation. See bug at mkspiffs crashes when invoked with negative size parameter · Issue #190 · platformio/platform-espressif8266 · GitHub . Workaround is ignoring half of the flash space by setting board_build.ldscript = eagle.flash.8m7m.ld
in the platformio.ini
. cc @valeros
1 Like
aldope
October 15, 2020, 11:29pm
#3
Great, I can upload now! Thanks!!
Any plans on solving that bug? I don’t need the extra memory now but maybe in the future
I’ve pinged the devs again.
Hi community, I’ve got the exact same problem and used the workaround but I would need this extra memory and this prevents from using the Mini PRO.
Anychance to get this fix scheduled ? Thank you very much
I’ve pinged the developers again.