Here is the output of the error:
Code: Select all
esptool --port /dev/ttyUSB0 erase_flash
esptool.py v2.1
Connecting....
Detecting chip type... ESP32
Chip is ESP32D0WDQ6 (revision (unknown 0xa))
Enabling default SPI flash mode...
Erasing flash (this may take a while)...
A fatal error occurred: ESP32 ROM does not support function erase_flash.
Code: Select all
esptool --chip esp32 --port /dev/ttyUSB0 write_flash -z 0x1000 /media/dps/secondary/dev/micropython/esp32/esp32spiram-20191025-v1.11-498-gf69ef97f2.bin --verify
esptool.py v2.1
Connecting...
Chip is ESP32D0WDQ6 (revision (unknown 0xa))
Enabling default SPI flash mode...
Configuring flash size...
Auto-detected Flash size: 4MB
Erasing flash...
Compressed 1459424 bytes to 901352...
Took 3.65s to erase flash block
Wrote 1459424 bytes (901352 compressed) at 0x00001000 in 96.5 seconds (effective 121.0 kbit/s)...
Hash of data verified.
Leaving...
Verifying just-written flash...
(This option is deprecated, flash contents are now always read back after flashing.)
Verifying 0x1644e0 (1459424) bytes @ 0x00001000 in flash against /media/dps/secondary/dev/micropython/esp32/esp32spiram-20191025-v1.11-498-gf69ef97f2.bin...
-- verify OK (digest matched)
Hard resetting...
Code: Select all
FAT filesystem appears to be corrupted. If you had important data there, you
may want to make a flash snapshot to try to recover it. Otherwise, perform
factory reprogramming of MicroPython firmware (completely erase flash, followed
by firmware programming).
Code: Select all
Traceback (most recent call last):
File "_boot.py", line 10, in <module>
File "inisetup.py", line 28, in setup
File "inisetup.py", line 14, in check_bootsec
File "inisetup.py", line 25, in fs_corrupted
KeyboardInterrupt:
MicroPython v1.11-498-gf69ef97f2 on 2019-10-25; ESP32 module (spiram) with ESP32
Type "help()" for more information.
>>>
Thanks for reading!