Your new topic does not fit any of the above??? Check first. Then post here. Thanks.

Moderator: igrr

User avatar
By pafiribeira
#84659 HELP ESP32 Sketch Data Upload ERROR shows: SPIFFS Upload failed!

Hello, recently I am starting with esp8266 serverWifi, everything is fine, compile and save the code without error,
but when trying to upload the files from the 'data' folder from the tools menu, sp8266 sketch Data Upload
Do not upload the files and display the following message:

////////////////// español

AYUDA ESP32 Sketch Data Upload ERROR muestra: SPIFFS Upload failed!

Hola recientemente estoy empezando con esp8266 serverWifi, todo va bien, compila y graba el codigo sin error,
pero al intentar subir los archivos de la carpeta 'data' desde el menu herramientas, sp8266 sketch Data Upload
no sube los archivos y muestra el siguiente mensaje:
-------------------------------------------------------------
[SPIFFS] data : G:\PAFI_VC\ARDUINO\ProyectosArduino\ESP8266 WIFI\AJAX_pagDinamicas\AJAX_ServerSPIFFS_Gzip\data
[SPIFFS] size : 2024
[SPIFFS] page : 256
[SPIFFS] block : 8192
/img/LedON_48.ico.gz

/index.html.gz

/js/main.js.gz

[SPIFFS] upload : C:\Users\PAFI\AppData\Local\Temp\arduino_build_255637/AJAX_ServerSPIFFS_Gzip.spiffs.bin
[SPIFFS] address : 0x200000
[SPIFFS] reset : --before default_reset --after hard_reset
[SPIFFS] port : COM7
[SPIFFS] speed : 115200
[SPIFFS] python : python.exe
[SPIFFS] uploader : C:\Users\PAFI\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.6.1\tools\upload.py

SPIFFS Upload failed!
-------------------------------------------
This is immediately, it seems that neither connects with esp8266.

I have to say that the first time he uploaded them well, but from there there is nothing, even perform tests with another esp8266 and it produces the same error.
On the other hand, prepare a small program to read and write files in the flash and it works without problems.

Someone could help me, I think if it will be a problem of the plugins to upload the sketch Data Upload.
also say that I even reinstalled the arduino IDE and the same ...


//////////////////////////// Español


Esto es de forma inmediata, ni intenta conectar.


Tengo que decir que la primera vez los subió bien, pero a partir de hay nada, incluso realice pruebas con otro esp8266 y produce el mismo error.
Por otro lado prepare un pequeño programa para leer y escribir ficheros en la flash y funciona sin problemas.

Alguien podría ayudarme, ya pienso si será algún problema del plugins para subir el sketch Data Upload.
también decir que incluso volvi a instalar el IDE de arduino y los mismo...
User avatar
By pafiribeira
#84722
Anttiduino wrote:Have you tried formatting the SPIFFS like this


Si y el problema persiste, formatea y crea el fichero, grabo el programa intento subir el Sketch Data Upload y NO hay manera.
----------------------------------------------------------------------------
fecha: 25-11-2019 - con el menu: "ESP8266 sketch Data Upload"

Después de formatear y crear un fichero, el mensaje es el mismo.
----------------------------------------------------------------------------
[SPIFFS] data : G:\PAFI_VC\ARDUINO\ProyectosArduino\ESP8266___WIFI\AJAX_pagDinamicas\AJAX_ServerSPIFFS_Gzip\data
[SPIFFS] size : 14312
[SPIFFS] page : 256
[SPIFFS] block : 8192
/img/LedON_48.ico.gz

/index.html.gz

/js/main.js.gz

[SPIFFS] upload : C:\Users\PAFI\AppData\Local\Temp\arduino_build_726818/AJAX_ServerSPIFFS_Gzip.spiffs.bin
[SPIFFS] address : 0x200000
[SPIFFS] reset : --before default_reset --after hard_reset
[SPIFFS] port : COM7
[SPIFFS] speed : 115200
[SPIFFS] python : python.exe
[SPIFFS] uploader : C:\Users\PAFI\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.6.1\tools\upload.py

SPIFFS Upload failed!
--------------------------------

Tasmbién lo intente con el menú: "ESP8266 LittleFS Data Upload" y lo mismo abajo el mensaje que muestra el IDE.
----------------------------------------------------------------------------------------
fecha: 25-11-2019 con el menu: "ESP8266 LittleFS Data Upload" tambien da el mismo ERROR
Despues de formatear y crear un fichero, el mensaje es el mismo.
----------------------------------------------------------------------------------------
con

Tengo que decir que la primera vez los subió bien, pero a partir de hay nada, incluso realice pruebas con otro esp8266 y produce el mismo error.
Por otro lado prepare un pequeño programa para leer y escribir ficheros en la flash y funciona sin problemas.

Alguien podría ayudarme, ya pienso si será algún problema del plugins para subir el sketch Data Upload.
también decir que incluso volvi a instalar el IDE de arduino y los mismo...
[LittleFS] data : G:\PAFI_VC\ARDUINO\ProyectosArduino\ESP8266___WIFI\AJAX_pagDinamicas\AJAX_ServerSPIFFS_Gzip\data
[LittleFS] size : 14312
[LittleFS] page : 256
[LittleFS] block : 8192
/img/LedON_48.ico.gz

/index.html.gz

/js/main.js.gz

[LittleFS] upload : C:\Users\PAFI\AppData\Local\Temp\arduino_build_726818/AJAX_ServerSPIFFS_Gzip.mklittlefs.bin
[LittleFS] address : 0x200000
[LittleFS] reset : --before default_reset --after hard_reset
[LittleFS] port : COM7
[LittleFS] speed : 115200
[LittleFS] python : C:\Users\PAFI\AppData\Local\Arduino15\packages\esp8266\tools\python3\3.7.2-post1\python3.exe
[LittleFS] uploader : C:\Users\PAFI\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.6.1\tools\upload.py

usage: esptool write_flash [-h] [--erase-all]

[--flash_freq {keep,40m,26m,20m,80m}]

[--flash_mode {keep,qio,qout,dio,dout}]

[--flash_size FLASH_SIZE]

[--spi-connection SPI_CONNECTION] [--no-progress]

[--verify] [--encrypt]

[--ignore-flash-encryption-efuse-setting]

[--compress | --no-compress]

<address> <filename> [<address> <filename> ...]

esptool write_flash: error: argument <address> <filename>: [Errno 2] No such file or directory: 'write_flash'

LittleFS Upload failed!

gracias