ESP Device Flashing Guide
Overview
This guide will walk you through flashing custom firmware to your ESP device using the firmware files downloaded from MeshForge.
Prerequisites
- Custom firmware built and downloaded from MeshForge
- ESP device (ESP32, ESP8266, etc.)
- USB cable to connect your device to your computer
Step-by-Step Instructions
1. Build and Download Firmware
- Build your custom firmware for your device on meshforge.org
- When the build completes, download the compressed firmware archive
2. Extract Firmware Files
Extract the downloaded archive to a folder. You should see the following files:
firmware.bin- Main application binaryfirmware.factory.bin- Factory application binaryfirmware.elf- ELF debug file (not needed for flashing)partitions.bin- Partition table binarybootloader.bin- Bootloader binary
3. Flash Using ESPTool
- Open ESP Tool Web Flasher in your browser
- Connect your ESP device to your computer via USB
- Select the appropriate COM port (or device) when prompted
- Configure the flash settings using the following memory offsets:
Memory Offsets
| Offset | File | Description |
| --------- | ---------------------- | --------------------------------------------------------------------- |
| 0x1000 | bootloader.bin | Second-stage bootloader binary |
| 0x8000 | partitions.bin | Partition table that defines data and application partition locations |
| 0x10000 | firmware.factory.bin | Main application (factory) binary |
| 0xe000 | boot_app0.bin | Boot application file (if included in your firmware package) |
Note: Some configurations may include additional data partitions like NVS (Non-Volatile Storage) or Wi-Fi calibration data at their defined offsets. Only flash files that are present in your extracted firmware folder.
4. Complete the Flash Process
- Click the flash/upload button in ESP Tool
- Wait for the flashing process to complete
- You should see a success message when finished
5. Reboot Your Device
- Disconnect and reconnect your ESP device, or
- Press the reset button on your device, or
- Use the reset command in ESP Tool if available
Your device should now be running the custom firmware!
Troubleshooting
- Device not detected: Make sure you have the correct USB drivers installed for your ESP device
- Flash failed: Verify that you're using the correct memory offsets for your device model
- Device won't boot: Ensure all required files (bootloader, partitions, and firmware) were flashed successfully