Skip to content

Micropython Installation instructions for ESP32

Alex Hanson edited this page Mar 16, 2019 · 5 revisions

These instructions apply to Windows

Setup env

  1. Install anaconda
  2. Open anaconda prompt
  • Anaconda Prompt
  1. create env
conda create -n esp32_py36 python=3.6
activate esp32_py36
pip install esptool
pip install mpfshell

Erase flash / write flash

On Windows, do not run esptool.py but esptool otherwise you may get the error "failed to create process."

  1. esptool --chip esp32 --port COM7 write_flash -z 0x1000 esp32-20190113-v1.9.4-779-g5064df207.bin (current directory doesn't yet matter)
    • COM7 or COM11 for DAH
    • To resolve error: A fatal error occurred: Failed to connect to Espressif device: Invalid head of p acket (0x08):
      • Unpluged board from breadboard and other capacitance causing sources, AND / OR
      • hold BTN 0 at start. If you fail to do this you may see error.
  2. Download micropython esp32 firmware
  3. Change directory to location of esp firmware, example: cd \Users\DAH\Downloads\Alex_Lake_SZT_Project
  4. esptool --chip esp32 --port COM7 write_flash -z 0x1000 esp32-20180511-v1.9.4.bin

Clone this wiki locally