Commit Graph
8 Commits
Author SHA1 Message Date
Claude 5019e97583 FM-1 Rescue app: save every diagnostic file as a zip in Downloads
"Guardar diagnóstico (.zip)" writes fm1-rescue-diagnostico-DATE.zip to
Downloads (MediaStore on Android 10+, the app's download folder before)
and offers to send it: resumen.txt (diagnosis, flags, phone, board,
firmware, USB devices and interfaces), registro-app.txt, the RP2040's
raw console (consola-rp2040.txt, the same log the Python route saves)
and estados.txt (rescue status changes). Also: no java.nio.file in the
app, which Android 7 lacks (minSdk 24).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01UVqsRpwNe3f8G3bWubf9TX
2026-11-20 21:02:36 +00:00
Claude 6e49689aa9 FM-1 Rescue: diagnostics, and the reprogram loop that kept the FM-1 from ever being keyed
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
2026-11-20 20:51:49 +00:00
Claude 2608b76f71 FM-1 Rescue: Raspberry Pi Pico and Pico-style boards (Ultimate Pico RP2040)
New board "pico" (GP0 = D+, GP1 = D-, pins 1-3 like every Pico layout):
firmware with the one-colour LED on GP25 shown as blink patterns, base
UF2, a third board in the app and in the web page. The page build now
refuses a template that lacks a board's placeholder.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01UVqsRpwNe3f8G3bWubf9TX
2026-11-20 17:45:58 +00:00
Claude 11a744983d FM-1 Rescue app: no BOOT button for boards running another program
An RP2040 that runs MicroPython, a demo or any Pico SDK program is sent
to BOOTSEL by the app: the Raspberry Pi reset interface when it has one,
else the 1200-baud touch on its CDC ports; once per plug-in, with a
plain message if it does not answer. The USB filter now offers the app
for any Raspberry Pi VID device.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01UVqsRpwNe3f8G3bWubf9TX
2026-11-20 17:26:57 +00:00
Claude 1b9a35d723 FM-1 Rescue app: the official V15 inside the APK too
At the owner's request the APK carries M-VAVE's V15 next to JIANT:
fetch_firmware.py (was fetch_jiant.py) takes it at build time from
Quixotic7/FM1Backups at a pinned commit and accepts only the genuine
file (sha256 db1642b2...); it is not stored in git. The app still
downloads it if a build lacks it. Choosing the V16 now explains in plain
words why it does not fit and what to do instead.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01UVqsRpwNe3f8G3bWubf9TX
2026-11-20 17:25:48 +00:00
Claude d0b5933b93 FM-1 Rescue: restore JIANT by default (bundled), V15 as the option
JIANT runs under the boot head of V15 and of V16, while V15's app under
V16's head is untested; the rescue never writes the head, so an FM-1 that
came with V16 is restored to JIANT. The android workflow puts the public
JIANT package in the APK (android/rescue/fetch_jiant.py, same checks as
make_site.py, GPL + Apache-2.0 notices). The app offers JIANT (default),
the official V15 (downloaded once) or a .fwsc of your own; the web page
and make_uf2.mjs accept JIANT packages too (identity FM-1_9xx, flash.bin
exactly 0x93000, Felucca loader inside). Tested with a package made by
tools/fm1pkg_make.py: Java, JS and the page agree byte for byte.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01UVqsRpwNe3f8G3bWubf9TX
2026-11-20 02:55:45 +00:00
Claude 2e8e137cd1 FM-1 Rescue app: V15 downloaded by itself, loader bundled
The app downloads the official V15 once (Quixotic7/FM1Backups at a
pinned commit, file identical to M-VAVE's, accepted only by its region
hash) and keeps it; choosing your own FM-1.fwsc still works.
jl-uboot-tool's wl82loader.bin (MIT) ships in the APK with its licence.
V16 stays out: it runs past 0x92FFF and brings its own boot head.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01UVqsRpwNe3f8G3bWubf9TX
2026-11-20 02:49:27 +00:00
Claude 57cd2a8d7f FM-1 Rescue for Android; live rescue progress on the data port
android/rescue: one-screen app that programs the RP2040 (RP2040-Zero or
XIAO) over PICOBOOT through an OTG cable with the rescue firmware, the
user's official V15 and JieLi's loader, reboots it, and follows the FM-1
repair on the board's data port. Core (RescueImage, Picoboot,
RescueStatus) tested on a computer against a mock RP2040: the flash ends
identical to the web page's .uf2. Built by the android workflow.

Firmware: `rescue` is answered on core 0 with phase and sector, so the
progress is readable during a restore. The done flag no longer survives a
watchdog reboot (a re-flashed board could have reported done for a new
unit).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01UVqsRpwNe3f8G3bWubf9TX
2026-11-20 00:44:38 +00:00