Download the firmware from here (direct link to download: https://micropython.org/download/esp32)
Install esptool
from GitHub or via pip
:
pip install esptool
Connect the board to computer and erase the flash with the command (hold the boot button while it erase the flash):
esptool --port COMx erase_flash
Then deploy the firmware using:
esptool --chip esp32 --port COMx write_flash -z 0x1000 /path/to/esp32.bin
note: check the port that esp32 used by checking in the device manager should be COMx, where x is an integer
On Windows, install TeraTerm
to access the prompt over USB-serial. Download link
Install rshell
via pip
:
pip install rshell
Use rshell
to connect to ESP32:
rshell -p COMx -e notepad
the filepath of ESP32 is /pyboard/
To copy file to ESP32: (inside rshell)
# cp /path/to/file_to_copy /pyboard/