ESP32 Erase Flash Memory

Solution ici :

Solution:

You are likely using an outdated version of esptool. Use the esptool from GitHub:

fix-esp32-a-fatal-error-occurred-esp32-rom-does-not-support-function-erase_flash.txt📋 Copy to clipboard⇓ Download

git clone GitHub - espressif/esptool: Espressif SoC serial bootloader utility

then run it using

fix-esp32-a-fatal-error-occurred-esp32-rom-does-not-support-function-erase_flash.sh📋 Copy to clipboard⇓ Download

cd esptool

python3 esptool.py erase_flash

Sous windows, il faut trouver le répertoire dans lequel se trouve esptool, tu ouvres une fenêtre de commande (touche Windows R, tape cmd) et tu te mets dans ce répertoire (cd C:\path\to\esptool), puis tu tapes :

C:\Path\To\Python\python.exe -u -m esptool --port COM13 erase_flash

en indiquant le bon numéro de port COM