Skip to main content

Install esptool on your local machine

Learning Objectives

We are using esptool.py to interact with the MagTag hardware directly from your computer over the USB cable. Installing this tool will let you upload binaries directly to the device.

Desired outcome(s)

  • Be able to connect to the device using esptool.py

Time Estimate

  • This section should take approximately 1-2 minutes.

Workflow

Espressif has published full instructions for installing esptool. For Linux and Mac, run the following command:

pip3 install esptool

Troubleshooting

If you are unable to run esptool.py from the command line, you may need to add the installed binary to your path:

PATH=$PATH:$HOME/.local/bin/
Update previously installed versions

If esptool.py is already installed on your system, please check that it is a recent version that supports the ESP32s2. Now is a great time for an upgrade!