This is a practical SP Flash Tool tutorial for your first real flash. We will reinstall stock firmware on a MediaTek phone the safe way, explaining what each option does as we go. The steps use SP Flash Tool V5, with notes where V6 looks different.
If you have not installed the tool and the MediaTek USB VCOM drivers yet, do that first with our step-by-step SP Flash Tool install walkthrough. Come back once your phone shows up in Device Manager.
What you will need
- SP Flash Tool V5 or V6, extracted to a short path such as
C:\SPFlash. - MediaTek USB VCOM drivers installed (Windows only).
- The stock firmware for your exact model and region, extracted to its own folder.
- A data USB cable and a phone charged to at least 50%.
- A backup of anything you want to keep. Flashing can erase data.
Step 1: Check your firmware folder
Open the extracted firmware. A typical MediaTek stock ROM folder contains:
- A scatter file such as
MT6765_Android_scatter.txt(for V5), or adownload_agentfolder with aflash.xml(for V6). - Image files such as
preloader_xxx.bin,lk.img,boot.img,recovery.img,super.imgorsystem.img,vendor.img,userdata.imgand others.
The chipset in the scatter file name must match your phone's chipset. If it says MT6765 and your phone is an MT6768, stop: you have the wrong firmware. Our explanation of SP Flash Tool file formats shows how to read a scatter file if you want to confirm.
Step 2: Open SP Flash Tool and load the scatter file
- Right-click
flash_tool.exeand choose Run as administrator. - On the Download tab, leave Download-Agent set to
MTK_AllInOne_DA.bin. - Click Choose next to Scatter-loading File and select the scatter file from your firmware folder.
The partition list fills in. Each row shows a partition name, its start address and the image file that will be written. Rows with a file path are ready; rows without one have no matching image in the folder and are greyed out.
In V6: click the file selector at the top of the window and choose the flash.xml or download XML instead. The partition list appears in the same way.
Step 3: Choose the flashing mode
Above the partition list is a drop-down with three choices:
- Download Only: writes only the ticked partitions. This is the safest choice and what we use here.
- Firmware Upgrade: backs up calibration data, formats the whole flash and writes everything. Use it when moving between firmware versions or when Download Only reports a partition table error.
- Format All + Download: erases everything including NVRAM (IMEI and radio calibration) before writing. Only use it as a last resort with an NVRAM backup.
Select Download Only. The SP Flash Tool features explained article goes deeper into each mode.
Step 4: Pick the partitions
By default every partition with an image is ticked. For a safe stock reinstall, make two changes:
- Untick
preloader. The preloader is the first code the phone runs. Your phone already has a working one, and replacing it with a mismatched file is the main cause of hard bricks. Only flash it when you know the device's preloader is damaged and the firmware is an exact match. - Untick
userdataif you want to try to keep your apps and files. Leave it ticked for a clean start.
If you are only fixing a single problem, you can flash a single partition. For example, to replace a broken recovery, untick everything and tick only recovery.
Step 5: Start the download and connect the phone
- Click the green Download button. The tool now waits for a device. Nothing happens yet, which is correct.
- Make sure the phone is fully powered off.
- Connect the USB cable. If nothing happens within a few seconds, unplug, then reconnect while holding Volume Down. Some models use Volume Up or both volume keys.
Once the phone is detected, the progress bar at the bottom moves through stages: a red bar while the download agent loads, a purple bar while DRAM is initialised, then a yellow bar while images are written. The status bar shows the COM port, the chip, the storage type (EMMC or UFS) and the transfer speed.
Do not unplug the cable or touch the phone while the yellow bar is running. Interrupting a write can leave partitions half-written.
Step 6: Wait for "Download OK"
When every partition is written, a small window with a large green tick and the words Download OK appears. Flashing a full ROM usually takes 3 to 10 minutes, depending on the size of super.img and your USB speed.
Close the dialog, unplug the phone and hold the Power button to start it. The first boot after a full flash commonly takes 5 to 10 minutes while Android rebuilds its caches. If you kept userdata and the phone loops, boot into recovery and wipe data once.
What to do if it fails
If a red error box appears, note the exact error name and number. The most common ones on a first flash are:
BROM ERROR: S_BROM_DOWNLOAD_DA_FAIL (2004): usually a driver, cable or wrong-firmware issue.PMT changed for the ROM; it must be downloaded(8038): switch to Firmware Upgrade mode.- Nothing happens at all: the phone is not being detected; check the driver and the key combination.
Each of these has a full fix in our SP Flash Tool errors and fixes reference.
Optional: back up before you flash
Experienced technicians use the Readback tab to save the NVRAM area (and sometimes the full ROM) before flashing. If something goes wrong with IMEI or Wi-Fi after a flash, that backup is what restores it. It takes a few minutes and is well worth learning. The address and length come from the nvram entry in your scatter file.
Quick reference
| Step | Action | Common mistake |
|---|---|---|
| 1 | Load scatter / XML | Firmware for a different chipset |
| 2 | Choose Download Only | Using Format All without a backup |
| 3 | Untick preloader (and userdata) | Flashing a mismatched preloader |
| 4 | Press Download, then connect | Connecting before pressing Download |
| 5 | Wait for Download OK | Unplugging during the yellow bar |
Once you are comfortable with this flow, see the best uses for SP Flash Tool for other jobs the same steps can do, from installing a custom recovery to rolling back an update.