Skip to content

Instantly share code, notes, and snippets.

@ValeraZSD
Last active January 12, 2025 19:16
Show Gist options
  • Select an option

  • Save ValeraZSD/d73574505052a1c808369b4665d59d57 to your computer and use it in GitHub Desktop.

Select an option

Save ValeraZSD/d73574505052a1c808369b4665d59d57 to your computer and use it in GitHub Desktop.
How to Flash MicroPython Firmware on a ESP32 C3 SuperMini board

ESP32 C3 SuperMini is a shrunk-down version of the Wemos Lolin ESP32 C3 Mini

Wemos Lolin ESP32 C3 Mini ESP32 C3 SuperMini
image image

That's why firmware from Mini board is also suitable on a SuperMini board.

  1. Get firmware here, pick upper one (latest)

  2. Run cmd as administrator and install esptool: pip install esptool

  3. Erase the flash memory of the board (replace COMX with actual port): esptool --chip esp32c3 --port COMX erase_flash

  4. Use the write_flash command to upload the MicroPython firmware: esptool --chip esp32c3 --port COM5 --baud 460800 write_flash -z 0x0 D:\LOLIN_C3_MINI-20241129-v1.24.1.bin

  5. Use Thonny IDE (Beginner-friendly, includes MicroPython support) to connect to your ESP32 C3 SuperMini

  6. Write a code.py with print("Hello, MicroPython!") and run it to check if it works.

  7. For better check use this code:

import time

# Configure GPIO4 as an input pin
pin4 = Pin(4, Pin.IN)

# Continuously check the pin state
while True:
    if pin4.value() == 1:
        print("GPIO4 (HIGH)")
    else:
        print("GPIO4 (LOW)")
    time.sleep(0.5)  # Check every 500ms

Run it, and try to short 3.3V and pin4 on the board (they are really close to each other). You will see that print statements change from GPIO4 (LOW) to GPIO4 (HIGH). If it works, then you have succesfully flashed your board and pins work correctly. Good luck!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment