probonopd / WirelessPrinting

Print wirelessly from Cura, PrusaSlicer or Slic3r to your 3D printer connected to an ESP8266 or ESP32 module
352 stars 65 forks source link

ESP32: E (331) SPIFFS: mount failed, -10025 #106

Closed probonopd closed 5 years ago

probonopd commented 5 years ago

python /root/.arduino15/packages/esp32/tools/esptool_py/2.6.0/esptool.py --chip esp32 --port /dev/ttyUSB0 write_flash 0x10000 /home/me/Downloads/ESP8266WirelessPrintAsync_esp32_0e3bec1.bin

Serial console (when booting with USB attached to the Arduino IDE and no printer attached):

rst:0x1 (POWERON_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 188777542, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:1
load:0x3fff0018,len:4
load:0x3fff001c,len:928
ho 0 tail 12 room 4
load:0x40078000,len:9280
load:0x40080400,len:5848
entry 0x40080698
E (331) SPIFFS: mount failed, -10025
M115
M115

/info

Free heap: 256664

File system: NO FS

Last command sent: M115
Last received response: 

May be related to https://github.com/espressif/arduino-esp32/issues/638

probonopd commented 5 years ago

Still getting E (331) SPIFFS: mount failed, -10025

probonopd commented 5 years ago

After running the SPIFFS_Test.ino sketch from the ESP32 Arduino package, the error is no longer there. Possibly we need to add

#define FORMAT_SPIFFS_IF_FAILED true