mirror of
https://github.com/charlesvestal/fm1-x0x.git
synced 2026-12-06 21:04:25 +01:00
Units sold since autumn 2026 (mostly AliExpress) carry a UC25HQ80 (JEDEC B3 60 14, 1 MiB, the same plain SPI NOR commands) instead of the stock Puya P25Q80 (85 60 14). The boot only knew the Puya, so on those units flash_ok stayed false: saves stayed in RAM, backup and restore were refused and the update loader was never started, so nothing could be installed from the firmware. firmware/hal/fm1_flash_ok.h: fm1-base's device/fm1_flash_ok.h (fm1-base#35, Laurens, MPL-2.0), the one macro FM1B_FLASH_JEDEC_OK: the Puya and the UC25HQ80; any other answer is still RAM only, nothing written. main_fm1.c's boot asks it. tools/fm1_rescue.py takes either part too (both 1 MiB). tests/host/flash_ok_test.c (fm1-base's tests/flash_ok_test.c): the two parts in, everything else out; run_tests.sh's flash-ok. LICENSING.md: the two files, Laurens's, MPL-2.0.