Meet the board, then its firmware
Your goal: choose a compatible MicroPython image, install it, then prove that the board can run a small Python program. Plan about 25 minutes, including practice.
Put these three items in front of you

ESP32-S3 board
The small computer that runs your program. Find the module marking and USB sockets.

USB data cable
Connects board and computer. A power-only cable cannot transfer firmware.
Computer
Downloads firmware and runs the flashing tool. Match the cable end to its USB port.
What you need before the live task
- A working USB data connection; ML-C04 helps with cables and serial drivers.
- Internet for downloads and desktop Python installed on the computer.
- A copy of any existing board files or project you need to keep.
No electronics or Python background is assumed. All later console pictures are examples of what to look for.
Know these sockets and buttons
Use the ESP32-S3-N16R8 board. Hold it with the components facing you, antenna at the top and USB-C sockets at the bottom.
USB · native connection
Bottom left in this front view. This lesson uses one data cable here for firmware download and the MicroPython console.
COM · serial bridge
Bottom right in this front view. It is a different route through a USB-to-UART bridge. Keep it unplugged for this exercise.
Firmware and your program
Firmware is software installed in the board’s flash storage. MicroPython firmware includes a small Python runtime: the software that reads and executes your Python instructions.
Install the runtime
Use a firmware .bin image and a flashing tool. Do this for first setup or a deliberate firmware change.
Change the application
Send Python statements or save .py files. An ordinary program edit does not require reflashing MicroPython.
main.py. Which job is needed?Check: copy the changed Python file. Keep the installed MicroPython runtime.
Three ways to write software
The board can run firmware made with different software tools. ESP-IDF, Arduino and MicroPython are programming choices. They are not three positions of a physical switch.
ESP-IDF
Espressif’s development framework. Write C/C++, configure the project, then build and flash. Useful when you need detailed platform control.
Arduino
Write a C++ sketch using Arduino libraries. The ESP32 core is built on ESP-IDF. The Upload action builds and flashes your sketch.
Choose for the task
Quick interactive Python experiment → MicroPython.
Existing Arduino library or sketch → Arduino.
Project needing ESP-IDF configuration and APIs → ESP-IDF.
These are starting points. Experienced projects can combine frameworks; that is beyond this first lesson.
Run mode and download mode
Reset restarts the chip. During a normal start it runs the firmware already in flash. In download mode, the chip’s built-in ROM loader receives new firmware instead.
Normal MicroPython start
The runtime starts, runs startup files and can show the interactive Python prompt. Your program belongs here.
Firmware download
The flashing tool communicates with the loader. Python expressions such as 2 + 3 are not commands for this loader.
>>>?Check: no. Finish flashing, leave download mode and restart the installed firmware before opening Python.
Choose the matching image
For this board, N16R8 identifies 16 MB of flash and 8 MB of Octal-SPI PSRAM. Octal describes the memory interface; it matters when choosing the MicroPython build.
Use this download route
- Open MicroPython → ESP32-S3 downloads.
- Find Firmware (Support for Octal-SPIRAM). Choose a stable release, not a preview.
- Download the merged
.bin, not.app-bin,.uf2or.elf.
ESP32_GENERIC_S3-SPIRAM_OCT-20260824-v1.29.0.binChip: ESP32-S3 · PSRAM: Octal · image: merged BIN · write address: 0x0.
Save the file in your lesson folder. For shorter commands below, make a copy named firmware.bin. Keep the original filename in your notes. Make sure your file browser shows extensions so the copy is not named firmware.bin.bin.
.py file is your program, not a firmware image.The firmware’s partition layout determines usable file storage. A 16 MB flash chip does not promise a 16 MB Python filesystem.
Prepare the computer and USB link
The commands below run in the computer terminal, not after a board’s >>> prompt. The worked commands use Windows PowerShell and a lesson folder containing firmware.bin.
esptool writes firmware to the board. mpremote opens the Python console and copies Python files.
1 · Create a small tool environment
Install desktop Python 3.10 or newer, then open a terminal in your lesson folder. Confirm python --version before continuing.
python -m venv .venv .venv\Scripts\python.exe -m pip install "esptool>=5,<6" mpremote
In the following commands, PY means the Python executable inside this environment. Replace PY with .venv\Scripts\python.exe on Windows, or .venv/bin/python on macOS / Linux.
2 · Identify the board’s port
PY -m mpremote connect list
COM7 · Linux /dev/ttyACM0 · macOS /dev/cu.usbmodem….These are examples. Use your own detected port.
3 · Release the port
Close other serial monitors, editor connections and browser serial sessions before esptool uses the port. Keep only one serial tool connected at a time.
Install MicroPython
Save any existing project files on the computer before proceeding. Erase removes the existing firmware, Python files and configuration in flash. Do not erase a board whose contents you need but have not saved.
List ports again. Use the download-mode port now shown. In the commands below, replace PORT with that name and replace PY as defined on page 7. Keep firmware.bin in the current folder.
1 · Check the target before erasing
PY -m esptool --chip esp32s3 --port PORT flash-id
Proceed only if the tool connects to ESP32-S3 and reports the expected 16 MB flash. Stop and investigate a target or size mismatch. These checks do not identify the PSRAM type.
2 · Erase, then write the merged image
PY -m esptool --chip esp32s3 --port PORT erase-flash PY -m esptool --chip esp32s3 --port PORT write-flash 0x0 firmware.bin
Leave the cable connected while writing. Use esptool 5’s hyphenated command names. The write address 0x0 belongs to this S3 merged image.
Try a line; read the reply
REPL means read–evaluate–print loop. It is an interactive conversation: you enter one Python instruction, the board executes it and returns a result or a new prompt.
In the computer terminal, run PY -m mpremote connect PORT repl using the current runtime port. Press Enter; use Ctrl-C if a program is running. Look for the MicroPython banner or prompt.
Example board console
>>> 2 + 3
5
>>> print("Hello, board!")
Hello, board!
>>>>>> in the board console.2 + 3 and press Enter.5 and another prompt.Computer command prompt
Commands such as python -m esptool run on the computer, in its terminal.
Board Python prompt
>>> is where Python statements go. A computer terminal command pasted here causes a Python error.
Useful keys: Ctrl-C interrupts a running Python program. Ctrl-D at the normal prompt performs a soft reset. A soft reset restarts Python; it does not install different firmware.
>>>, type import sys, then print(sys.implementation.name). Expect micropython. Use print(sys.version) to inspect the version.In mpremote, Ctrl-] exits to the computer terminal. A separate UART terminal, if used, needs 115200 baud; keep this exercise on the native USB route.
Make your program survive restart
A typed statement runs now. A saved file stays in flash. MicroPython runs main.py during a normal startup, after boot.py if that file exists.
1 · Save a file on the computer
Create main.py in your lesson folder as plain text. Make sure it is not main.py.txt. Replace any existing board copy only after saving a backup.
print("ML-C03 ready")2 · Copy it to the board
Exit the REPL connection with Ctrl-] first. In the computer terminal, use the normal runtime port:
PY -m mpremote connect PORT fs cp main.py :main.py PY -m mpremote connect PORT repl
The colon means “on the board.” With the console open, press Ctrl-C for a prompt, then Ctrl-D at >>> to restart Python and see the startup line.
ML-C03 ready appears after the soft restart. For a second check, tap RST with BOOT released; reconnect if USB reappears under a new name. If you missed the startup line, use Ctrl-D at the prompt to see it again.main.py again and repeat the check. You do not need to erase or reflash firmware for this edit.Use the first failing checkpoint
Work from the first missing observation. Change one thing, then repeat that checkpoint.
1 · No serial port
Check USB socket, data cable and computer USB port. Try BOOT + RST, then list again. Power light alone does not prove data works. See ML-C04 for drivers.
2 · Port busy / denied
Close other monitors and browser sessions. On Linux, check serial-access permissions. Reconnect using the current port name.
3 · Stuck at Connecting
Repeat hold BOOT → tap RST → release BOOT. List ports again and update PORT before retrying. Keep other hardware detached.
4 · Write fails midway
Use a direct USB connection and known data cable. This lesson omits the optional fast baud setting. If you added one, return to the default speed.
5 · Written, but no Python
Release BOOT and tap RST. Find the runtime port; press Enter or Ctrl-C. Recheck S3 + SPIRAM_OCT + merged BIN + offset 0x0 if startup keeps failing.
6 · Python error
Read the first error line. Check quotes and parentheses. A running program may need Ctrl-C. A bad .py file usually needs a file fix, not a firmware erase.
Explain these before you finish
- You changed a greeting in
main.py. Reflash firmware or copy a file? - The USB port changes after reset. Keep using the old name or list again?
- The board shows a Python prompt. Download mode or running MicroPython?
Your completion check
- Point to native USB, COM, RST and BOOT in the front view.
- Explain why this N16R8 needs the Octal-SPIRAM image.
- Get
5from2 + 3and see your greeting. - Save a changed
main.pyand see its message after restart.
Keep the firmware filename, port and your program in your project notes. For a deeper recovery exercise, continue with ML-C10.
Keep your reference
Keep the lesson beside your practice.
Download the PDF to keep the diagrams, commands, and checkpoints close at hand. Return to the first missing observation when a step does not match.
