I did it with my own knowledge and of course AI. It also compiled the full instruction of my way doing it.
If your M-VAVE FM-1 lost power or was unplugged mid-firmware update and is now completely unresponsive—black screen, no USB device in Device Manager, no WL82 UBOOT1.00 drive, and button combos (OCT− / OCT+) do nothing—the JieLi AC791N / WL82 processor is hanging in a half-written application sector before USB or watchdog recovery can start.
This guide covers the complete, verified recovery method using a Raspberry Pi Pico 2 (RP2350) and Windows PowerShell (no web flashers required) to restore the FM-1 back to working stock V15 firmware.
Hardware & Safety Caveats (Read First)
- Why standard ESP32, Arduino, or Raspberry Pi USB ports won't work: Waking the JieLi mask-ROM requires bit-banging a 16-bit
USB_KEY (0x16EF at 20 µs/bit) on D+/D− at the exact moment of power-on, sending 4 µs calibration pulses every 1 ms, and switching those exact same two pins into a USB Host controller within ~30 ms. Classic ESP32 boards (WROOM-32, ESP32-CAM) have no native USB OTG; Arduino lacks USB Host and RAM; Raspberry Pi USB ports sit behind a hub chip. Only RP2040, RP2350 (with external pull-downs), or ESP32-S3 (native USB OTG on GPIO19/20) can perform this handshake. - CRITICAL — RP2350 (Pico 2) Erratum E9 Pull-Down Resistors: The RP2350 chip on the Raspberry Pi Pico 2 has a hardware silicon bug where internal pull-downs fail to pull
GP0 (D+) back to 0 V after the first high pulse (D+ high in gap (ACK missed?) after 1 packets). Without external resistors, the Pico 2 falsely assumes the FM-1 replied after 0.6 ms and stops sending the wake key before you even touch the power switch. You must wire two external 10 kΩ–15 kΩ pull-down resistors (GP0 → GND and GP1 → GND). (An older RP2040 Pico / Pico W does not need these resistors.) - CRITICAL — Never Connect VBUS (5V): During recovery, the FM-1 runs strictly on its own fully charged battery. Connect only 3 signal/ground wires from the FM-1's USB-C port to the Pico 2. Tape off the red
VBUS (5V) wire—connecting 5V can permanently damage the FM-1's power circuitry. - Use Stock V15 for Unbricking, Not V16: Stock V16 extends to
0xA8FFF, past the [0x4000, 0x93000) application region permitted by the Transporter firmware. Always unbrick to verified V15 first. - 2026 Hardware Revision Flash Chip (
id=B36014): Late-2026 FM-1 units (with the logo on the front panel) use flash chip ID 0xB36014 (1 MiB) instead of 0x856014. Standard fm1t.py write rejects 0xB36014 and requires an external fm1_ota module; Step 4 below uses a safe wrapper around fm1t.write_sector() that validates SHA-256 hashes and writes only differing 4 KiB sectors in 0x4000..0x92FFF.
What You Need
- Raspberry Pi Pico 2 (RP2350) + micro-USB data cable to your Windows PC
- Two 10 kΩ–15 kΩ resistors (any value in the 10–15 kΩ range works)
- USB-C breakout or sacrificial USB-C data cable exposing
D+ (usually green), D− (usually white), and GND (usually black) - Windows 10/11 PC with Python 3 installed (
py or python in PowerShell) - M-VAVE FM-1 charged to 100% (initially switched OFF)
Step 1: Download Tools & Verify Stock V15 in PowerShell
- Create a working folder
C:\fm1-repair, open it in File Explorer, click the address bar, type powershell, and press Enter. - Run the following block to install
pyserial, download FM-1-transporter, MvaveFM1Unbricker, JieLi's wl82loader.bin, and stock V15-FM-1.fwsc, and extract the verified application image (app_v15.bin):
PowerShell
New-Item -ItemType Directory -Force -Path C:\fm1-repair | Out-Null
Set-Location C:\fm1-repair
$pyCmd = if (Get-Command py -ErrorAction SilentlyContinue) { "py" } else { "python" }
& $pyCmd -m pip install --upgrade pyserial
# Download FM-1 Transporter + Pico 2 UF2 firmware
Invoke-WebRequest -Uri "https://github.com/kurogedelic/FM-1-transporter/archive/refs/heads/main.zip" -OutFile "transporter.zip"
Expand-Archive .\transporter.zip -DestinationPath . -Force
$rel = Invoke-RestMethod "https://api.github.com/repos/kurogedelic/FM-1-transporter/releases/latest"
$pico2Asset = $rel.assets | Where-Object { $_.name -match "pico2.*\.uf2$" } | Select-Object -First 1
Invoke-WebRequest -Uri $pico2Asset.browser_download_url -OutFile "fm1_transporter_pico2.uf2"
# Download JieLi RAM loader (24,064 bytes)
Invoke-WebRequest -Uri "https://raw.githubusercontent.com/kagaimiq/jl-uboot-tool/adb3f18/data/loaderblobs/usb/wl82loader.bin" -OutFile "wl82loader.bin"
# Download MvaveFM1Unbricker + stock V15 package
Invoke-WebRequest -Uri "https://github.com/Quixotic7/MvaveFM1Unbricker/archive/refs/heads/main.zip" -OutFile "unbricker.zip"
Expand-Archive .\unbricker.zip -DestinationPath . -Force
$fb = Invoke-RestMethod "https://api.github.com/repos/Quixotic7/FM1Backups/contents/"
$v15Asset = $fb | Where-Object { $_.name -match "V15.*\.fwsc$" } | Select-Object -First 1
Invoke-WebRequest -Uri $v15Asset.download_url -OutFile "V15-FM-1.fwsc"
# Verify loader hash and extract verified V15 app region (0x4000..0x92FFF)
Write-Output ("LOADER_SHA256: " + (Get-FileHash .\wl82loader.bin -Algorithm SHA256).Hash)
& $pyCmd .\MvaveFM1Unbricker-main\fm1_unbrick.py extract .\V15-FM-1.fwsc .\app_v15.bin --verify-v15
Expected Verification:
LOADER_SHA256 equals D41DA6126760C9D66660BCC0CAC8D27D221806C5E369A8036921EFE68DCA5376.extract prints V15 hash verified. Wrote app_v15.bin (0x8F000 bytes).
Step 2: Flash Pico 2, Wire Connections & Identify COM Ports
- Flash the Pico 2: Hold the white
BOOTSEL button on the Pico 2, plug it into your PC via USB, release BOOTSEL, and copy C:\fm1-repair\fm1_transporter_pico2.uf2 onto the RP2350 drive. The drive will unmount automatically and reappear as two USB Serial (COM) ports. Wire the Pico 2 to the OFF FM-1 (unplug Pico 2 from PC while wiring):
- Pico 2 Pin 1 (
GP0) → FM-1 USB D+ (green) + 10–15 kΩ resistor to GND - Pico 2 Pin 2 (
GP1) → FM-1 USB D− (white) + 10–15 kΩ resistor to GND - Pico 2 Pin 3 (
GND) → FM-1 USB GND (black) - FM-1 USB
VBUS (red, 5V) → Leave disconnected and insulated with tape.
- Identify which COM port is Console vs. Data: Plug the Pico 2 back into your PC (keep FM-1 OFF) and run:
PowerShell
$pyCmd = if (Get-Command py -ErrorAction SilentlyContinue) { "py" } else { "python" }
& $pyCmd -c "import serial, serial.tools.list_ports, time
for p in [x.device for x in serial.tools.list_ports.comports() if '2E8A' in x.hwid]:
s = serial.Serial(p, 115200, timeout=0.5)
time.sleep(0.2)
banner = s.read(200)
s.write(b'ping\n')
time.sleep(0.2)
reply = s.read(200)
print(p, 'BANNER:', banner, 'REPLY:', reply)
s.close()"
Caveat — Two Ports Matter: The port that replies b'PONG\n' is your Data Port (e.g., COM19). The other port is the Console Port (e.g., COM18). If nothing reads/drains the Console Port during the handshake, its USB buffer fills up and stalls UBOOT enumeration.
Step 3: Wake the FM-1 & Take a Double Full-Flash Backup (1 MiB)
- Make sure the FM-1 is OFF.
- In the script below, verify
$consolePort and $dataPort match the two ports found in Step 2 (e.g., COM18 and COM19), then run it in PowerShell:
PowerShell
$consolePort = "COM18"
$dataPort = "COM19"
$pyCmd = if (Get-Command py -ErrorAction SilentlyContinue) { "py" } else { "python" }
@'
import serial, sys, threading, time
console_port, data_port = sys.argv[1], sys.argv[2]
# 1. Reboot Pico 2 into USB_KEY mode (ports disappear briefly for ~3s)
s = serial.Serial(data_port, 115200, timeout=1)
s.write(b"rekey\n")
s.close()
print("Sent rekey, waiting 3.5s for Pico 2 reboot...")
time.sleep(3.5)
# 2. Drain console port continuously in background so handshake never stalls
stop = threading.Event()
def drain():
c = serial.Serial(console_port, 115200, timeout=0.2)
while not stop.is_set():
line = c.readline().decode("utf-8", errors="replace").strip()
if line and "no device mounted yet" not in line:
print(f"[{console_port}]", line)
c.close()
t = threading.Thread(target=drain, daemon=True)
t.start()
time.sleep(1.5)
input("\n>>> SWITCH FM-1 POWER ON NOW (screen stays black), THEN PRESS ENTER <<<\n")
time.sleep(2.5)
stop.set()
t.join(timeout=1)
'@ | Set-Content -Path .\wake_fm1.py -Encoding UTF8
& $pyCmd .\wake_fm1.py $consolePort $dataPort
- Expected Verification: You will see
ACK, PULSE: D+ released, VID=4C4A PID=8057 (WL80UBOOT1.00), and UBOOT READY. - Immediately keep the console drained in a background job and dump the full 1 MiB flash twice (
backup1.bin and backup2.bin) to confirm identical reads before touching flash:
PowerShell
Remove-Item .\stop_drain.txt -ErrorAction SilentlyContinue
$drainJob = Start-Job -ScriptBlock {
param($py, $dir, $cport)
Set-Location $dir
& $py -c "import serial, os
c = serial.Serial('$cport', 115200, timeout=0.2)
while not os.path.exists('stop_drain.txt'):
c.read(512)
c.close()"
} -ArgumentList $pyCmd, (Get-Location).Path, $consolePort
Start-Sleep -Seconds 1
& $pyCmd .\FM-1-transporter-main\tools\fm1t.py --port $dataPort --loader .\wl82loader.bin info
& $pyCmd .\FM-1-transporter-main\tools\fm1t.py --port $dataPort --loader .\wl82loader.bin dump backup1.bin
& $pyCmd .\FM-1-transporter-main\tools\fm1t.py --port $dataPort --loader .\wl82loader.bin dump backup2.bin
New-Item -ItemType File -Path .\stop_drain.txt -Force | Out-Null
Receive-Job $drainJob -Wait -AutoRemoveJob | Out-Null
Remove-Item .\stop_drain.txt -ErrorAction SilentlyContinue
Get-FileHash backup1.bin, backup2.bin -Algorithm SHA256 | Format-Table Hash, Path -AutoSize
Expected Verification:
info prints OK key=980F type=3 id=B36014 (or id=856014). Note: fm1t.py printing expected WL82 key 980F and flash 856014: NO is expected on B36014 units.backup1.bin and backup2.bin are both 1,048,576 bytes with 100% identical SHA-256 hashes. Keep backup1.bin safe—it contains your unit's boot head (0x0000..0x3FFF) and user data (0x93000..0xFFFFF).
Step 4: Write Stock V15 & Verify Byte-for-Byte
Run the script below in PowerShell. It automatically checks whether the FM-1 is still in UBOOT (prompting for a quick power-cycle if the 3–4 s idle watchdog reset it), shows a dry-run count of differing 4 KiB sectors inside 0x4000..0x92FFF, waits for you to type WRITE, flashes only the broken sectors, and performs a full 1 MiB read-back verification:
PowerShell
$consolePort = "COM18"
$dataPort = "COM19"
$pyCmd = if (Get-Command py -ErrorAction SilentlyContinue) { "py" } else { "python" }
@'
import hashlib, os, sys, threading, time, serial
console_port, data_port = sys.argv[1], sys.argv[2]
os.environ["FM1T_LOADER"] = os.path.abspath("wl82loader.bin")
sys.path.insert(0, os.path.abspath(os.path.join("FM-1-transporter-main", "tools")))
import fm1t
EXPECTED_APP_SHA256 = "6edf3c37fb5bbbc33607c89375ee024d5477c17914d72221c8c68e58a8255686"
app_v15 = open("app_v15.bin", "rb").read()
backup1 = open("backup1.bin", "rb").read()
assert len(app_v15) == 0x8F000 and hashlib.sha256(app_v15).hexdigest() == EXPECTED_APP_SHA256
assert len(backup1) == 0x100000
stop_console = threading.Event()
def drain_console():
while not stop_console.is_set():
try:
c = serial.Serial(console_port, 115200, timeout=0.2)
while not stop_console.is_set():
c.read(512)
c.close()
except Exception:
time.sleep(0.3)
threading.Thread(target=drain_console, daemon=True).start()
time.sleep(0.5)
s = serial.Serial(data_port, 115200, timeout=4)
st = fm1t.request(s, "status")
if "uboot=1" not in st:
s.write(b"rekey\n")
s.close()
time.sleep(3.5)
input("\n>>> SWITCH FM-1 OFF, WAIT 3s, SWITCH ON, THEN PRESS ENTER <<<\n")
time.sleep(2.5)
s = serial.Serial(data_port, 115200, timeout=4)
st = fm1t.request(s, "status")
assert "uboot=1" in st, f"Failed to enter UBOOT: {st}"
fm1t.ensure_uboot(s)
info = fm1t.request(s, "info")
print("[CHIP INFO]:", info)
assert info in ("OK key=980F type=3 id=B36014", "OK key=980F type=3 id=856014")
now = fm1t.read_flash(s, 0, fm1t.FLASH_SIZE)
assert now[0x4000:0x93000] == backup1[0x4000:0x93000], "Flash changed since backup1.bin!"
diff = [a for a in range(0x4000, 0x93000, 0x1000)
if app_v15[a - 0x4000 : a - 0x4000 + 0x1000] != now[a : a + 0x1000]]
print("Protected boot head (0x0000..0x3FFF) & user data (0x93000..0xFFFFF): UNTOUCHED")
print(f"Application sectors to repair: {len(diff)} of 143 ({len(diff)*4} KiB)")
stop_ka = threading.Event()
lock = threading.Lock()
def keepalive():
while not stop_ka.wait(1.2):
with lock:
try: fm1t.request(s, "status")
except Exception: pass
threading.Thread(target=keepalive, daemon=True).start()
ans = input("\n>>> TYPE 'WRITE' AND PRESS ENTER TO FLASH <<<\n").strip()
stop_ka.set()
if ans != "WRITE":
stop_console.set(); s.close(); sys.exit("Aborted.")
for idx, a in enumerate(diff, 1):
reply = fm1t.write_sector(s, a, app_v15[a - 0x4000 : a - 0x4000 + 0x1000])
print(f"[{idx}/{len(diff)}] Sector {a:#07x}: {reply}")
assert reply == "OK", f"Write failed at {a:#07x} — DO NOT POWER OFF, re-run script!"
final = fm1t.read_flash(s, 0, fm1t.FLASH_SIZE)
expected_full = now[:0x4000] + app_v15 + now[0x93000:]
assert final == expected_full, "Verification mismatch — DO NOT POWER OFF, re-run script!"
assert hashlib.sha256(final[0x4000:0x93000]).hexdigest() == EXPECTED_APP_SHA256
open("final_verified.bin", "wb").write(final)
print("\n=== SUCCESS! FULL FLASH VERIFIED ===")
stop_console.set()
s.close()
'@ | Set-Content -Path .\restore_v15.py -Encoding UTF8
& $pyCmd .\restore_v15.py $consolePort $dataPort
Step 5: Power-Cycle & Reboot
Once === SUCCESS! FULL FLASH VERIFIED === appears:
- Switch the FM-1 OFF.
- Disconnect the Pico 2 wires and unplug the USB-C cable from the FM-1.
- Wait 5 seconds, then switch the FM-1 ON.
Your FM-1 will boot cleanly into stock V15 with your original boot head and device settings preserved, and it will enumerate normally over USB again.
Credits & Tools Used
- FM-1 Transporter (
kurogedelic/FM-1-transporter) — RP2040/RP2350 USB_KEY handshake and PIO USB Host firmware - MvaveFM1Unbricker (
Quixotic7/MvaveFM1Unbricker) — V15 .fwsc extraction and SHA-256 verification - jl-uboot-tool (
kagaimiq/jl-uboot-tool) — JieLi wl82loader.bin flash loader