Skip to main content

MicroPython

This chapter contains the following sections. Please read as needed:

MicroPython Getting Started Tutorials

New to ESP32 MicroPython development and want to get started quickly? We have prepared a general introductory tutorial ESP32 MicroPython Getting Started for you.

Setting Up Development Environment

1. Flash MicroPython Firmware and Configure Thonny

Please refer to the Set Up MicroPython Development Environment to flash the MicroPython firmware.

2. Other Tips

Working with MicroPythn

  • Example programs for MicroPython are not currently provided

Flashing the Firmware

  • Download and extract the MicroPython firmware: Flasher and Firmware.
  • Connect the device to your computer.
  • Open the flash_download_tool_3.9.4.exe software, select ESP32-S3 and USB.
  • Select the corresponding COM port. Other settings are pre‑configured; click Start to start downloading. (If the COM port is not recognized, press and hold the BOOT button, press and release the RESET button, then release the BOOT button.)
  • If the download stalls and does not proceed, enter download mode by pressing and holding the BOOT button, pressing and releasing the RESET button, then releasing the BOOT button. Try downloading again and wait for the flashing to complete.

Preliminary Operations

Using Thonny

  • Install Thonny (Thonny IDE).
  • Open Thonny, click "Python x.x.x" at the bottom‑right corner, and select "Configure interpreter"
  • In the pop‑up window, select the "Interpreter" tab -> Interpreter: "MicroPython (ESP32)".
  • Save the settings.
  • Click the stop button; if the following light‑gray text appears in the Shell window, the connection is successful.