The firmware checked its payload only after waiting up to 10 s for a console; meanwhile the data port said state=off, which the app takes as "no payload, reprogram this board": it reflashed the board, the board rebooted into the same wait, and with a new device name the once-per-board guard never held. Now the payload is checked first and the port says "boot" until then; the app reprograms only after 4 s of "off" and once per board serial number. Diagnostics: the app reads the RP2040's console (CDC 0) all the time and Diagnosis.java turns it into plain words (keying and packet count, ACK, swapped D+/D-, attached or not, boot mode, chip, errors), tested on four real Transporter logs. New buttons: share the full log, restart the boot signal (rekey). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01UVqsRpwNe3f8G3bWubf9TX
FM-1 Rescue — unbrick an FM-1 with only an RP2040
Repara un M-VAVE FM-1 en hard brick (no enciende, no aparece por USB) sin Python ni terminal. El RP2040 lleva dentro el firmware oficial V15 y hace todo él solo; el PC solo sirve para copiar un archivo (o ni eso: después basta un cargador USB).
- Abre
fm1-rescue.html(Chrome, Edge o Firefox; funciona también como archivo local), elige tu placa (RP2040-Zero, XIAO RP2040 o Raspberry Pi Pico / tipo Pico) y el firmware: un paquete JIANT (.fwscdel instalador) o elFM-1.fwscV15 oficial. Si el FM-1 venía con la V16, usa JIANT (arranca con la cabecera de la V16; la V15 no está comprobada con ella). Pulsa Crear fm1-rescue.uf2. - Mantén BOOT y conecta el RP2040 al PC; arrastra
fm1-rescue.uf2a la unidadRPI-RP2. - Desconéctalo. FM-1 apagado; cables: verde →
0(Pico:GP0, pin 1), blanco →1(Pico:GP1, pin 2), negro →GND, rojo sin conectar. - Conecta el RP2040 a un PC o cargador (LED amarillo parpadeando) y enciende el FM-1.
- LED azul = trabajando; verde fijo = listo: apaga el FM-1, quita los cables, enciéndelo (arranca V15). Rojo parpadeando = error: apaga el FM-1, reconecta el RP2040 y repite.
Sin ordenador: la app Android FM-1 Rescue (android/rescue, ver su LÉEME) hace
todo desde el móvil: graba el RP2040 por OTG y muestra el progreso de la reparación.
Comparado con la guía con Python: no hay que instalar Python, ni setup, ni wizard, ni escribir WRITE,
ni puertos serie; el orden "primero el RP2040, después encender el FM-1" lo marca el LED.
Qué hace (y qué no)
- Envía el USB_KEY al encender (o la soft key si el FM-1 ya corre la V15 de fábrica) → modo UBOOT de la ROM.
- Sube
wl82loader.bin, comprueba chip key0x980Fy flash ID0x856014/0xB36014. - Escribe solo los sectores de 4 KiB de
0x4000..0x92FFFque difieren de la V15, cada uno borrado, escrito y releído; al final relee toda la zona y la compara. - Nunca escribe la cabecera de arranque (
0x0000..0x3FFF) ni los datos (0x93000..: ajustes, sonidos, canciones). No hace la copia de seguridad doble del método con Python: si quieres un volcado previo, usa la placa sin V15 (es un FM-1 Transporter normal) con su web app ofm1t.py. - Acepta la V15 oficial (hash de la región
6edf3c37…) o un paquete de JIANT hecho contools/fm1pkg_make.py(identidadFM-1_9xx,flash.binde exactamente0x93000, con el loader de Felucca). La V16 no cabe. - Con la V15, el
.uf2final no se distribuye (contiene firmware de M-VAVE). Con JIANT sí se podría (GPL).
Estado: probado en PC (lógica del firmware real contra un FM-1 simulado, firmware/test/), aún no
probado en hardware. Úsalo con la batería cargada y bajo tu responsabilidad.
English
Unbrick an FM-1 with an RP2040 and no Python: open fm1-rescue.html, pick the board and the official V15
FM-1.fwsc, make fm1-rescue.uf2, copy it to the board in BOOT mode, wire green → GP0 (D+), white → GP1 (D-),
black → GND, power the board (computer or charger), switch the FM-1 on, wait for steady green. Same safety
rules as above: only differing sectors of 0x4000..0x92FFF, each verified; head and data never written.
Not yet tested on hardware.
Files
fm1-rescue.html |
the page (generated, self-contained: builder + both base firmwares inlined) |
builder.js |
.fwsc → V15 region, payload, merged UF2 (browser and Node) |
make_uf2.mjs |
command-line builder: node make_uf2.mjs BASE.uf2 FM-1.fwsc wl82loader.bin OUT.uf2 |
base/ |
prebuilt rescue firmware for RP2040-Zero, XIAO RP2040 and Raspberry Pi Pico (one-colour LED on GP25: blink patterns) |
firmware/ |
FM-1 Transporter 14fd4df + src/payload.c, src/autorescue.c, WS2812 LED for the Zero |
firmware/test/ |
host test of payload.c + autorescue.c against a mock FM-1 |
build.sh |
rebuilds base/ and the page; with FM1_V15 and FM1_LOADER also runs the host test |
Payload layout: firmware/src/payload.h (at 1 MiB in the RP2040 flash). Without a payload the firmware is
a plain FM-1 Transporter; its data port also answers rescue with the rescue state and progress (on core 0,
also while a restore runs), which the Android app (android/rescue) polls.
Credits and licence
MIT (firmware/LICENSE). FM-1 Transporter by Leo Kuroshita / Hügelton Instruments (MIT), Pico-PIO-USB by
sekigon-gonnoc (MIT, firmware/lib/), .fwsc parsing and V15 hashes from Quixotic7's MvaveFM1Unbricker (MIT),
wl82loader.bin from kagaimiq's jl-uboot-tool (MIT, downloaded at build time, not stored here), WS2812 PIO
program from pico-examples (BSD-3-Clause). Procedure after GoodPerson42's "FM1 Unbricking for Dummies".