Automated release for MicroPython.
micropython.bin, bootloader.bin and partition-table.bin plus firmware.bin that is all 3 .bin in just 1
You need to have some dependencies pre-instaled in your OS:
Create Virtual Environment
python -m venv esp-env
.\esp-env\Scripts\activate
source esp-env/bin/activate
pip install esptool
With USB cable on USB, press BOOT button then RST button, release RST, then release BOOT button. Or unplug, press BOOT button meanwhile you plug in the usb port on PC or SBC like a Raspberry Pi.
Alternative: Use Thonny IDE, plug your ESP32-C3, on Thonny Shell type:
from machine import bootloader
Press Enter
then type:
bootloader()
Press Enter
then just close Thonny and go to Terminal with Virtual Environment activate.
python -m esptool --chip esp32c3 erase-flash
python -m esptool --chip esp32c3 -b 460800 --before default_reset --after hard_reset write_flash --flash_mode dio --flash_size 4MB --flash_freq 80m 0x0 bootloader.bin 0x8000 partition-table.bin 0x10000 micropython.bin
python -m esptool --chip esp32c3 --baud 460800 write_flash 0x0 firmware.bin
If you get a PowerShell Scripts Policy Execution Exception that don’t let you activate the Virtual Environment:
Then open a Terminal like Administrator and type:
Set-ExecutionPolicy Unrestricted