Skip to content

How to install firmware on your ESP

Maurice Verhoeven edited this page Apr 22, 2024 · 41 revisions

To install firmware on your ESP

Prepare:

  1. If your ESP is attached to the OTGW, disconnect the gateway then unplug the ESP from the OTGW.
  2. Connect the ESP to a PC or Mac using a Micro USB lead (make sure the cable supports data-transfer, not just power)
  3. Download .bin files and rename the .bin files to ino.bin and fs.bin

For Windows:

  1. If no driver, try: WeMos or NodeMCU.
  2. Download esptool (you will need to unzip it).
  3. Make sure esptool is on your path.
  4. Type esptool write_flash 0x0 ino.bin 0x200000 fs.bin

For Mac:

  1. Open a terminal and navigate to the folder with the bin files.
  2. Run pip install esptool , or follow these instructions.
  3. Run: esptool.py -p /dev/tty.usbserial-120 write_flash 0x0 ino.bin 0x200000 fs.bin (Replace /dev/tty.usbserial-120 with the name of your serial port. You should be able to find it by inspecting the output from ls /dev/tty*)

Once the installer is running:

  1. Several lines of information will appear as the ESP is written. The blue light should blink fast then slowly.
  2. Unplug the ESP and install into your OTGW (be sure it's the right way round!), then power on the OTGW.

Now move on to configure the wifi.